demarches-normaliennes/db/migrate/20150626081655_create_dossier_pdfs.rb

9 lines
216 B
Ruby
Raw Normal View History

2015-08-10 11:05:06 +02:00
class CreateDossierPdfs < ActiveRecord::Migration
def change
create_table :dossier_pdfs do |t|
t.string :ref_dossier_pdf
end
add_reference :dossier_pdfs, :dossier, references: :dossiers
end
end