class method self.verify_foreign_keys_for_fixtures

Ruby on Rails 8.0.4

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

If 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 429
  singleton_class.attr_accessor :verify_foreign_keys_for_fixtures

Defined in activerecord/lib/active_record.rb line 429 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord

Type at least 2 characters to search.

↑↓ navigate · open · esc close