ModelProbe
Schema introspection for ActiveRecord
Provides a detailed view of the underlying schema that backs an ActiveRecord model.
This functionality can be added to any object that implements ActiveRecord's columns interface.
Installation
Add this line to your application's Gemfile:
gem 'model_probe'
And then execute:
$ bundle
Or install it yourself as:
$ gem install model_probe
Usage
MyModel.extend ModelProbe
MyModel.probe
MyModel.print_fixture
MyModel.print_model