Migration : re_instructed_at à Dossier et ajoute le re_instructed_mails

This commit is contained in:
Kara Diaby 2023-11-08 13:40:55 +00:00
parent 7926948c0d
commit f692a9e5e4
3 changed files with 30 additions and 3 deletions

View file

@ -0,0 +1,5 @@
class AddReInstructedAtToDossiers < ActiveRecord::Migration[7.0]
def change
add_column :dossiers, :re_instructed_at, :datetime
end
end

View file

@ -0,0 +1,12 @@
class CreateReInstructedMails < ActiveRecord::Migration[7.0]
def change
create_table :re_instructed_mails do |t|
t.text :body
t.string :subject
t.integer :procedure_id, null: false
t.timestamps
end
add_index :re_instructed_mails, :procedure_id
end
end