Added support for ActiveRecord 4 migrator

Active Record changed the initialiser of the migrator to accept the migration objects themselves rather than the path of the migration files.

This PR checks which version of active record is being used and changes how the initialisation of the migrator happens.