gregnavis / active_record_doctor

Identify database issues before they hit production.
MIT License
1.76k stars 55 forks source link

Require 'foreign_type' column to be non-NULL for required polymorphic `belongs_to` associations #115

Closed fatkodima closed 1 year ago

fatkodima commented 1 year ago

For polymorphic belongs_to associations, both 'foreign_key' and 'foreign_type' columns should be non-NULL.

gregnavis commented 1 year ago

Thank you for the contribution, @fatkodima.