Skip to content

Instantly share code, notes, and snippets.

@proapi
Created May 11, 2016 12:58
Show Gist options
  • Save proapi/b6ac6ec5339583a4b19e39e6db247321 to your computer and use it in GitHub Desktop.
Save proapi/b6ac6ec5339583a4b19e39e6db247321 to your computer and use it in GitHub Desktop.
Command line to grep changes in schema.rb
g diff -U0 master..HEAD -- db/schema.rb | tail -n +6 | grep -e "-\|+" | grep -v -e 'ActiveRecord'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment