Sha256: e6e41e85b992c27eabba9a339c6df03b188ea5d83c5be86036fb08f338bad310

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

class CreateInterLibraryLoanTransitions < ActiveRecord::Migration
  def change
    create_table :inter_library_loan_transitions do |t|
      t.string :to_state
      t.text :metadata, default: "{}"
      t.integer :sort_key
      t.integer :inter_library_loan_id
      t.timestamps
    end

    add_index :inter_library_loan_transitions, :inter_library_loan_id
    add_index :inter_library_loan_transitions, [:sort_key, :inter_library_loan_id], unique: true, name: "index_inter_library_loan_transitions_on_sort_key_and_loan_id"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_inter_library_loan-0.1.0.pre10 db/migrate/20140607100507_create_inter_library_loan_transitions.rb