Sha256: 659bd65d728a3491c05083a8245c71a80067b3c76823473753ea882ed079bb80
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
class CreateReserves < ActiveRecord::Migration[5.0] def self.up create_table :reserves do |t| t.integer :user_id, null: false t.integer :manifestation_id, null: false t.integer :item_id t.integer :request_status_type_id, 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 add_index :reserves, :user_id add_index :reserves, :manifestation_id add_index :reserves, :item_id add_index :reserves, :request_status_type_id end def self.down drop_table :reserves end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.3.0.beta.4 | spec/dummy/db/migrate/035_create_reserves.rb |