From 29b2f6f320ac7d94448d7e1e58510ce7658b6f3e Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 13 Jul 2020 12:44:19 -0500 Subject: [Database] Add missing "not null" attribute to Monsterfork columns --- .../20200706171939_add_not_null_to_monsterfork_additions.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20200706171939_add_not_null_to_monsterfork_additions.rb (limited to 'db/migrate') 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 -- cgit