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