Sha256: 5f3657670bd081b040cfc14da4358aa00eff703359adb61798007b10ca091364

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

class EasyKeyValueMigration < ActiveRecord::Migration

  def change
    create_table :easy_key_values do |t|
      t.integer :ekv_id
      t.string :ekv_type

      t.string :key
      t.text :value
    end

    add_index :easy_key_values, :ekv_id, :name => 'ekv_id_ix'
    add_index :easy_key_values, :key, :name => 'key_ix'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
easy_key_value-0.1.2 lib/generators/ekv/migrations/templates/migrations/1_easy_key_value_migration.rb
easy_key_value-0.1.1 lib/generators/ekv/migrations/templates/migrations/1_easy_key_value_migration.rb