feat(avis): add reminded_at field to avis

This commit is contained in:
Eric Leroy-Terquem 2023-01-26 15:56:14 +01:00
parent 22f3442a75
commit 1b67f93c66
3 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,7 @@
# confidentiel :boolean default(FALSE), not null # confidentiel :boolean default(FALSE), not null
# email :string # email :string
# introduction :text # introduction :text
# reminded_at :datetime
# revoked_at :datetime # revoked_at :datetime
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null

View file

@ -0,0 +1,5 @@
class AddRemindedAtToAvis < ActiveRecord::Migration[6.1]
def change
add_column :avis, :reminded_at, :datetime
end
end

View file

@ -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: 2023_01_17_094317) do ActiveRecord::Schema.define(version: 2023_01_26_145329) 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"
@ -162,6 +162,7 @@ ActiveRecord::Schema.define(version: 2023_01_17_094317) do
t.string "email" t.string "email"
t.bigint "experts_procedure_id" t.bigint "experts_procedure_id"
t.text "introduction" t.text "introduction"
t.datetime "reminded_at"
t.datetime "revoked_at" t.datetime "revoked_at"
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.index ["claimant_id"], name: "index_avis_on_claimant_id" t.index ["claimant_id"], name: "index_avis_on_claimant_id"