mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
18 lines
373 B
Ruby
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
|