remove index on champs/private

This commit is contained in:
simon lehericey 2024-03-25 17:10:04 +01:00
parent abb8ab2d59
commit b7dcf05fea
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
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