about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-01 16:12:29 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commitca72dc7334d5ee233c3fe5912a4536fc223d4fc4 (patch)
tree9c8ddddd03273fa7b8783cc5df96549627997498 /app
parentf17bab4a35cfc168f2c2d7a22bebdfa1e8c72876 (diff)
[Database] Add missing accounts reference to publishing delay table
Diffstat (limited to 'app')
-rw-r--r--app/models/publishing_delay.rb10
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