about summary refs log tree commit diff
path: root/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-28 14:03:38 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-28 14:03:38 -0600
commitb0d821b95adc48d2924c7e58934fdae41ff79a2a (patch)
treefc3f762ee38061e3cf6792186e7b819add73ea43 /db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb
parentf12d9d27fc38e14bd8afd5b1286f274a3ae091d2 (diff)
lazily add `safety_assured` to allow some migrations to work in prod
Diffstat (limited to 'db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb')
-rw-r--r--db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb b/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb
index 10a037bfe..9b6146897 100644
--- a/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb
+++ b/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb
@@ -1,5 +1,7 @@
 class AddFilterUndescribedToAccounts < ActiveRecord::Migration[5.2]
   def change
-    add_column :accounts, :filter_undescribed, :boolean, default: false, null: false
+    safety_assured {
+      add_column :accounts, :filter_undescribed, :boolean, default: false, null: false
+    }
   end
 end