a072d35211
when a dossier is terminated (accepte, refuse or classe_sans_suite), we store now `processed_at` and `motivation` in a traitement instance
11 lines
302 B
Ruby
11 lines
302 B
Ruby
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
|