demarches-normaliennes/db/migrate/20181123195208_create_dossier_operation_logs.rb
2018-11-27 12:49:40 +01:00

11 lines
327 B
Ruby

class CreateDossierOperationLogs < ActiveRecord::Migration[5.2]
def change
create_table :dossier_operation_logs do |t|
t.string :operation, null: false
t.references :dossier, foreign_key: true, index: true
t.references :gestionnaire, foreign_key: true, index: true
t.timestamps
end
end
end