16 lines
489 B
Ruby
16 lines
489 B
Ruby
|
class CreateUsers < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :users, id: :uuid do |t|
|
||
|
t.timestamps null: false
|
||
|
t.string :email, null: false
|
||
|
t.string :encrypted_password, limit: 128, null: false
|
||
|
t.string :confirmation_token, limit: 128
|
||
|
t.string :remember_token, limit: 128, null: false
|
||
|
end
|
||
|
|
||
|
add_index :users, :email
|
||
|
add_index :users, :confirmation_token, unique: true
|
||
|
add_index :users, :remember_token, unique: true
|
||
|
end
|
||
|
end
|