Re: Re: remove a table with migration

Colin Law
Tue, 23 Aug 2011 11:16:00 -0000

On 23 August 2011 08:55, coolesting
<coolesting-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Can i rollback the specify table ?
> for example, the ''db/migrate'' directory have five
migration files, i
> want to rollback one of them,

It really is not a good idea to do that, better to make a new
migration.  If you do rollback a migration that is not the last make
sure you then delete the migration or if you run them from the start
you will end up with the table back again.  Also if any of the later
migrations reference that table you will be in trouble if you run the
migrations from scratch after deleting this one.

Colin