budget/db/migrate/20240727022931_create_users.rb

12 lines
228 B
Ruby
Raw Permalink Normal View History

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