about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-01 16:25:06 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commit6681dcb849233deecf37d8b2c2968c13610ce0e9 (patch)
tree548a98583f8067f668a5df410499a9b8e7b47b25 /db/migrate
parent4dcd2063070de13fd66edb28f0dddb62e6297884 (diff)
[Bug, Database] Fix publishing delay migration
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20200801210543_add_accounts_to_publishing_delays.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb b/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb
index 0c720d30c..21f29aab8 100644
--- a/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb
+++ b/db/migrate/20200801210543_add_accounts_to_publishing_delays.rb
@@ -3,7 +3,7 @@ class AddAccountsToPublishingDelays < ActiveRecord::Migration[5.2]
 
   def change
     safety_assured do
-      add_reference :publishing_delays, :accounts, null: false, foreign_key: { on_delete: :cascade }, index: { algorithm: :concurrently }
+      add_reference :publishing_delays, :account, null: false, foreign_key: { on_delete: :cascade }, index: { algorithm: :concurrently }
     end
   end
 end