Sha256: b18e2d92768b5d6b1caed2e85ce138617b5f8a14c0d08471bfae6ea2514ee631

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

class CreateCheckoutStatHasManifestations < ActiveRecord::Migration[5.0]
  def self.up
    create_table :checkout_stat_has_manifestations do |t|
      t.integer :manifestation_checkout_stat_id, null: false
      t.integer :manifestation_id, 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

1 entries across 1 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb