Merge pull request #7146 from betagouv/US/merge-old-user-with-instructeur-and-dossiers-operation-log-2
feat(user.merge): when user have an instructeur having dossier_opertions_logs containing instructeur_id
This commit is contained in:
commit
19edbdbf6a
3 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,6 @@
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# bill_signature_id :bigint
|
# bill_signature_id :bigint
|
||||||
# dossier_id :bigint
|
# dossier_id :bigint
|
||||||
# instructeur_id :bigint
|
|
||||||
#
|
#
|
||||||
class DossierOperationLog < ApplicationRecord
|
class DossierOperationLog < ApplicationRecord
|
||||||
self.ignored_columns = [:instructeur_id]
|
self.ignored_columns = [:instructeur_id]
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveColumnInstructeurIdFromDossierOperationLog < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
safety_assured { remove_column :dossier_operation_logs, :instructeur_id }
|
||||||
|
end
|
||||||
|
end
|
|
@ -267,13 +267,11 @@ ActiveRecord::Schema.define(version: 2022_04_26_140107) do
|
||||||
t.text "digest"
|
t.text "digest"
|
||||||
t.bigint "dossier_id"
|
t.bigint "dossier_id"
|
||||||
t.datetime "executed_at"
|
t.datetime "executed_at"
|
||||||
t.bigint "instructeur_id"
|
|
||||||
t.datetime "keep_until"
|
t.datetime "keep_until"
|
||||||
t.string "operation", null: false
|
t.string "operation", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
t.index ["bill_signature_id"], name: "index_dossier_operation_logs_on_bill_signature_id"
|
t.index ["bill_signature_id"], name: "index_dossier_operation_logs_on_bill_signature_id"
|
||||||
t.index ["dossier_id"], name: "index_dossier_operation_logs_on_dossier_id"
|
t.index ["dossier_id"], name: "index_dossier_operation_logs_on_dossier_id"
|
||||||
t.index ["instructeur_id"], name: "index_dossier_operation_logs_on_instructeur_id"
|
|
||||||
t.index ["keep_until"], name: "index_dossier_operation_logs_on_keep_until"
|
t.index ["keep_until"], name: "index_dossier_operation_logs_on_keep_until"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -874,7 +872,6 @@ ActiveRecord::Schema.define(version: 2022_04_26_140107) do
|
||||||
add_foreign_key "commentaires", "dossiers"
|
add_foreign_key "commentaires", "dossiers"
|
||||||
add_foreign_key "commentaires", "experts"
|
add_foreign_key "commentaires", "experts"
|
||||||
add_foreign_key "dossier_operation_logs", "bill_signatures"
|
add_foreign_key "dossier_operation_logs", "bill_signatures"
|
||||||
add_foreign_key "dossier_operation_logs", "instructeurs"
|
|
||||||
add_foreign_key "dossier_transfer_logs", "dossiers"
|
add_foreign_key "dossier_transfer_logs", "dossiers"
|
||||||
add_foreign_key "dossiers", "dossier_transfers"
|
add_foreign_key "dossiers", "dossier_transfers"
|
||||||
add_foreign_key "dossiers", "groupe_instructeurs"
|
add_foreign_key "dossiers", "groupe_instructeurs"
|
||||||
|
|
Loading…
Reference in a new issue