用 devise 新建 User 表时,个人信息的详细资料建在 User 表里,还是需要分离另一张表 has_one
呢,一般哪种常用?
阿神2017-04-22 09:01:15
Separation is good, even more so when using Devise.
The main reason is not the performance, but the convenience of modification. It is more troublesome to change things in the User table with Devise due to various verifications and callbacks. Users can change personal information at any time, such as changing their Weibo address or something.