We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ddcaa1 + 32ff2c2 commit bd720c9Copy full SHA for bd720c9
activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
1
+* Rails can now verify foreign keys after loading fixtures in tests.
2
+
3
+ This will be the default for new apps in Rails 7. To opt in:
4
5
+ ```ruby
6
+ config.active_record.verify_foreign_keys_for_fixtures = true
7
+ ```
8
9
+ Tests will not run if there is a foreign key constraint violation in your fixture data.
10
11
+ The feature is supported by SQLite and PostgreSQL, other adapters can also add support for it.
12
13
+ *Alex Ghiculescu*
14
15
* Clear cached `has_one` association after setting `belongs_to` association to `nil`.
16
17
After setting a `belongs_to` relation to `nil` and updating an unrelated attribute on the owner,
0 commit comments