1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20230331132506_create_children.rb
2023-07-04 14:56:33 +02:00

18 lines
373 B
Ruby

# 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