Skip to content

Commit

Permalink
add index on approved (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfstern02 authored Sep 9, 2024
1 parent 5880c64 commit 1cfcba4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/dashboard_exporter_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class DashboardExporterImporter
# :nocov:
include DashboardWatir

TABLES_TO_SKIP = %w[CipCode InstitutionSchoolRating VrrapProvider Weam].freeze
TABLES_TO_SKIP = %w[CipCode InstitutionSchoolRating VrrapProvider].freeze

def initialize(user, pass, load_env = nil)
common_initialize_watir(user, pass, load_env)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddIndexOnApprovedOnInstitutions < ActiveRecord::Migration[7.1]
disable_ddl_transaction!

def change
add_index :institutions, :approved, algorithm: :concurrently
end
end
3 changes: 2 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[7.0].define(version: 2024_04_25_164737) do
ActiveRecord::Schema[7.1].define(version: 2024_09_05_145239) do
# These are extensions that must be enabled in order to support this database
enable_extension "cube"
enable_extension "earthdistance"
Expand Down Expand Up @@ -624,6 +624,7 @@
t.index "lower((address_1)::text) gin_trgm_ops", name: "index_institutions_on_address_1", using: :gin
t.index "lower((address_2)::text) gin_trgm_ops", name: "index_institutions_on_address_2", using: :gin
t.index "lower((address_3)::text) gin_trgm_ops", name: "index_institutions_on_address_3", using: :gin
t.index ["approved"], name: "index_institutions_on_approved"
t.index ["city"], name: "index_institutions_on_city", opclass: :gin_trgm_ops, using: :gin
t.index ["country"], name: "index_institutions_on_country"
t.index ["cross"], name: "index_institutions_on_cross"
Expand Down

0 comments on commit 1cfcba4

Please sign in to comment.