budget/db/migrate/20240727022931_create_users.rb
2024-07-26 23:24:54 -04:00

11 lines
228 B
Ruby

class CreateUsers < ActiveRecord::Migration[8.0]
def change
create_table :users do |t|
t.string :email
t.string :password_digest
t.timestamps
end
add_index :users, :email, unique: true
end
end