18 lines
333 B
Ruby
Executable File
18 lines
333 B
Ruby
Executable File
class CreateTranslations < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :translations do |t|
|
|
t.string :locale
|
|
t.string :key
|
|
t.text :value
|
|
t.text :interpolations
|
|
t.boolean :is_proc, :default => false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :translations
|
|
end
|
|
end
|