Sha256: 7fa16a4648fcaf524ed09004a0a1ad19d89f8c46203048a62d49924b9d6b8cf6

Contents?: true

Size: 333 Bytes

Versions: 8

Compression:

Stored size: 333 Bytes

Contents

class CreateCheckins < ActiveRecord::Migration
  def self.up
    create_table :checkins do |t|
      t.references :item, index: true, foreign_key: true, null: false
      t.references :librarian, index: true
      t.references :basket, index: true
      t.timestamps
    end
  end

  def self.down
    drop_table :checkins
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/032_create_checkins.rb
enju_circulation-0.2.5 db/migrate/032_create_checkins.rb
enju_circulation-0.2.4 db/migrate/032_create_checkins.rb
enju_circulation-0.2.3 db/migrate/032_create_checkins.rb
enju_circulation-0.2.2 db/migrate/032_create_checkins.rb
enju_circulation-0.2.1 db/migrate/032_create_checkins.rb
enju_circulation-0.2.0 db/migrate/032_create_checkins.rb
enju_circulation-0.2.0.beta.4 db/migrate/032_create_checkins.rb