Skip to content

Commit

Permalink
formatting pass over Active Record changelog. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Nov 4, 2015
1 parent 3f53df7 commit 1e2f6bc
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions activerecord/CHANGELOG.md
Expand Up @@ -60,7 +60,7 @@

*Takashi Kokubun*

* Use advisory locking to raise a ConcurrentMigrationError instead of
* Use advisory locking to raise a `ConcurrentMigrationError` instead of
attempting to migrate when another migration is currently running.

*Sam Davies*
Expand All @@ -80,7 +80,7 @@
*Aaron Suggs*

* Avoid disabling errors on the PostgreSQL connection when enabling the
standard_conforming_strings setting. Errors were previously disabled because
`standard_conforming_strings` setting. Errors were previously disabled because
the setting wasn't writable in Postgres 8.1 and didn't exist in earlier
versions. Now Rails only supports Postgres 8.2+ we're fine to assume the
setting exists. Disabling errors caused problems when using a connection
Expand All @@ -92,7 +92,7 @@

*Harry Marr*

* Set `scope.reordering_value` to `true` if :reordering values are specified.
* Set `scope.reordering_value` to `true` if `:reordering`-values are specified.

Fixes #21886.

Expand Down Expand Up @@ -151,13 +151,13 @@
validates_numericality_of :pitch
end

- Old style
- `guitar.errors["tuning_pegs.pitch"] = ["is not a number"]`
# Old style
guitar.errors["tuning_pegs.pitch"] = ["is not a number"]

- New style (if defined globally, or set in has_many_relationship)
- `guitar.errors["tuning_pegs[1].pitch"] = ["is not a number"]`
# New style (if defined globally, or set in has_many_relationship)
guitar.errors["tuning_pegs[1].pitch"] = ["is not a number"]

*Michael Probber and Terence Sun*
*Michael Probber*, *Terence Sun*

* Exit with non-zero status for failed database rake tasks.

Expand All @@ -170,21 +170,23 @@

*Rafael Sales*

* Add ability to default to `uuid` as primary key when generating database migrations
* Add ability to default to `uuid` as primary key when generating database migrations.

config.generators do |g|
g.orm :active_record, primary_key_type: :uuid
end
Example:

config.generators do |g|
g.orm :active_record, primary_key_type: :uuid
end

*Jon McCartie*

* Don't cache arguments in #find_by if they are an ActiveRecord::Relation
* Don't cache arguments in `#find_by` if they are an `ActiveRecord::Relation`.

Fixes #20817

*Hiroaki Izu*

* Qualify column name inserted by `group` in calculation
* Qualify column name inserted by `group` in calculation.

Giving `group` an unqualified column name now works, even if the relation
has `JOIN` with another table which also has a column of the name.
Expand All @@ -209,7 +211,7 @@
*Jake Worth*

* Add an immutable string type to help reduce memory usage for apps which do
not need mutation detection on Strings.
not need mutation detection on strings.

*Sean Griffin*

Expand Down Expand Up @@ -242,7 +244,7 @@

*Matthew Draper*, *Jean Boussier*

* Remove unused `pk_and_sequence_for` in AbstractMysqlAdapter.
* Remove unused `pk_and_sequence_for` in `AbstractMysqlAdapter`.

*Ryuta Kamizono*

Expand All @@ -268,7 +270,7 @@

*Jimmy Bourassa*

* Fixed taking precision into count when assigning a value to timestamp attribute
* Fixed taking precision into count when assigning a value to timestamp attribute.

Timestamp column can have less precision than ruby timestamp
In result in how big a fraction of a second can be stored in the
Expand Down Expand Up @@ -298,7 +300,7 @@
*Yves Senn*, *Matthew Draper*

* Add `ActiveRecord::Base.ignored_columns` to make some columns
invisible from ActiveRecord.
invisible from Active Record.

*Jean Boussier*

Expand Down

1 comment on commit 1e2f6bc

@fxn
Copy link
Member

@fxn fxn commented on 1e2f6bc Nov 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.