add external id index to champs
This commit is contained in:
parent
9f61b0db19
commit
5417d3adea
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
|||
class AddExternalIdIndexToChamps < ActiveRecord::Migration[6.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :champs, :external_id, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2023_02_03_134127) do
|
||||
ActiveRecord::Schema.define(version: 2023_02_07_105539) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
|
@ -233,6 +233,7 @@ ActiveRecord::Schema.define(version: 2023_02_03_134127) do
|
|||
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"
|
||||
|
|
Loading…
Reference in a new issue