You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
620 B
26 lines
620 B
10 years ago
|
class CreateTranslationTables < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :translation_records do |t|
|
||
|
t.string :locale
|
||
|
t.integer :translator_id
|
||
|
t.string :key
|
||
|
t.text :value
|
||
|
t.date :created_at
|
||
|
end
|
||
|
|
||
|
create_table :dynamic_translation_records do |t|
|
||
|
t.string :locale
|
||
|
t.integer :translator_id
|
||
|
t.string :model_type
|
||
|
t.integer :model_id
|
||
|
t.string :column
|
||
|
t.text :value
|
||
|
t.date :created_at
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :translation_records
|
||
|
drop_table :dynamic_translation_records
|
||
|
end
|
||
|
end
|