vereto-api/db/migrate/20190214142704_create_user_profiles.rb

14 lines
276 B
Ruby
Raw Normal View History

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