class method
self.verify_foreign_keys_for_fixtures
Ruby on Rails edge
Since v7.2.3.2If true, Rails will verify all foreign keys in the database after loading fixtures. An error will be raised if there are any foreign key violations, indicating incorrectly written fixtures. Supported by PostgreSQL and SQLite.
Source
# File activerecord/lib/active_record.rb, line 514
singleton_class.attr_accessor :verify_foreign_keys_for_fixtures
Defined in activerecord/lib/active_record.rb line 514
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord