SchemaPlus is an ActiveRecord extension that provides enhanced capabilities for schema definition and querying, including: enhanced and more DRY index capabilities, support and automation for foreign key constraints, and support for views.
Ronen Barzel, Michał Łomnicki
gem "schema_plus", "~> 0.1.2"