Fix `Rails/ReversibleMigration` cop for `remove` (#30833)

pull/30849/head
Matt Jankowski 7 months ago committed by GitHub
parent 528a7f57fa
commit 51f581e03e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,7 +5,7 @@ class ChangeLanguageFilterToOptOut < ActiveRecord::Migration[5.0]
remove_index :users, :allowed_languages
change_table(:users, bulk: true) do |t|
t.remove :allowed_languages
t.remove :allowed_languages, type: :string, array: true, default: [], null: false
t.column :filtered_languages, :string, array: true, default: [], null: false
end

Loading…
Cancel
Save