20170423005413_add_allowed_languages_to_user.rb 261 B

12345678
  1. # frozen_string_literal: true
  2. class AddAllowedLanguagesToUser < ActiveRecord::Migration[5.0]
  3. def change
  4. add_column :users, :allowed_languages, :string, array: true, default: [], null: false
  5. add_index :users, :allowed_languages, using: :gin
  6. end
  7. end