How to handle Migrations correctly

June 7, 2008

In this topic we will not learn how to write Migrations but to learn how to improve them:

  1. You have to create them using the innodb storage engine to enable Transaction and to be able to run correctly your tests (rolling back, sandbox,..)
  2. http://significantbits.wordpress.com/2007/03/22/make-sure-you-use-innodb-and-utf-8-when-creating-tables-through-migrations/

  3. If you are dealing with a legacy database (old database), you have to run the task existing in this page to turn your table to inndb:
  4. http://snippets.dzone.com/posts/show/4327

  5. Here more details about top-secret tuned configuration for rails and migrations:
  6. http://blog.evanweaver.com/articles/2007/04/30/top-secret-tuned-mysql-configurations-for-rails/

Tags: , , ,

Leave a Reply