File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ * Allow association's ` foreign_key ` to be composite
2
+
3
+ ` query_constraints ` option was the only way to configure a composite foreign key by passing an ` Array ` .
4
+ Now it's possible to pass an Array value as ` foreign_key ` to achieve the same behavior of an association.
5
+
6
+ * Nikita Vasilevsky*
7
+
8
+ * Allow association's ` primary_key ` to be composite
9
+
10
+ Association's ` primary_key ` can be composite when derived from associated model ` primary_key ` or ` query_constraints ` .
11
+ Now it's possible to explicitly set it as composite on the association.
12
+
13
+ * Nikita Vasilevsky*
14
+
1
15
* Add ` config.active_record.permanent_connection_checkout ` setting.
2
16
3
17
Controls whether ` ActiveRecord::Base.connection ` raises an error, emits a deprecation warning, or neither.
You can’t perform that action at this time.
0 commit comments