Class: CreateWeelerTranslations

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/weeler/templates/migrations/create_weeler_translations.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/weeler/templates/migrations/create_weeler_translations.rb', line 2

def change
  create_table :weeler_translations do |t|
    t.string :locale
    t.string :key
    t.text   :value
    t.text   :interpolations
    t.boolean :is_proc, :default => false

    t.timestamps
  end

  add_index :weeler_translations, :locale
  add_index :weeler_translations, :key
end