Sha256: 6efd8a0ca60e7fc13f3276ca2856ebe5d30a6e0ec03568d59021daa31741f575

Contents?: true

Size: 455 Bytes

Versions: 53

Compression:

Stored size: 455 Bytes

Contents

class CreateReserveStatHasUsers < ActiveRecord::Migration[4.2]
  def self.up
    create_table :reserve_stat_has_users do |t|
      t.integer :user_reserve_stat_id, null: false
      t.integer :user_id, null: false
      t.integer :reserves_count

      t.timestamps
    end
    add_index :reserve_stat_has_users, :user_reserve_stat_id
    add_index :reserve_stat_has_users, :user_id
  end

  def self.down
    drop_table :reserve_stat_has_users
  end
end

Version data entries

53 entries across 53 versions & 9 rubygems

Version Path
enju_event-0.3.0.rc.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_biblio-0.3.0.rc.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_library-0.3.0.rc.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_seed-0.3.0.rc.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_seed-0.3.0.beta.7 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_grid-0.3.0.beta.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_oai-0.3.0.beta.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_event-0.3.0.beta.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_ndl-0.3.0.beta.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_bookmark-0.3.0.beta.1 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_library-0.3.0.beta.2 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_seed-0.3.0.beta.6 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
enju_biblio-0.3.0.beta.2 spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb