Sha256: dd49ccbc4558a5bd01b545dd736e83ccbc866d619b42540855f9a376cc5efb98

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

class CreateManifestationReserveStatTransitions < ActiveRecord::Migration[4.2]
  def change
    create_table :manifestation_reserve_stat_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      t.integer :sort_key
      t.integer :manifestation_reserve_stat_id
      t.timestamps
    end

    add_index :manifestation_reserve_stat_transitions, :manifestation_reserve_stat_id, name: "index_manifestation_reserve_stat_transitions_on_stat_id"
    add_index :manifestation_reserve_stat_transitions, [:sort_key, :manifestation_reserve_stat_id], unique: true, name: "index_manifestation_reserve_stat_transitions_on_transition"
  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/20140528045617_create_manifestation_reserve_stat_transitions.rb