Annotates activerecord models using db/schema.rb
.
This is an alternative to the annotate gem for non rails apps.
Add this line to your application's Gemfile:
gem 'columns'
And then execute:
$ bundle
Or install it yourself as:
$ gem install columns
$ cd your_project
Once you have generate a db/schema.rb
, just type the following to
annotate your models:
$ columns
Instead of using Columns as a shell command, you can use it as a library. To do so, call the following method:
require 'columns'
Columns.execute
Note that models must to reside in app/models
.
- Fork it ( https://github.com/[my-github-username]/columns/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request