How to reverse a 'rails generate'

前端 未结 17 1445
一个人的身影
一个人的身影 2020-12-02 03:10

I want to delete all the files it created and roll back any changes made, but not necessarily to the database, but more to the config files.

I\'d like to automatical

17条回答
  •  [愿得一人]
    2020-12-02 03:48

    If you use Rails, use rails d controller Users.

    And, if you use Zeus, use zeus d controller Users.

    On the other hand, if you are using git or SVN, revert your changes with the commit number. This is much faster.

提交回复
热议问题