rails/rails — pull request #12450 by iantropov (2013-10-05 13:45:22+00:00)
Title: Fix bug, when ':dependent => :destroy' violates foreign key constraints

Fix issue, when ':dependent => :destroy' option violates foreign key constraints, issue #12380