RubyGems.org

SchemaAssociations extends ActiveRecord to automatically create associations by inspecting the database schema. This is more more DRY than the standard behavior, for which in addition to specifying the foreign key in the migration, you must also specify complementary associations in two model files (e.g. a :belongs_to and a :has_many).

installgem install schema_associations -v 0.1.2
Authors

Ronen Barzel, Michał Łomnicki

13,057 total downloads 1,455 for this version
Owners

5ac931514fa7deadb59ed29909c233b8D969a347edb3054c711946c0ed07ce2f

Gemfile
gem 'schema_associations', '~> 0.1.2'
Versions
  1. 1.2.2 July 18, 2014 (18.5 KB)
  2. 1.2.1 July 18, 2014 (18.5 KB)
  3. 1.2.0 August 14, 2013 (18 KB)
  4. 1.1.0 May 30, 2013 (18 KB)
  5. 1.0.1 January 21, 2013 (16.5 KB)
Show all versions (12 total)
Runtime Dependencies
  1. schema_plus >= 0