Sha256: 7c8af58b818b7d2228e86b2b6525dc8d98db6d66ac14dbe794c3f60343ca8f04

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

class CreateReserveStatHasUsers < ActiveRecord::Migration
  def self.up
    create_table :reserve_stat_has_users do |t|
      t.references :user_reserve_stat, index: true, foreign_key: true, null: false
      t.references :user, index: true, foreign_key: true, null: false
      t.integer :reserves_count

      t.timestamps
    end
  end

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