bithive/openstreetmap-website — comment on commit 7db67c37f14826f024e8a0d641702804f8dcd412
File:  line 0
By bithive:

I'm not happy with it either; this was just what I hit upon to make the migrations run under 1.8 and 1.9.

I'm not sure requiring this at the top of every migration is the way to go even without the expand_path stuff, but I wasn't able to get it to work by moving the require 'lib/migrate' into various places in application.rb. The file would get loaded (tested via the console) but the migrations failed.