use traitement model
when a dossier is terminated (accepte, refuse or classe_sans_suite), we store now `processed_at` and `motivation` in a traitement instance
This commit is contained in:
parent
f631acd118
commit
a072d35211
14 changed files with 107 additions and 29 deletions
11
db/migrate/20200630140356_create_traitements.rb
Normal file
11
db/migrate/20200630140356_create_traitements.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateTraitements < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :traitements do |t|
|
||||
t.references :dossier, foreign_key: true
|
||||
t.references :instructeur, foreign_key: true
|
||||
t.string :motivation
|
||||
t.string :state
|
||||
t.timestamp :processed_at
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue