feat(dossier): add data to DossierOperationLog
This commit is contained in:
parent
d306583a7b
commit
e4bf1bd2db
3 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
#
|
#
|
||||||
# id :bigint not null, primary key
|
# id :bigint not null, primary key
|
||||||
# automatic_operation :boolean default(FALSE), not null
|
# automatic_operation :boolean default(FALSE), not null
|
||||||
|
# data :jsonb
|
||||||
# digest :text
|
# digest :text
|
||||||
# executed_at :datetime
|
# executed_at :datetime
|
||||||
# keep_until :datetime
|
# keep_until :datetime
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddDataToDossierOperationLogs < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :dossier_operation_logs, :data, :jsonb
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pgcrypto"
|
enable_extension "pgcrypto"
|
||||||
|
@ -273,6 +273,7 @@ ActiveRecord::Schema.define(version: 2022_11_22_123809) do
|
||||||
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.jsonb "data"
|
||||||
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 ["keep_until"], name: "index_dossier_operation_logs_on_keep_until"
|
t.index ["keep_until"], name: "index_dossier_operation_logs_on_keep_until"
|
||||||
|
|
Loading…
Reference in a new issue