Skip to content

Instantly share code, notes, and snippets.

@mieciu
Created May 19, 2015 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mieciu/a924c040b646efb777b8 to your computer and use it in GitHub Desktop.
Save mieciu/a924c040b646efb777b8 to your computer and use it in GitHub Desktop.
git_diff.each_delta do | delta |
if delta.new_file[:path] =~ /migrations/ or delta.old_file[:path] =~ /migrations/
puts "There are migrations, aborting..."
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment