method
verify_foreign_keys_for_fixtures
rails latest stable - Class:
ActiveRecord
verify_foreign_keys_for_fixturespublic
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.