about summary refs log tree commit diff
path: root/db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb')
-rw-r--r--db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb b/db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb
new file mode 100644
index 000000000..42298b274
--- /dev/null
+++ b/db/migrate/20200801220000_add_accounts_to_destructing_statuses.rb
@@ -0,0 +1,9 @@
+class AddAccountsToDestructingStatuses < ActiveRecord::Migration[5.2]
+  disable_ddl_transaction!
+
+  def change
+    safety_assured do
+      add_reference :destructing_statuses, :account, null: false, foreign_key: { on_delete: :cascade }, index: { algorithm: :concurrently }
+    end
+  end
+end