class method
self.verify_foreign_keys_for_fixtures
Ruby on Rails 7.2.3
Since v7.2.3If 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 444
singleton_class.attr_accessor :verify_foreign_keys_for_fixtures
Defined in activerecord/lib/active_record.rb line 444
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord