Add index to billboard placement area (#19648)

This commit is contained in:
Ben Halpern 2023-06-29 12:14:38 -04:00 committed by GitHub
parent e0d7658138
commit e52d53bc42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class AddIndexToDisplayAdPlacementArea < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :display_ads, :placement_area, algorithm: :concurrently
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_06_22_151553) do
ActiveRecord::Schema[7.0].define(version: 2023_06_27_154435) do
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "pg_trgm"
@ -480,6 +480,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_22_151553) do
t.datetime "updated_at", precision: nil, null: false
t.index ["cached_tag_list"], name: "index_display_ads_on_cached_tag_list", opclass: :gin_trgm_ops, using: :gin
t.index ["exclude_article_ids"], name: "index_display_ads_on_exclude_article_ids", using: :gin
t.index ["placement_area"], name: "index_display_ads_on_placement_area"
end
create_table "email_authorizations", force: :cascade do |t|