2018-01-01 17:52:33 +01:00
|
|
|
# Add a translations table, to manage many texts from the database
|
2014-04-04 00:51:42 +02:00
|
|
|
class CreateTranslation < ActiveRecord::Migration
|
|
|
|
def change
|
2018-01-01 17:52:33 +01:00
|
|
|
# rubocop:disable Rails/CreateTableWithTimestamps
|
2014-04-04 00:51:42 +02:00
|
|
|
create_table :translations do |t|
|
|
|
|
t.string :locale
|
|
|
|
t.string :key
|
|
|
|
t.text :value
|
|
|
|
t.text :interpolations
|
|
|
|
t.boolean :is_proc, default: false
|
|
|
|
end
|
2018-01-01 17:52:33 +01:00
|
|
|
# rubocop:enable Rails/CreateTableWithTimestamps
|
2014-04-04 00:51:42 +02:00
|
|
|
end
|
|
|
|
end
|