Sha256: 3f37749bac94f47514da01bc06126a2e0c1dff42843483f0039df319ebd34063

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 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, :value, :name => 'value_ix'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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