about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-13 12:44:19 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:41:03 -0500
commit29b2f6f320ac7d94448d7e1e58510ce7658b6f3e (patch)
tree50ea1cc997a6e32275e4c3bf0c535c552f8ff3f0 /db/migrate
parenta4f8ca3e8b614517d904a63da0874245d419e4da (diff)
[Database] Add missing "not null" attribute to Monsterfork columns
Diffstat (limited to 'db/migrate')
-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