From b7dcf05fea00fc6fa20cca2528fd1da3245bec76 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 25 Mar 2024 17:10:04 +0100 Subject: [PATCH] remove index on champs/private --- db/migrate/20240325160237_remove_index_champs_on_private.rb | 5 +++++ db/schema.rb | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20240325160237_remove_index_champs_on_private.rb diff --git a/db/migrate/20240325160237_remove_index_champs_on_private.rb b/db/migrate/20240325160237_remove_index_champs_on_private.rb new file mode 100644 index 000000000..f77b34b83 --- /dev/null +++ b/db/migrate/20240325160237_remove_index_champs_on_private.rb @@ -0,0 +1,5 @@ +class RemoveIndexChampsOnPrivate < ActiveRecord::Migration[7.0] + def change + remove_index :champs, name: "index_champs_on_private" + end +end diff --git a/db/schema.rb b/db/schema.rb index 7e87237e1..23792c89d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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_03_18_152314) do +ActiveRecord::Schema[7.0].define(version: 2024_03_25_160237) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -273,7 +273,6 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_18_152314) do t.index ["dossier_id"], name: "index_champs_on_dossier_id" t.index ["etablissement_id"], name: "index_champs_on_etablissement_id" t.index ["parent_id"], name: "index_champs_on_parent_id" - t.index ["private"], name: "index_champs_on_private" t.index ["row_id"], name: "index_champs_on_row_id" t.index ["type"], name: "index_champs_on_type" t.index ["type_de_champ_id", "dossier_id", "row_id"], name: "index_champs_on_type_de_champ_id_and_dossier_id_and_row_id", unique: true