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 つのフィールドのモデルを使用して scaffold を作成したいとしますが、rails g scaffold を実行するときに誤ってフィールドを 1 つ追加してしまいました。そして、私はそれを移行しました。状況を元に戻す最良の方法は何ですか?
あなたができる
rake db:rollback rails destroy scaffold ScaffoldName
繰り返します。