feat(dossier): add data to DossierOperationLog

This commit is contained in:
Paul Chavard 2022-11-22 18:06:05 +01:00
parent d306583a7b
commit e4bf1bd2db
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
class AddDataToDossierOperationLogs < ActiveRecord::Migration[6.1]
def change
add_column :dossier_operation_logs, :data, :jsonb
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: 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"