From c7b458931ad59d47dfda487f63bdf70c9a1a5b9f Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Thu, 18 Jul 2024 11:45:08 +1000 Subject: [PATCH] DEV: drop readonly from flags custom type (#27960) Drop readonly as it is causing problems with seed fu --- ...714231226_duplicate_flags_custom_type_to_require_message.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/db/migrate/20240714231226_duplicate_flags_custom_type_to_require_message.rb b/db/migrate/20240714231226_duplicate_flags_custom_type_to_require_message.rb index 85e259153b7..dab3a49faaa 100644 --- a/db/migrate/20240714231226_duplicate_flags_custom_type_to_require_message.rb +++ b/db/migrate/20240714231226_duplicate_flags_custom_type_to_require_message.rb @@ -4,8 +4,6 @@ class DuplicateFlagsCustomTypeToRequireMessage < ActiveRecord::Migration[7.0] def up add_column :flags, :require_message, :boolean, default: false, null: false - Migration::ColumnDropper.mark_readonly("flags", "custom_type") - DB.exec <<~SQL UPDATE flags SET require_message = custom_type @@ -13,7 +11,6 @@ class DuplicateFlagsCustomTypeToRequireMessage < ActiveRecord::Migration[7.0] end def down - Migration::ColumnDropper.drop_readonly("flags", "custom_type") remove_column :flags, :require_message end end