Sha256: b466c28204079fbe84281a64a52ad975d53ffa69edd9b6651b5ac39e3a7cf893
Contents?: true
Size: 748 Bytes
Versions: 3
Compression:
Stored size: 748 Bytes
Contents
class CreateReserves < ActiveRecord::Migration 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
3 entries across 3 versions & 1 rubygems