Sha256: b5f652e639dbbd955c3acb5cc708e7270b9260a7d2ea2fc1a73b8e1e16abcfce
Contents?: true
Size: 527 Bytes
Versions: 171
Compression:
Stored size: 527 Bytes
Contents
class CreateReserveTransitions < ActiveRecord::Migration def change create_table :reserve_transitions do |t| t.string :to_state if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/) t.text :metadata else t.text :metadata, default: "{}" end 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
171 entries across 164 versions & 11 rubygems