demarches-normaliennes/db/migrate/20210721162213_create_dossier_transfer_logs.rb

14 lines
331 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class CreateDossierTransferLogs < ActiveRecord::Migration[6.1]
def change
create_table :dossier_transfer_logs do |t|
t.string :from, null: false
t.string :to, null: false
t.references :dossier, foreign_key: true, null: false, index: true
t.timestamps
end
end
end