mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-27 02:45:32 +00:00
10 lines
325 B
Ruby
10 lines
325 B
Ruby
|
class ChangeLanguageFilterToOptOut < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
remove_index :users, :allowed_languages
|
||
|
remove_column :users, :allowed_languages
|
||
|
|
||
|
add_column :users, :filtered_languages, :string, array: true, default: [], null: false
|
||
|
add_index :users, :filtered_languages, using: :gin
|
||
|
end
|
||
|
end
|