demarches-normaliennes/db/migrate/20210721140812_create_dossier_transfers.rb

14 lines
325 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateDossierTransfers < ActiveRecord::Migration[6.1]
def change
create_table :dossier_transfers do |t|
t.string :email, null: false, index: true
t.timestamps
end
add_reference :dossiers, :dossier_transfer, foreign_key: true, null: true, index: true
end
end