Sha256: bd6ae9a6bfff0b63c910baeeaa93c20cd51c9c942e91206e9ba30606fc38746b

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

class CreateIntroTourHistories < ActiveRecord::Migration[6.1]
  def change
    create_table :intro_tour_histories do |t|
      t.references :tour, null: false, index: false
      t.references :user, null: false, index: false
      t.integer :touch_count, null: false, default: 0
      t.timestamps null: false
    end

    add_index :intro_tour_histories, [:user_id, :tour_id, :touch_count], name: 'index_intro_tour_histories_on_user_and_tour_and_touch_count'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
intro-0.4.1 spec/dummy/db/migrate/20201231044302_create_intro_tour_histories.rb
intro-0.4.0 spec/dummy/db/migrate/20201231044302_create_intro_tour_histories.rb