Use migration check_pending! if present
Fix syntax error
Simplify route