Sha256: b3c23fa8abec89bbfdbef7da3edff396ebbb34d7cb446f05cd90deacf54e7ba2

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

class CreateCheckoutStatHasUsers < ActiveRecord::Migration
  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

8 entries across 8 versions & 2 rubygems

Version Path
enju_inter_library_loan-0.2.0 spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.5 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.4 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.3 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.2 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.1 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.0 db/migrate/20081215094955_create_checkout_stat_has_users.rb
enju_circulation-0.2.0.beta.4 db/migrate/20081215094955_create_checkout_stat_has_users.rb