about summary refs log tree commit diff
diff options
context:
space:
mode:
-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