Add comments and empty lines
This commit is contained in:
parent
704c89fb75
commit
28d40dd632
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue