From 28d40dd6320c3f714f379aeaab35d3b9a9128d03 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 18 Oct 2019 07:43:52 +0500 Subject: [PATCH] Add comments and empty lines --- app/models/user_omniauth.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/models/user_omniauth.rb b/app/models/user_omniauth.rb index d33f26a..aa52685 100644 --- a/app/models/user_omniauth.rb +++ b/app/models/user_omniauth.rb @@ -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