Class: CreateGlobalizeTranslations
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateGlobalizeTranslations
- Defined in:
- lib/generators/exvo_globalize/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/exvo_globalize/templates/migration.rb', line 13 def self.down drop_table :globalize_translations end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/exvo_globalize/templates/migration.rb', line 2 def self.up create_table :globalize_translations do |t| t.string :locale t.string :key t.text :value t.text :interpolations t.boolean :is_proc, :default => false t. end end |