Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the migration matcher fail if passed a bad filename #11

Merged
merged 1 commit into from Nov 24, 2012

Conversation

daemianmack
Copy link
Contributor

If a migration file is found not to exist, its name is set to nil, and this is thrown up the stack as a failure at matcher.rb#L46. 

This then gets interpreted as a successful match at matcher.rb#L129.

Avoid this by returning the requested @name to trigger a failed match.

If a migration file is found not to exist, its name is set to nil, and this is thrown up the stack with a failure at matcher.rb#L46. 

This then gets interpreted as a successful match at matcher.rb#L129.

Avoid this by returning the requested @name to trigger a failed match.
stevehodgkiss added a commit that referenced this pull request Nov 24, 2012
Make the migration matcher fail if passed a bad filename
@stevehodgkiss stevehodgkiss merged commit b84bba0 into stevehodgkiss:master Nov 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants