Sha256: 49d662d668ea9372c1b1a75a0acc07dd9af7cad0dc6079d72631d427856a24a9

Contents?: true

Size: 387 Bytes

Versions: 423

Compression:

Stored size: 387 Bytes

Contents

class CreateCheckins < ActiveRecord::Migration
  def self.up
    create_table :checkins do |t|
      t.integer :item_id, :null => false
      t.integer :librarian_id
      t.integer :basket_id
      t.timestamps
    end
    add_index :checkins, :item_id
    add_index :checkins, :librarian_id
    add_index :checkins, :basket_id
  end

  def self.down
    drop_table :checkins
  end
end

Version data entries

423 entries across 416 versions & 12 rubygems

Version Path
enju_circulation-0.0.47 db/migrate/032_create_checkins.rb
enju_circulation-0.0.46 db/migrate/032_create_checkins.rb
enju_circulation-0.0.45 db/migrate/032_create_checkins.rb
enju_circulation-0.0.43 db/migrate/032_create_checkins.rb
enju_circulation-0.0.42 db/migrate/032_create_checkins.rb
enju_circulation-0.0.41 db/migrate/032_create_checkins.rb
enju_circulation-0.0.40 db/migrate/032_create_checkins.rb
enju_circulation-0.0.39 db/migrate/032_create_checkins.rb
enju_circulation-0.0.38 db/migrate/032_create_checkins.rb
enju_circulation-0.0.37 db/migrate/032_create_checkins.rb
enju_circulation-0.0.36 db/migrate/032_create_checkins.rb
enju_circulation-0.0.35 db/migrate/032_create_checkins.rb
enju_circulation-0.0.34 db/migrate/032_create_checkins.rb
enju_circulation-0.0.33 db/migrate/032_create_checkins.rb
enju_circulation-0.0.32 db/migrate/032_create_checkins.rb
enju_circulation-0.0.31 db/migrate/032_create_checkins.rb
enju_circulation-0.0.30 db/migrate/032_create_checkins.rb
enju_circulation-0.0.29 db/migrate/032_create_checkins.rb
enju_circulation-0.0.28 db/migrate/032_create_checkins.rb
enju_circulation-0.0.27 db/migrate/032_create_checkins.rb