Remove index of `created_at` on themes

This commit is contained in:
Karina Kwiatek 2023-11-07 21:44:49 +01:00 committed by Andreas Nedbal
parent 046bc0ca09
commit c7cc537fe9
2 changed files with 3 additions and 1 deletions

View File

@ -6,5 +6,7 @@ class OptimiseIndices < ActiveRecord::Migration[7.0]
remove_index :users, :screen_name, unique: true
add_index :user_bans, :expires_at, order: :desc
add_index :announcements, %i[starts_at ends_at], order: :desc
remove_index :themes, %i[user_id created_at]
add_index :themes, :user_id
end
end

View File

@ -291,7 +291,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_11_07_200845) do
t.integer "input_placeholder", default: 7107965, null: false
t.integer "raised_text", default: 0, null: false
t.integer "raised_accent_text", default: 0, null: false
t.index ["user_id", "created_at"], name: "index_themes_on_user_id_and_created_at"
t.index ["user_id"], name: "index_themes_on_user_id"
end
create_table "totp_recovery_codes", force: :cascade do |t|