chore(db): supprime un index non utilisé

This commit is contained in:
Martin 2023-02-17 14:41:13 +01:00 committed by mfo
parent 68de0c6566
commit b0a757a89d
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,13 @@
class RemoveChampsExternalIdIndex < ActiveRecord::Migration[6.1]
include Database::MigrationHelpers
disable_ddl_transaction!
def up
remove_index :champs, column: :external_id
end
def down
add_concurrent_index :champs, :external_id
end
end

View file

@ -227,13 +227,12 @@ ActiveRecord::Schema.define(version: 2023_02_16_141558) do
t.datetime "rebased_at"
t.string "row_id"
t.string "type"
t.integer "type_de_champ_id", null: false
t.integer "type_de_champ_id"
t.datetime "updated_at"
t.string "value"
t.jsonb "value_json"
t.index ["dossier_id"], name: "index_champs_on_dossier_id"
t.index ["etablissement_id"], name: "index_champs_on_etablissement_id"
t.index ["external_id"], name: "index_champs_on_external_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"