retrospring/db/migrate/20150704072402_change_default_value_of_locale.rb

5 lines
143 B
Ruby

class ChangeDefaultValueOfLocale < ActiveRecord::Migration
def change
change_column :users, :locale, :string, :default => 'en'
end
end