Sha256: f8b521a65b42259610a91b601db8d5909d1490b9b950139f6f48d885741acb7d
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
class CreateReserveTransitions < ActiveRecord::Migration[4.2] def change create_table :reserve_transitions do |t| t.string :to_state t.text :metadata, default: "{}" t.integer :sort_key t.integer :reserve_id t.timestamps end add_index :reserve_transitions, :reserve_id add_index :reserve_transitions, [:sort_key, :reserve_id], unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_grid-0.3.0.beta.1 | spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb |