Merge pull request #4623 from betagouv/remove_old_administration

Suppression la clé étrangère administration_id sur DossierLogs
This commit is contained in:
LeSim 2019-12-11 17:15:01 +01:00 committed by GitHub
commit f407ef5eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -0,0 +1,5 @@
class RemoveAdministrationIdFromDossierOperationLogs < ActiveRecord::Migration[5.2]
def change
remove_column :dossier_operation_logs, :administration_id, :bigint
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_11_28_081324) do
ActiveRecord::Schema.define(version: 2019_12_09_141641) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -224,12 +224,10 @@ ActiveRecord::Schema.define(version: 2019_11_28_081324) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "automatic_operation", default: false, null: false
t.bigint "administration_id"
t.datetime "keep_until"
t.datetime "executed_at"
t.text "digest"
t.bigint "bill_signature_id"
t.index ["administration_id"], name: "index_dossier_operation_logs_on_administration_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 ["instructeur_id"], name: "index_dossier_operation_logs_on_instructeur_id"
@ -621,7 +619,6 @@ ActiveRecord::Schema.define(version: 2019_11_28_081324) do
add_foreign_key "champs", "champs", column: "parent_id"
add_foreign_key "closed_mails", "procedures"
add_foreign_key "commentaires", "dossiers"
add_foreign_key "dossier_operation_logs", "administrations"
add_foreign_key "dossier_operation_logs", "bill_signatures"
add_foreign_key "dossier_operation_logs", "dossiers"
add_foreign_key "dossier_operation_logs", "instructeurs"