Sha256: c3c6d5ed8909af6b53f0143496a3428c0eb1f91755bb58eaade1cb02b4ef7a6b

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rich_cms-2.0.7 rails_generators/rich_cms_content/templates/migration.rb
rich_cms-2.0.6 rails_generators/rich_cms_content/templates/migration.rb
rich_cms-2.0.5 rails_generators/rich_cms_content/templates/migration.rb
rich_cms-2.0.4 rails_generators/rich_cms_content/templates/migration.rb
rich_cms-2.0.3 rails_generators/rich_cms_content/templates/migration.rb