Fixed migration broken with Rails 3.1.3 (#10320).
Authored by: jplang 2012-02-25
Parent: [r8995]
Child: [r8997]