about summary refs log tree commit diff
path: root/db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb')
-rw-r--r--db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb b/db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb
new file mode 100644
index 000000000..40b62f93a
--- /dev/null
+++ b/db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb
@@ -0,0 +1,11 @@
+class AddNotNullToMonsterforkAdditions < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      Rails.logger.info("Setting NOT NULL on domain_allows.hidden")
+      change_column_null :domain_allows, :hidden, false
+
+      Rails.logger.info("Setting NOT NULL on statuses.edited")
+      change_column_null :statuses, :edited, false
+    end
+  end
+end