Skip to content

Commit

Permalink
Added missing index by updated_at for manifestations#list
Browse files Browse the repository at this point in the history
  • Loading branch information
abartov committed Dec 2, 2023
1 parent f505e5e commit f15452b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexByUpdatedAtToManifestation < ActiveRecord::Migration[6.1]
def change
add_index :manifestations, :updated_at
end
end
20 changes: 19 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2023_07_19_164520) do
ActiveRecord::Schema.define(version: 2023_12_02_181505) do

create_table "aboutnesses", id: :integer, charset: "utf8mb4", collation: "utf8mb4_bin", force: :cascade do |t|
t.integer "work_id"
Expand Down Expand Up @@ -662,6 +662,7 @@
t.index ["sort_title"], name: "index_manifestations_on_sort_title"
t.index ["status", "sort_title"], name: "index_manifestations_on_status_and_sort_title"
t.index ["status"], name: "index_manifestations_on_status"
t.index ["updated_at"], name: "index_manifestations_on_updated_at"
end

create_table "news_items", charset: "utf8mb4", collation: "utf8mb4_bin", force: :cascade do |t|
Expand Down Expand Up @@ -877,6 +878,7 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "approver_id"
t.integer "taggings_count"
t.index ["approver_id"], name: "index_tags_on_approver_id"
t.index ["created_by"], name: "tags_created_by_fk"
t.index ["name"], name: "index_tags_on_name", unique: true
Expand All @@ -892,6 +894,21 @@
t.text "cached_toc", size: :medium
end

create_table "user_blocks", charset: "utf8mb4", collation: "utf8mb4_bin", force: :cascade do |t|
t.integer "user_id"
t.string "context"
t.datetime "expires_at"
t.integer "blocker_id"
t.string "reason"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "context_item_type"
t.bigint "context_item_id"
t.index ["context"], name: "index_user_blocks_on_context"
t.index ["context_item_type", "context_item_id"], name: "index_user_blocks_on_context_item"
t.index ["user_id"], name: "index_user_blocks_on_user_id"
end

create_table "users", id: :integer, charset: "utf8mb4", collation: "utf8mb4_bin", force: :cascade do |t|
t.string "name"
t.string "email"
Expand Down Expand Up @@ -1028,6 +1045,7 @@
add_foreign_key "taggings", "users", column: "suggested_by", name: "taggings_suggested_by_fk"
add_foreign_key "tags", "users", column: "approver_id"
add_foreign_key "tags", "users", column: "created_by", name: "tags_created_by_fk"
add_foreign_key "user_blocks", "users"
add_foreign_key "volunteer_profile_features", "volunteer_profiles"
add_foreign_key "work_likes", "manifestations", name: "work_likes_manifestation_id_fk"
add_foreign_key "work_likes", "users", name: "work_likes_user_id_fk"
Expand Down

0 comments on commit f15452b

Please sign in to comment.