Commit Graph

62 Commits

Author SHA1 Message Date
Masataka Pocke Kuwabara
c7c18299b3 Put Active Record changes into place in 7.0 release notes [ci-skip] 2022-05-02 16:13:31 +09:00
David Heinemeier Hansson
41478f7074 Make #to_fs the default replacement for #to_s(:format)
#to_formatted_s is too cumbersome.
2022-02-07 12:41:21 +01:00
Francis Go
cdc88f809e Update Release Notes [ci-skip] 2021-12-26 16:25:53 +01:00
Takuya Noguchi
c10d1bef13 Fix typo in #to_s deprecation in 7.0 release notes
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2021-12-21 14:38:44 +00:00
Nikita Vasilevsky
f52a6f4982
Clarify button_to helper changes in Rails 7.0 2021-12-13 15:13:03 -05:00
Akshay Khole
00fcc3f21a
Fixes typo in 7_0 guide 2021-12-09 11:20:02 -08:00
Rafael Mendonça França
2d4ef856f4
Fix typos
Co-authored-by: Mohammed Sadiq <sadiqmmm@gmail.com>
2021-12-07 20:58:51 +00:00
Rafael Mendonça França
411ffb4647
Document sprockets is now optional 2021-12-07 19:51:15 +00:00
Jonathan Hefner
edb402ed07
Merge pull request #43791 from sampatbadhe/fix-typo
Fixed typo in Rails 7.0 release notes [ci-skip]
2021-12-07 09:58:32 -06:00
Rafael Mendonça França
fbe381217d
Point 7.0 release notes to the right branch 2021-12-07 15:53:12 +00:00
sampatbadhe
a9a8c73090 fix typo [ci-skip] 2021-12-07 21:09:54 +05:30
Ryuta Kamizono
b770fd31db Fix typo [ci-skip] 2021-12-07 15:51:45 +09:00
Rafael Mendonça França
16e010bae4
Add releases note about the #to_s deprecation. 2021-12-06 20:06:36 +00:00
Rafael Mendonça França
b6bc552c1f
Squashed commit of the following:
commit fdb0b29ad9e25965f506e340ea59b33815927378
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Dec 3 03:39:20 2021 +0000

    Remove deprecated `config` in `dbconsole`

commit 25c4cf82cdb90ad26df96412c25d25e3eda20eb5
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Dec 3 02:35:07 2021 +0000

    Remove deprecated `ActiveRecord::DatabaseConfigurations::DatabaseConfig#spec_name`

commit 887dc810d18b3be04d56975d1a488b5ebac36f3c
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Dec 3 02:27:54 2021 +0000

    Remove deprecated `ActiveRecord::Connection#:in_clause_length`

commit 126319ec3d62b8d0d86bec0c88c3555007f9d4b6
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Dec 3 02:21:49 2021 +0000

    Remove deprecated `ActiveRecord::Connection#allowed_index_name_length`

commit 60e9fd6106027296b4409e9028e0ed6c50091f33
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Nov 19 23:32:42 2021 +0000

    Remove deprecated `ActiveRecord::Base#remove_connection`

commit 7b8546572e3c082140b5958b78d088efe6874af8
Author: Rafael Mendonça França <rafael@rubyonrails.org>
Date:   Fri Nov 19 23:30:17 2021 +0000

    Fix warnings and wrong indentation
2021-12-03 04:02:40 +00:00
Rafael Mendonça França
485d3e96d0
Remove deprecated ActiveRecord::Result#map! and ActiveRecord::Result#collect! 2021-11-19 23:16:25 +00:00
Rafael Mendonça França
190f006e78
Remove deprecated ActiveRecord::Base.configurations.to_h 2021-11-19 23:16:23 +00:00
Rafael Mendonça França
73605a253e
Remove deprecated ActiveRecord::Base.configurations.default_hash. 2021-11-19 23:16:22 +00:00
Rafael Mendonça França
eeb9c78951
Remove deprecated ActiveRecord::Base.arel_attribute 2021-11-19 23:16:21 +00:00
Rafael Mendonça França
54ddb3be31
Remove deprecated ActiveRecord::Base.connection_config 2021-11-19 23:16:19 +00:00
Rafael Mendonça França
7c788e9175
Remove deprecated :return_false_on_aborted_enqueue option 2021-11-19 23:15:58 +00:00
Rafael Mendonça França
fd0ec3f4f6
Remove deprecate ActiveSupport::Multibyte::Unicode.default_normalization_form 2021-11-19 23:15:57 +00:00
Rafael Mendonça França
59eb7edb68
Remove deprecated support to use Range#include? to check the inclusion of a value in a date time range is deprecated 2021-11-19 21:43:24 +00:00
Rafael Mendonça França
93c35945cf
Remove deprecated URI.parser 2021-11-19 21:43:23 +00:00
Rafael Mendonça França
82313145df
Remove deprecated config.active_support.use_sha1_digests 2021-11-19 21:43:22 +00:00
Rafael Mendonça França
71f61b13e1
Remove deprecated methods in `Tasks::DatabaseTasks 2021-11-19 21:43:21 +00:00
Rafael Mendonça França
9828cc76d1
Remove deprecated environment and name arguments from Tasks::DatabaseTasks.schema_up_to_date? 2021-11-19 21:43:20 +00:00
Rafael Mendonça França
515aa1ea4e
Change how Merging conditions on the same column works
Merging conditions on the same column no longer maintain both conditions,
and will be consistently replaced by the latter condition.

    ```ruby
    # Rails 6.1 (IN clause is replaced by merger side equality condition)
    Author.where(id: [david.id, mary.id]).merge(Author.where(id: bob)) # => [bob]
    # Rails 6.1 (both conflict conditions exists, deprecated)
    Author.where(id: david.id..mary.id).merge(Author.where(id: bob)) # => []
    # Rails 6.1 with rewhere to migrate to Rails 7.0's behavior
    Author.where(id: david.id..mary.id).merge(Author.where(id: bob), rewhere: true) # => [bob]
    # Rails 7.0 (same behavior with IN clause, mergee side condition is consistently replaced)
    Author.where(id: [david.id, mary.id]).merge(Author.where(id: bob)) # => [bob]
    Author.where(id: david.id..mary.id).merge(Author.where(id: bob)) # => [bob]
    ```
2021-11-19 21:43:19 +00:00
Rafael Mendonça França
773eeec6ab
Remove deprecated support to Model.reorder(nil).first to search using non-deterministic order. 2021-11-19 21:43:16 +00:00
Rafael Mendonça França
cf269d51fb
Remove deprecated rake tasks:
* `db:schema:load_if_ruby`
    * `db:structure:dump`
    * `db:structure:load`
    * `db:structure:load_if_sql`
    * `db:structure:dump:#{name}`
    * `db:structure:load:#{name}`
    * `db:test:load_structure`
    * `db:test:load_structure:#{name}`
