How to delete migration files in Rails 3

前端 未结 11 1071
盖世英雄少女心
盖世英雄少女心 2020-12-07 07:54

I would like to remove/delete a migration file. How would I go about doing that? I know there are similar questions on here but as an update, is there a better way than doin

11条回答
  •  再見小時候
    2020-12-07 08:50

    You can also run a down migration like so:

    rake db:migrate:down VERSION=versionnumber
    

    Refer to the Ruby on Rails guide on migrations for more info.

提交回复
热议问题