Fixes running migrations for Rails 4.1.x