parent
c23f58a6df
commit
a70c656690
21 changed files with 309 additions and 2 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