Skip to content
Snippets Groups Projects
Unverified Commit bb21c641 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Remove unused indexes (#7829)

parent b347d554
No related branches found
No related tags found
No related merge requests found
class RemoveUnusedIndexes < ActiveRecord::Migration[5.2]
def change
remove_index :statuses, name: "index_statuses_on_conversation_id"
remove_index :users, name: "index_users_on_filtered_languages"
remove_index :backups, name: "index_backups_on_user_id"
end
end
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_06_16_192031) do
ActiveRecord::Schema.define(version: 2018_06_17_162849) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
......@@ -103,7 +103,6 @@ ActiveRecord::Schema.define(version: 2018_06_16_192031) do
t.boolean "processed", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id"], name: "index_backups_on_user_id"
end
create_table "blocks", force: :cascade do |t|
......@@ -448,7 +447,6 @@ ActiveRecord::Schema.define(version: 2018_06_16_192031) do
t.bigint "application_id"
t.bigint "in_reply_to_account_id"
t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc }
t.index ["conversation_id"], name: "index_statuses_on_conversation_id"
t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"
t.index ["reblog_of_id", "account_id"], name: "index_statuses_on_reblog_of_id_and_account_id"
t.index ["uri"], name: "index_statuses_on_uri", unique: true
......@@ -529,7 +527,6 @@ ActiveRecord::Schema.define(version: 2018_06_16_192031) do
t.index ["account_id"], name: "index_users_on_account_id"
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["filtered_languages"], name: "index_users_on_filtered_languages", using: :gin
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment