Commit c1213f41 authored by Fosco Marotto's avatar Fosco Marotto

[index] add index on reports.action_taken

parent 152e59a6
class AddIndexOnReportsActionTaken < ActiveRecord::Migration[5.2]
def change
add_index :reports, :action_taken, algorithm: :concurrently
......@@ -10,7 +10,7 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_01_03_150000) do
ActiveRecord::Schema.define(version: 2021_01_08_123456) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
......@@ -631,6 +631,7 @@ ActiveRecord::Schema.define(version: 2021_01_03_150000) do
t.bigint "assigned_account_id"
t.string "uri"
t.index ["account_id"], name: "index_reports_on_account_id"
t.index ["action_taken"], name: "index_reports_on_action_taken"
t.index ["target_account_id"], name: "index_reports_on_target_account_id"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment