Sha256: d94f7de4d6064d31301cb29d728de7bd1734529761945205fb3d921a51240c0d

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
      t.string  :locale
      t.string  :key
      t.text    :value
      t.boolean :is_proc, :default => false
      t.timestamps
    end
    
    add_index :<%= table_name %>, :locale
    add_index :<%= table_name %>, :key
  end

  def self.down
    drop_table :<%= table_name %>
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rich_i18n-1.2.3 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.2.2 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.2.1 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.2.0 rails_generators/rich_i18n_translation/templates/migration.rb