added rake task and build step to automigrate the database