3 class ChangeUserLocale < ActiveRecord::Migration[4.2]
5 remove_foreign_key :users, :column => :locale, :name => "users_locale_fkey"
7 rename_column :users, :locale, :languages
11 rename_column :users, :languages, :locale
13 add_foreign_key :users, :languages, :column => :locale, :primary_key => :code, :name => "users_locale_fkey"