mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 03:25:17 +01:00
Fix Rails/ReversibleMigration
cop for remove
(#30833)
This commit is contained in:
parent
528a7f57fa
commit
51f581e03e
@ -5,7 +5,7 @@ class ChangeLanguageFilterToOptOut < ActiveRecord::Migration[5.0]
|
|||||||
remove_index :users, :allowed_languages
|
remove_index :users, :allowed_languages
|
||||||
|
|
||||||
change_table(:users, bulk: true) do |t|
|
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
|
t.column :filtered_languages, :string, array: true, default: [], null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user