SchemaPlus provides ActiveRecord support for  foreign keys, database defined validations and associations.