1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20230331132506_create_children.rb

18 lines
373 B
Ruby
Raw Normal View History

2023-04-03 18:23:49 +02:00
# frozen_string_literal: true
# Child is a modal for a child of a user
class CreateChildren < ActiveRecord::Migration[5.2]
def change
create_table :children do |t|
t.belongs_to :user, foreign_key: true
t.string :first_name
t.string :last_name
t.date :birthday
t.string :phone
t.string :email
t.timestamps
end
end
end