Sha256: 3b0c646e1ad8e494b3bb4ee283713ee41739e7d27a343191cba81314aa84d05c
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 Bytes
Contents
class CreateIntroTourHistories < ActiveRecord::Migration<%= migration_version %> 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
5 entries across 5 versions & 1 rubygems