Commit 5cf0f521 by nnnghia98

add index to column email

parent 72b7d239
Pipeline #243 canceled with stages
in 0 seconds
......@@ -5,7 +5,7 @@ class CreateUsers < ActiveRecord::Migration[6.0]
t.string :last_name
## Database authenticatable
t.string :email, null: false, default: ""
t.string :email,unique: true, null: false, default: ""
t.string :username, unique: true
t.string :encrypted_password, null: false, default: ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment