Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created July 27, 2011 13:18
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 holysugar/1109335 to your computer and use it in GitHub Desktop.
Save holysugar/1109335 to your computer and use it in GitHub Desktop.
Use annotate_models temporary...
#!/bin/sh
RAILS_ROOT=$(cd $(dirname $0)/..; pwd)
echo $RAILS_ROOT
cd $RAILS_ROOT
cp Gemfile Gemfile.$$
echo "\ngem 'annotate'" >> Gemfile
bundle install
rake db:migrate
annotate
mv Gemfile.$$ Gemfile
bundle install
@holysugar
Copy link
Author

I may write gem 'annotate', :require => false .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment