Sha256: 81732aafb0e65c55a420b13b5bd68f820d69b653b919ccc6009f4e13ca062645

Contents?: true

Size: 650 Bytes

Versions: 56

Compression:

Stored size: 650 Bytes

Contents

class CreateReserves < ActiveRecord::Migration[4.2]
  def self.up
    create_table :reserves do |t|
      t.references :user, index: true, foreign_key: true, null: false
      t.references :manifestation, index: true, null: false
      t.references :item, index: true
      t.references :request_status_type, null: false
      t.datetime :checked_out_at
      t.timestamps
      t.datetime :canceled_at
      t.datetime :expired_at
      t.datetime :deleted_at
      t.boolean :expiration_notice_to_patron, default: false
      t.boolean :expiration_notice_to_library, default: false
    end
  end

  def self.down
    drop_table :reserves
  end
end

Version data entries

56 entries across 56 versions & 4 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/035_create_reserves.rb
enju_circulation-0.3.11 db/migrate/035_create_reserves.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/035_create_reserves.rb
enju_library-0.3.11 spec/dummy/db/migrate/035_create_reserves.rb
enju_circulation-0.3.10 db/migrate/035_create_reserves.rb
enju_library-0.3.10 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/035_create_reserves.rb
enju_circulation-0.3.9 db/migrate/035_create_reserves.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.11 spec/dummy/db/migrate/035_create_reserves.rb
enju_library-0.3.9 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.10 spec/dummy/db/migrate/035_create_reserves.rb
enju_library-0.3.8 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.10.rc.3 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.3.10.rc.2 spec/dummy/db/migrate/035_create_reserves.rb
enju_library-0.3.8.rc.2 spec/dummy/db/migrate/035_create_reserves.rb
enju_library-0.3.8.rc.1 spec/dummy/db/migrate/035_create_reserves.rb