Sha256: 3f471618b4bc2c1f7e4af8c3dc3b974af7b6f367146c5bc17f04cba3286d0f20

Contents?: true

Size: 646 Bytes

Versions: 8

Compression:

Stored size: 646 Bytes

Contents

class CreateReserveStatHasManifestations < ActiveRecord::Migration
  def self.up
    create_table :reserve_stat_has_manifestations do |t|
      t.references :manifestation_reserve_stat, index: false, null: false
      t.references :manifestation, index: false, foreign_key: true, null: false
      t.integer :reserves_count

      t.timestamps
    end
    add_index :reserve_stat_has_manifestations, :manifestation_reserve_stat_id, name: 'index_reserve_stat_has_manifestations_on_m_reserve_stat_id'
    add_index :reserve_stat_has_manifestations, :manifestation_id
  end

  def self.down
    drop_table :reserve_stat_has_manifestations
  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/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.5 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.4 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.3 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.2 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.1 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.0 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.2.0.beta.4 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb