Incorporating Devise Authentication into an already existing user structure?

后端 未结 3 1434
南方客
南方客 2021-02-06 08:38

I have a fully functional authentication system with a user table that has over fifty columns. It\'s simple but it does hash encryption with salt, uses email instead of usernam

3条回答
  •  别那么骄傲
    2021-02-06 08:48

    i'd get rid of the :default => "" in your schema for email. devise puts a unique constraint on email by default, so you don't want defaults of empty string

提交回复
热议问题