demarches-normaliennes/db/migrate/20160829114646_create_individual_table.rb

12 lines
234 B
Ruby
Raw Normal View History

2016-08-30 11:18:43 +02:00
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