Generate scaffolding for user
All checks were successful
Ruby CI / test (pull_request) Successful in 24s
All checks were successful
Ruby CI / test (pull_request) Successful in 24s
This commit is contained in:
parent
a6eaa1b4cf
commit
ba0343f6cb
19 changed files with 306 additions and 1 deletions
11
db/migrate/20240727022931_create_users.rb
Normal file
11
db/migrate/20240727022931_create_users.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue