danielweinmann/catarse — comment on commit f7a6227e7fe18651aa02dc5b3251c1ac738f1247
File: db/migrate/20111031054952_add_visible_to_curated_pages.rb line 4
By danielweinmann:

Man, I've changed this line to

execute("UPDATE curated_pages SET visible = true")

instead of using CuratedPage.update_all. This is because we should not be dependent on the models on migrations...

...imagine we've renamed the CuratedPage model and checked the change into git. When we try to run this migration, it wont find the CuratedPage model. If we use a SQL, we can guarantee that we'll not have this kind of problem ;)