Upgrade migrations to work with Rails 4.