demarches-normaliennes/db/migrate/20170601123221_create_attestations.rb

12 lines
247 B
Ruby
Raw Normal View History

2017-06-02 14:30:26 +02:00
class CreateAttestations < ActiveRecord::Migration[5.0]
def change
create_table :attestations do |t|
t.string :pdf
t.string :title
t.references :dossier, foreign_key: true, null: false
t.timestamps
end
end
end