Sha256: e3c15ec49299cb92e803bdf3c4b33c8e055847cecb73bf8fbc65a272f073035b

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

class CreateItemTransitions < ActiveRecord::Migration
  def change
    create_table :item_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      t.integer :sort_key
      t.integer :item_id
      t.timestamps
    end

    add_index :item_transitions, :item_id
    add_index :item_transitions, [:sort_key, :item_id], unique: true
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
enju_leaf-1.1.0.rc15 spec/dummy/db/migrate/20140529014410_create_item_transitions.rb
enju_leaf-1.1.0.rc14 spec/dummy/db/migrate/20140529014410_create_item_transitions.rb
enju_leaf-1.1.0.rc13 spec/dummy/db/migrate/20140529014410_create_item_transitions.rb
enju_flower-0.1.0.pre16 spec/dummy/db/migrate/20140529014410_create_item_transitions.rb