Sha256: 552e1732c5bb9b8351e4cda4a612164976a7e748927d510f4f83455119af1403

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

class CreateReserveStatHasManifestations < ActiveRecord::Migration[5.2]
  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

2 entries across 2 versions & 2 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb
enju_circulation-0.4.0.rc.1 db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb