Sha256: 1de865152310252d544a87e93157a6f65b1b89a5cde5629b58240b493938e51e

Contents?: true

Size: 722 Bytes

Versions: 8

Compression:

Stored size: 722 Bytes

Contents

class CreateCheckoutStatHasManifestations < ActiveRecord::Migration
  def self.up
    create_table :checkout_stat_has_manifestations do |t|
      t.references :manifestation_checkout_stat, index: false, null: false
      t.references :manifestation, index: false, foreign_key: true, null: false
      t.integer :checkouts_count

      t.timestamps
    end
    add_index :checkout_stat_has_manifestations, :manifestation_checkout_stat_id, name: 'index_checkout_stat_has_manifestations_on_checkout_stat_id'
    add_index :checkout_stat_has_manifestations, :manifestation_id, name: 'index_checkout_stat_has_manifestations_on_manifestation_id'
  end

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