2017-08-31 00:06:56 -04:00
|
|
|
class CreateTranslationOverrides < ActiveRecord::Migration[4.2]
|
2015-11-13 16:34:13 -05:00
|
|
|
def change
|
|
|
|
create_table :translation_overrides, force: true do |t|
|
|
|
|
t.string :locale, length: 30, null: false
|
|
|
|
t.string :translation_key, null: false
|
|
|
|
t.string :value, null: false
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :translation_overrides, [:locale, :translation_key], unique: true
|
|
|
|
end
|
|
|
|
end
|