Sha256: a46e17f8d1cdb93f03abd43775f5ba321551b23037c3ecef9ea677dcd5a43b51

Contents?: true

Size: 608 Bytes

Versions: 7

Compression:

Stored size: 608 Bytes

Contents

class CreateInterLibraryLoans < ActiveRecord::Migration
  def self.up
    create_table :inter_library_loans do |t|
      t.integer :item_id, :null => false
      t.integer :borrowing_library_id, :null => false
      t.timestamp :requested_at
      t.timestamp :shipped_at
      t.timestamp :received_at
      t.timestamp :return_shipped_at
      t.timestamp :return_received_at
      t.timestamp :deleted_at

      t.timestamps
    end
    add_index :inter_library_loans, :item_id
    add_index :inter_library_loans, :borrowing_library_id
  end

  def self.down
    drop_table :inter_library_loans
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_inter_library_loan-0.2.0 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.2.0.beta.2 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.1.1 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.1.0 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.1.0.pre12 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.1.0.pre11 db/migrate/148_create_inter_library_loans.rb
enju_inter_library_loan-0.1.0.pre10 db/migrate/148_create_inter_library_loans.rb