feat: Enable reauthorization for Facebook (#1286)

This commit is contained in:
Sojan Jose
2020-09-30 01:12:32 +05:30
committed by GitHub
parent 99ca54fd3c
commit b862817b29
20 changed files with 281 additions and 15 deletions

View File

@@ -19,6 +19,8 @@
class Channel::FacebookPage < ApplicationRecord
self.table_name = 'channel_facebook_pages'
include Reauthorizable
validates :account_id, presence: true
validates :page_id, uniqueness: { scope: :account_id }
belongs_to :account