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_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/032_create_checkins.rb
enju_library-0.2.2 spec/dummy/db/migrate/032_create_checkins.rb
enju_seed-0.2.1 spec/dummy/db/migrate/032_create_checkins.rb
enju_biblio-0.2.1 spec/dummy/db/migrate/032_create_checkins.rb
enju_library-0.2.1 spec/dummy/db/migrate/032_create_checkins.rb
enju_bookmark-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_event-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_oai-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_ndl-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_library-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_biblio-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_seed-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_leaf-1.2.0.beta.4 spec/dummy/db/migrate/032_create_checkins.rb