Added migrations_directory as a parameter