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.
假设我想创建一个具有 2 个字段的模型的脚手架,但是我在做 rails g scaffold 时错误地添加了一个额外的字段。我 rake 迁移了它。扭转局面的最佳方法是什么?
你可以做
rake db:rollback rails destroy scaffold ScaffoldName
并重复。