demarches-normaliennes/db/migrate/20150818113123_create_cerfas.rb

10 lines
212 B
Ruby
Raw Normal View History

2015-08-18 13:52:00 +02:00
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