diff options
Diffstat (limited to 'app/models/publishing_delay.rb')
-rw-r--r-- | app/models/publishing_delay.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/publishing_delay.rb b/app/models/publishing_delay.rb index 7b4d4c214..0f943c8ce 100644 --- a/app/models/publishing_delay.rb +++ b/app/models/publishing_delay.rb @@ -2,13 +2,15 @@ # # Table name: publishing_delays # -# id :bigint(8) not null, primary key -# status_id :bigint(8) not null -# after :datetime +# id :bigint(8) not null, primary key +# status_id :bigint(8) not null +# after :datetime +# accounts_id :bigint(8) not null # class PublishingDelay < ApplicationRecord - belongs_to :status, inverse_of: :destruct + belongs_to :status, inverse_of: :publishing_delay + belongs_to :account, inverse_of: :publishing_delays validates :status_id, uniqueness: true end |