Sha256: 8b3e7e877a576da0c6d9e41d44946bd9cfa691f0e27fdb1e7a49e09d4d6cbec1

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

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

    add_index :manifestation_checkout_stat_transitions, :manifestation_checkout_stat_id, name: "index_manifestation_checkout_stat_transitions_on_stat_id"
    add_index :manifestation_checkout_stat_transitions, [:sort_key, :manifestation_checkout_stat_id], unique: true, name: "index_manifestation_checkout_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/20140528045600_create_manifestation_checkout_stat_transitions.rb