Hi. My name is Chaz Meyers. I make things go ding when there's stuff.

cpm

  • RSS
  • Ask me anything
  • Archive
  • About

I just realized why `rake db:migrate` takes so damn long at work.

Rails is generally designed assuming that the application will get its own database. This is normal in environments where “database” is a lightweight concept, as in MySQL, PostgreSQL, or SQLite. After updating the database, it dumps the database schema to a file so when you install a new copy of the application you don’t need to run dozens of migrations.

This works fine when there aren’t many tables unrelated to your…

Feb 19 2009
Copyright © 2007–2012 cpm ‒ HD Exhibit Theme by Dustin Hoffman