Sha256: 0451c8f35a1e64c68d394f334e2e25225aca251e32ee710c27e9882e75a20db5

Contents?: true

Size: 784 Bytes

Versions: 32

Compression:

Stored size: 784 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.string :state
      t.boolean :expiration_notice_to_agent, :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

32 entries across 32 versions & 4 rubygems

Version Path
enju_biblio-0.1.0.pre62 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre61 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre60 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre59 spec/dummy/db/migrate/035_create_reserves.rb
enju_bookmark-0.1.2.pre17 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre58 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre57 spec/dummy/db/migrate/035_create_reserves.rb
enju_bookmark-0.1.2.pre16 spec/dummy/db/migrate/035_create_reserves.rb
enju_bookmark-0.1.2.pre15 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre56 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre55 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre54 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre53 spec/dummy/db/migrate/035_create_reserves.rb
enju_flower-0.1.0.pre15 spec/dummy/db/migrate/035_create_reserves.rb
enju_inter_library_loan-0.1.0.pre9 spec/dummy/db/migrate/035_create_reserves.rb
enju_bookmark-0.1.2.pre14 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre52 spec/dummy/db/migrate/035_create_reserves.rb
enju_flower-0.1.0.pre14 spec/dummy/db/migrate/035_create_reserves.rb
enju_biblio-0.1.0.pre51 spec/dummy/db/migrate/035_create_reserves.rb
enju_inter_library_loan-0.1.0.pre8 spec/dummy/db/migrate/035_create_reserves.rb