hensei-api/db/migrate/20200913091950_create_users.rb
Justin Edmund 7dcd298fc7 Update migrations
Fixed User table and added Doorkeeper tables
2020-09-25 10:42:12 -07:00

12 lines
380 B
Ruby

class CreateUsers < ActiveRecord::Migration[6.0]
def change
create_table :users, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.string :email, :unique => true
t.string :password_digest
t.string :username, :unique => true
t.integer :granblue_id, :unique => true
t.timestamps
end
end
end