2014-08-06 14:47:47 +02:00
|
|
|
# Add a translations table, to mange many texts from the database
|
2014-04-04 00:51:42 +02:00
|
|
|
class CreateTranslation < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :translations do |t|
|
|
|
|
t.string :locale
|
|
|
|
t.string :key
|
|
|
|
t.text :value
|
|
|
|
t.text :interpolations
|
|
|
|
t.boolean :is_proc, default: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|