Alex Rivera | Logout

How to delete migration files in Rails 3

Asked 2010-10-06T12:51:06.113
117

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 doing script/destroy?

Also, should I do a db:reset or db:drop if I remove/delete a migration?

Edit
Report

1 Answer

10

We can use,

$ rails d migration table_name  

Which will delete the migration.

answered 2013-03-29T06:49:25.023

Your Answer