vereto-api/db/migrate/20190214142704_create_user_profiles.rb
2019-02-14 16:29:41 +01:00

13 lines
276 B
Ruby

class CreateUserProfiles < ActiveRecord::Migration[5.2]
def change
create_table :user_profiles do |t|
t.string :avatar
t.string :tagline
t.date :dob
t.string :role
t.references :user, foreign_key: true
t.timestamps
end
end
end