A Rubocop extension containing two cops:
Model Structure. Keep those "macro" methods at the top of your model files clean and consistent across the project.
Migration Constants. Prevent a common source of migration breakage - dependencies on things that are likely to change by the time the migration is actually run.
Installation
Add this line to your application's Gemfile:
gem 'dark_finger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dark_finger
Usage
See the guides for each of the Cops for details.
License
The gem is available as open source under the terms of the MIT License.