mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
75e9a12493
haha queries go brrr
13 lines
388 B
Ruby
13 lines
388 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSomeIndexes < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_index :answers, :question_id
|
|
add_index :comments, :answer_id
|
|
add_index :inboxes, :user_id
|
|
add_index :reports, %i[type target_id]
|
|
add_index :reports, %i[user_id created_at]
|
|
add_index :services, :user_id
|
|
add_index :subscriptions, %i[user_id answer_id]
|
|
end
|
|
end
|