mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
14 lines
321 B
Ruby
14 lines
321 B
Ruby
class CreateUsers < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :users, id: :uuid do |t|
|
|
t.references :family, null: false, foreign_key: true, type: :uuid
|
|
t.string :first_name
|
|
t.string :last_name
|
|
t.string :email
|
|
t.string :password_digest
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|