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_bookmark-0.0.20 spec/dummy/db/migrate/032_create_checkins.rb
enju_circulation-0.0.62 db/migrate/032_create_checkins.rb
enju_circulation-0.0.61 db/migrate/032_create_checkins.rb
enju_biblio-0.0.3 spec/dummy/db/migrate/032_create_checkins.rb
enju_circulation-0.0.60 db/migrate/032_create_checkins.rb
enju_circulation-0.0.59 db/migrate/032_create_checkins.rb
enju_circulation-0.0.58 db/migrate/032_create_checkins.rb
enju_circulation-0.0.57 db/migrate/032_create_checkins.rb
enju_bookmark-0.0.19 spec/dummy/db/migrate/032_create_checkins.rb
enju_circulation-0.0.56 db/migrate/032_create_checkins.rb
enju_circulation-0.0.55 db/migrate/032_create_checkins.rb
enju_circulation-0.0.54 db/migrate/032_create_checkins.rb
enju_circulation-0.0.53 db/migrate/032_create_checkins.rb
enju_circulation-0.0.52 db/migrate/032_create_checkins.rb
enju_biblio-0.0.2 spec/dummy/db/migrate/032_create_checkins.rb
enju_biblio-0.0.1 spec/dummy/db/migrate/032_create_checkins.rb
enju_circulation-0.0.51 db/migrate/032_create_checkins.rb
enju_circulation-0.0.50 db/migrate/032_create_checkins.rb
enju_circulation-0.0.49 db/migrate/032_create_checkins.rb
enju_circulation-0.0.48 db/migrate/032_create_checkins.rb