diff options
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 654026da4c..3bd85976a0 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,16 @@ +* Allow strings to specify the `#order` value. + + Example: + + Model.order(id: 'asc').to_sql == Model.order(id: :asc).to_sql + + *Marcelo Casiraghi*, *Robin Dupret* + +* Dynamically register PostgreSQL enum OIDs. This prevents "unknown OID" + warnings on enum columns. + + *Dieter Komendera* + * `includes` is able to detect the right preloading strategy when string joins are involved. @@ -9,17 +22,17 @@ value for any enum attribute is always evaluated as 0 during uniqueness validation. - Fixes #14172 + Fixes #14172. *Vilius Luneckas* *Ahmed AbouElhamayed* -* `before_add` callbacks are fired before the record is saved on - `has_and_belongs_to_many` assocations *and* on `has_many :through` - associations. Before this change, `before_add` callbacks would be fired - before the record was saved on `has_and_belongs_to_many` associations, but - *not* on `has_many :through` associations. +* `before_add` callbacks are fired before the record is saved on + `has_and_belongs_to_many` assocations *and* on `has_many :through` + associations. Before this change, `before_add` callbacks would be fired + before the record was saved on `has_and_belongs_to_many` associations, but + *not* on `has_many :through` associations. - Fixes #14144 + Fixes #14144. * Fixed STI classes not defining an attribute method if there is a conflicting private method defined on its ancestors. @@ -28,8 +41,7 @@ *Godfrey Chan* -* Coerce strings when reading attributes. - Fixes #10485. +* Coerce strings when reading attributes. Fixes #10485. Example: |