I have username
column on users
table.
I could do somethig like this: rails generate migration add_username_to_users username:string:uniq
but I have got username
column (and I've already run migration).
So how can I make username
column unique?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With