Sha256: f58aac1d649091c8a5ba82155190e40cc9524179c6e01e33bbb92aeda18aefb8

Contents?: true

Size: 404 Bytes

Versions: 10

Compression:

Stored size: 404 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

10 entries across 5 versions & 1 rubygems

Version Path
rich_i18n-1.3.4 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.3.4 lib/generators/rich/translation/templates/migration.rb
rich_i18n-1.3.3 lib/generators/rich/translation/templates/migration.rb
rich_i18n-1.3.3 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.3.2 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.3.2 lib/generators/rich/translation/templates/migration.rb
rich_i18n-1.3.1 rails_generators/rich_i18n_translation/templates/migration.rb
rich_i18n-1.3.1 lib/generators/rich/translation/templates/migration.rb
rich_i18n-1.3.0 lib/generators/rich/translation/templates/migration.rb
rich_i18n-1.3.0 rails_generators/rich_i18n_translation/templates/migration.rb