fixed migration file issue with references