2021-11-19 21:43:14 +00:00
Rafael Mendonça França
7b9d4d2d8a
Remove deprecated DatabaseConfig#config method 2021-11-19 19:07:15 +00:00
Rafael Mendonça França
15aa4200e0
Rollback transactions when the block returns earlier than expected
This behavior change is being announced via a deprecation message
since Rails 6.1 and now we are making it the default behavior.
2021-11-19 19:07:14 +00:00
Rafael Mendonça França
2d821ef0c5
Remove deprecated support to pass a column to type_cast 2021-11-17 21:51:42 +00:00
Rafael Mendonça França
21c8e5c4ee
Remove deprecated support to type cast to database values ActiveRecord::Base objects 2021-11-17 21:51:42 +00:00
Rafael Mendonça França
8311df47a6
Remove deprecated support to quote ActiveRecord::Base objects 2021-11-17 21:51:40 +00:00
Rafael Mendonça França
5952493e50
Remove deprecacated support to resolve connection using "primary" as connection specification name 2021-11-17 21:51:39 +00:00
Rafael Mendonça França
0792661e55
Remove deprecation warning when using :interval column is used in PostgreSQL database 2021-11-17 21:51:36 +00:00
Rafael Mendonça França
415709a76e
Remove deprecated support to YAML load ActiveRecord::Base instance in the Rails 4.2 and 4.1 formats 2021-11-17 21:51:35 +00:00
Rafael Mendonça França
99b54b6ded
Remove deprecated option :spec_name in the configs_for method 2021-11-17 21:51:34 +00:00
Rafael Mendonça França
5eddf5e9b4
Remove deprecated ActiveRecord::Base.allow_unsafe_raw_sql 2021-11-17 21:51:33 +00:00
Rafael Mendonça França
1f3cfb272c
Remove support to Marshal load Rails 5.x ActiveModel::AttributeSet format 2021-11-17 21:51:32 +00:00
Rafael Mendonça França
2996732089
Remove support to Marshal and YAML load Rails 5.x error format 2021-11-17 21:51:31 +00:00
Rafael Mendonça França
70dc990ad2
Remove deprecated support to use []= in ActiveModel::Errors#messages 2021-11-17 21:51:30 +00:00
Rafael Mendonça França
bab78b5d54
Remove deprecated support delete errors from ActiveModel::Errors#messages 2021-11-17 21:51:29 +00:00
Rafael Mendonça França
ef40a92c1c
Remove deprecated support clear errors from ActiveModel::Errors#messages 2021-11-17 21:51:26 +00:00
Rafael Mendonça França
884c97fad0
Remove deprecated support concat errors to ActiveModel::Errors#messages 2021-11-17 21:51:25 +00:00
Rafael Mendonça França
73872c7220
Remove deprecated ActiveModel::Errors#to_xml 2021-11-17 21:51:23 +00:00
Rafael Mendonça França
edc4e7dfb5
Remove deprecated ActiveModel::Errors#keys 2021-11-17 21:51:22 +00:00
Rafael Mendonça França
6fed53b694
Remove deprecated ActiveModel::Errors#values 2021-11-17 21:51:21 +00:00
Rafael Mendonça França
362e17e899
Remove deprecated ActiveModel::Errors#slice! 2021-11-17 21:51:20 +00:00
Rafael Mendonça França
a743656ae4
Remove deprecated ActiveModel::Errors#to_h 2021-11-17 21:51:19 +00:00