migrations and ajax calls