Migration : re_instructed_at à Dossier et ajoute le re_instructed_mails
This commit is contained in:
parent
7926948c0d
commit
f692a9e5e4
3 changed files with 30 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddReInstructedAtToDossiers < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :dossiers, :re_instructed_at, :datetime
|
||||
end
|
||||
end
|
12
db/migrate/20231107150217_create_re_instructed_mails.rb
Normal file
12
db/migrate/20231107150217_create_re_instructed_mails.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue