1
0
Fork 0

Add comments and empty lines

This commit is contained in:
Alex Kotov 2019-10-18 07:43:52 +05:00
parent 704c89fb75
commit 28d40dd632
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -1,9 +1,19 @@
# frozen_string_literal: true
class UserOmniauth < ApplicationRecord
################
# Associations #
################
belongs_to :user
###############
# Validations #
###############
validates :provider, presence: true, uniqueness: { scope: :remote_id }
validates :remote_id, presence: true
validates :email, presence: true
end