discourse/db/migrate/20170303070706_add_index_to...

8 lines
167 B
Ruby

# frozen_string_literal: true
class AddIndexToTopicViewItems < ActiveRecord::Migration[4.2]
def change
add_index :topic_views, [:user_id, :viewed_at]
end
end