demarches-normaliennes/db/migrate/20150818113123_create_cerfas.rb
2015-08-18 13:52:00 +02:00

9 lines
212 B
Ruby

class CreateCerfas < ActiveRecord::Migration
def change
create_table :cerfas do |t|
t.string :content
t.references :dossier, index: true
end
add_foreign_key :cerfas, :dossiers
end
end