Add comments and empty lines
This commit is contained in:
parent
704c89fb75
commit
28d40dd632
|
@ -1,9 +1,19 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class UserOmniauth < ApplicationRecord
|
class UserOmniauth < ApplicationRecord
|
||||||
|
################
|
||||||
|
# Associations #
|
||||||
|
################
|
||||||
|
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
###############
|
||||||
|
# Validations #
|
||||||
|
###############
|
||||||
|
|
||||||
validates :provider, presence: true, uniqueness: { scope: :remote_id }
|
validates :provider, presence: true, uniqueness: { scope: :remote_id }
|
||||||
|
|
||||||
validates :remote_id, presence: true
|
validates :remote_id, presence: true
|
||||||
|
|
||||||
validates :email, presence: true
|
validates :email, presence: true
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue