I got bitten by this bug today. Migrations in Rails are sold to us developers as the bee’s knees. Truthfully they are a godsend. But sometimes stuff just does not work.
Take foreign keys for instance. I mean wtf, why aren’t they supported natively? That just makes no sense at all.
But in Rails 1.2.3, try to call find on any Model you have. The migration fails; it can’t find find on the database adapter class you are using. In other words: you cannot executy any Rails code, in spite of what the docs say.
I sincerely hope this gets addressed soon, or I fear migrations may lose their value.