add libelle index on procedures

This commit is contained in:
Christophe Robillard 2022-11-22 13:59:03 +01:00
parent 8e95c6a2ba
commit cee087a794
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
class AddLibelleIndexToProcedures < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_index :procedures, :libelle, 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.define(version: 2022_11_10_100759) do
ActiveRecord::Schema.define(version: 2022_11_22_123809) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@ -679,6 +679,7 @@ ActiveRecord::Schema.define(version: 2022_11_10_100759) do
t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state"
t.index ["draft_revision_id"], name: "index_procedures_on_draft_revision_id"
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
t.index ["libelle"], name: "index_procedures_on_libelle"
t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"
t.index ["path", "closed_at", "hidden_at", "unpublished_at"], name: "procedure_path_uniqueness", unique: true
t.index ["path", "closed_at", "hidden_at"], name: "index_procedures_on_path_and_closed_at_and_hidden_at", unique: true