about summary refs log tree commit diff
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
parentf12d9d27fc38e14bd8afd5b1286f274a3ae091d2 (diff)
lazily add `safety_assured` to allow some migrations to work in prod
-rw-r--r--db/migrate/20161222201034_add_locked_to_accounts.rb4
-rw-r--r--db/migrate/20190807171841_add_known_to_accounts.rb4
-rw-r--r--db/migrate/20191116233416_add_normalized_text_to_statuses.rb4
-rw-r--r--db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb4
4 files changed, 12 insertions, 4 deletions
diff --git a/db/migrate/20161222201034_add_locked_to_accounts.rb b/db/migrate/20161222201034_add_locked_to_accounts.rb
index c246a90ce..f07367912 100644
--- a/db/migrate/20161222201034_add_locked_to_accounts.rb
+++ b/db/migrate/20161222201034_add_locked_to_accounts.rb
@@ -1,5 +1,7 @@
 class AddLockedToAccounts < ActiveRecord::Migration[5.0]
   def change
-    add_column :accounts, :locked, :boolean, null: false, default: false
+    safety_assured {
+      add_column :accounts, :locked, :boolean, null: false, default: false
+    }
   end
 end
diff --git a/db/migrate/20190807171841_add_known_to_accounts.rb b/db/migrate/20190807171841_add_known_to_accounts.rb
index ff43f2a32..6797f2ea5 100644
--- a/db/migrate/20190807171841_add_known_to_accounts.rb
+++ b/db/migrate/20190807171841_add_known_to_accounts.rb
@@ -1,5 +1,7 @@
 class AddKnownToAccounts < ActiveRecord::Migration[5.2]
   def change
-    add_column :accounts, :known, :boolean, null: false, default: false
+    safety_assured {
+      add_column :accounts, :known, :boolean, null: false, default: false
+    }
   end
 end
diff --git a/db/migrate/20191116233416_add_normalized_text_to_statuses.rb b/db/migrate/20191116233416_add_normalized_text_to_statuses.rb
index 655408a32..5d03f3e02 100644
--- a/db/migrate/20191116233416_add_normalized_text_to_statuses.rb
+++ b/db/migrate/20191116233416_add_normalized_text_to_statuses.rb
@@ -1,5 +1,7 @@
 class AddNormalizedTextToStatuses < ActiveRecord::Migration[5.2]
   def change
-    add_column :statuses, :normalized_text, :text, null: false, default: ''
+    safety_assured {
+      add_column :statuses, :normalized_text, :text, null: false, default: ''
+    }
   end
 end
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