Merge pull request #10205 from demarches-simplifiees/remove_index_champ_private

Tech: retire l'index inutilisé champs#private
This commit is contained in:
Paul Chavard 2024-03-25 17:10:56 +00:00 committed by GitHub
commit 95867a83ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class RemoveIndexChampsOnPrivate < ActiveRecord::Migration[7.0]
def change
remove_index :champs, name: "index_champs_on_private"
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: 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