DAddYE/mini_record — pull request #27 by virtax (2013-06-17 18:15:50+00:00)
Title: Support of foreign key db constraints were added with using of foreigner gem

Example:
belongs_to :person
index :person_id, :foreign=> true

For tests please use DB=mysql2 bundle exec rake.