Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Rails 应用程序上使用巫术进行身份验证,我想知道如何从 User 模型中删除用户名。我成功地使用电子邮件地址登录,但我仍然在数据库中的每个用户上看到这个username: nil
username: nil
我该如何摆脱它?迁移应该是什么样子?
remove_column :users, :username