blob: 044a13334c68eaf44097c5e328022d3111852960 (
plain) (
blame)
1
2
3
4
5
6
|
class AddAllowedLanguagesToUser < ActiveRecord::Migration[5.0]
def change
add_column :users, :allowed_languages, :string, array: true, default: [], null: false
add_index :users, :allowed_languages, using: :gin
end
end
|