jipe_app/db/migrate/20160407121234_create_translations.rb
2017-08-14 10:53:30 +02:00

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