Commit ccdb86c4 by nnnghia98

add unique

parent 6abc22ae
Pipeline #240 canceled with stages
in 0 seconds
...@@ -5,8 +5,8 @@ class CreateUsers < ActiveRecord::Migration[6.0] ...@@ -5,8 +5,8 @@ class CreateUsers < ActiveRecord::Migration[6.0]
t.string :last_name t.string :last_name
## Database authenticatable ## Database authenticatable
t.string :email, null: false, default: "" t.string :email, null: false, unique: true default: ""
t.string :username t.string :username, unique: true
t.string :encrypted_password, null: false, default: "" t.string :encrypted_password, null: false, default: ""
## Recoverable ## Recoverable
......
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