DEV: drop readonly from flags custom type (#27960)

Drop readonly as it is causing problems with seed fu
This commit is contained in:
Krzysztof Kotlarek 2024-07-18 11:45:08 +10:00 committed by GitHub
parent 48d13cb231
commit c7b458931a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -4,8 +4,6 @@ class DuplicateFlagsCustomTypeToRequireMessage < ActiveRecord::Migration[7.0]
def up def up
add_column :flags, :require_message, :boolean, default: false, null: false add_column :flags, :require_message, :boolean, default: false, null: false
Migration::ColumnDropper.mark_readonly("flags", "custom_type")
DB.exec <<~SQL DB.exec <<~SQL
UPDATE flags UPDATE flags
SET require_message = custom_type SET require_message = custom_type
@ -13,7 +11,6 @@ class DuplicateFlagsCustomTypeToRequireMessage < ActiveRecord::Migration[7.0]
end end
def down def down
Migration::ColumnDropper.drop_readonly("flags", "custom_type")
remove_column :flags, :require_message remove_column :flags, :require_message
end end
end end