Sha256: 7f46f5910f072afda1f0b68758868591e2cdb4055384e569b9236665e31cfd69

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

class CreateCheckoutStatHasUsers < ActiveRecord::Migration[5.2]
  def self.up
    create_table :checkout_stat_has_users do |t|
      t.references :user_checkout_stat, index: true, foreign_key: true, null: false
      t.references :user, index: true, foreign_key: true, null: false
      t.integer :checkouts_count, default: 0, null: false

      t.timestamps
    end
  end

  def self.down
    drop_table :checkout_stat_has_users
  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/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.4.0.rc.1 db/migrate/20081215094955_create_checkout_stat_has_users.rb