diff --git a/app/models/dossier_operation_log.rb b/app/models/dossier_operation_log.rb index ac29ae529..a78a7b818 100644 --- a/app/models/dossier_operation_log.rb +++ b/app/models/dossier_operation_log.rb @@ -4,6 +4,7 @@ # # id :bigint not null, primary key # automatic_operation :boolean default(FALSE), not null +# data :jsonb # digest :text # executed_at :datetime # keep_until :datetime diff --git a/db/migrate/20220315102928_add_data_to_dossier_operation_logs.rb b/db/migrate/20220315102928_add_data_to_dossier_operation_logs.rb new file mode 100644 index 000000000..3264ae75c --- /dev/null +++ b/db/migrate/20220315102928_add_data_to_dossier_operation_logs.rb @@ -0,0 +1,5 @@ +class AddDataToDossierOperationLogs < ActiveRecord::Migration[6.1] + def change + add_column :dossier_operation_logs, :data, :jsonb + end +end diff --git a/db/schema.rb b/db/schema.rb index a43348a62..6a159e407 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_11_22_123809) do +ActiveRecord::Schema.define(version: 2022_11_22_124009) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -273,6 +273,7 @@ ActiveRecord::Schema.define(version: 2022_11_22_123809) do t.datetime "keep_until" t.string "operation", null: false t.datetime "updated_at", null: false + t.jsonb "data" 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 ["keep_until"], name: "index_dossier_operation_logs_on_keep_until"