Displaying 1 result from an estimated 1 matches for "clear_db".
Did you mean:
  clear_cb
  
2006 May 10
6
Migrations don''t really support transactions
I read in various places that although migrations aren''t transactional, all
you need to do is wrap you migration method in "ActiveRecord::
Base.connection.transaction do"
to make the self.up or self.down transactional.  In my experience (Rails +
PostgreSQL), this doesn''t work very well.  If my migration hits an
exception, any tables that were touched remain modified.