demarches-normaliennes/db/migrate/20160829114646_create_individual_table.rb
2016-08-30 11:18:43 +02:00

11 lines
234 B
Ruby

class CreateIndividualTable < ActiveRecord::Migration
def change
create_table :individuals do |t|
t.string :nom
t.string :prenom
t.string :birthdate
end
add_belongs_to :individuals, :dossier
end
end