Adding more changes for migrations

REGEX security changing ^ to \A and $ to \z

Some typo errors, not caught earlier

unneccesary reversed changes
Merge branch 'rails-4' of https://github.com/agmps18/platform into rails-4