activerecord 7.0.4.3 → 7.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +159 -7
  3. data/README.rdoc +2 -2
  4. data/lib/active_record/associations/has_one_association.rb +4 -0
  5. data/lib/active_record/associations/preloader/through_association.rb +1 -1
  6. data/lib/active_record/associations/singular_association.rb +7 -5
  7. data/lib/active_record/associations.rb +15 -6
  8. data/lib/active_record/attribute_methods/read.rb +1 -1
  9. data/lib/active_record/attribute_methods/time_zone_conversion.rb +0 -4
  10. data/lib/active_record/attribute_methods.rb +5 -7
  11. data/lib/active_record/autosave_association.rb +9 -5
  12. data/lib/active_record/callbacks.rb +12 -14
  13. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +20 -16
  14. data/lib/active_record/connection_adapters/abstract/schema_statements.rb +2 -1
  15. data/lib/active_record/connection_adapters/abstract_adapter.rb +4 -0
  16. data/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +7 -3
  17. data/lib/active_record/connection_adapters/mysql/quoting.rb +8 -0
  18. data/lib/active_record/connection_adapters/mysql/schema_definitions.rb +4 -1
  19. data/lib/active_record/connection_adapters/postgresql/column.rb +2 -0
  20. data/lib/active_record/connection_adapters/postgresql/database_statements.rb +1 -5
  21. data/lib/active_record/connection_adapters/postgresql/oid/array.rb +1 -1
  22. data/lib/active_record/connection_adapters/postgresql/oid/timestamp_with_time_zone.rb +1 -1
  23. data/lib/active_record/connection_adapters/postgresql/schema_statements.rb +3 -2
  24. data/lib/active_record/connection_adapters/postgresql/utils.rb +9 -10
  25. data/lib/active_record/connection_adapters/postgresql_adapter.rb +1 -1
  26. data/lib/active_record/connection_adapters/sqlite3_adapter.rb +1 -0
  27. data/lib/active_record/disable_joins_association_relation.rb +1 -1
  28. data/lib/active_record/explain_subscriber.rb +1 -1
  29. data/lib/active_record/gem_version.rb +2 -2
  30. data/lib/active_record/locking/optimistic.rb +32 -18
  31. data/lib/active_record/middleware/database_selector.rb +3 -3
  32. data/lib/active_record/migration/command_recorder.rb +1 -2
  33. data/lib/active_record/migration/compatibility.rb +7 -0
  34. data/lib/active_record/migration.rb +1 -1
  35. data/lib/active_record/persistence.rb +4 -4
  36. data/lib/active_record/reflection.rb +8 -0
  37. data/lib/active_record/relation/calculations.rb +50 -23
  38. data/lib/active_record/relation/predicate_builder/association_query_value.rb +20 -1
  39. data/lib/active_record/relation/predicate_builder.rb +2 -1
  40. data/lib/active_record/relation/query_methods.rb +11 -3
  41. data/lib/active_record/result.rb +6 -4
  42. data/lib/active_record/schema_dumper.rb +4 -0
  43. data/lib/active_record/store.rb +1 -1
  44. data/lib/active_record/table_metadata.rb +5 -1
  45. data/lib/active_record/type/serialized.rb +4 -4
  46. data/lib/arel/filter_predications.rb +1 -1
  47. data/lib/arel/nodes/filter.rb +1 -1
  48. metadata +13 -13
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.4.3
4
+ version: 7.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2023-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.4.3
19
+ version: 7.0.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 7.0.4.3
26
+ version: 7.0.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 7.0.4.3
33
+ version: 7.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 7.0.4.3
40
+ version: 7.0.6
41
41
  description: Databases on Rails. Build a persistent domain model by mapping database
42
42
  tables to Ruby classes. Strong conventions for associations, validations, aggregations,
43
43
  migrations, and testing come baked-in.
@@ -434,12 +434,12 @@ licenses:
434
434
  - MIT
435
435
  metadata:
436
436
  bug_tracker_uri: https://github.com/rails/rails/issues
437
- changelog_uri: https://github.com/rails/rails/blob/v7.0.4.3/activerecord/CHANGELOG.md
438
- documentation_uri: https://api.rubyonrails.org/v7.0.4.3/
437
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.6/activerecord/CHANGELOG.md
438
+ documentation_uri: https://api.rubyonrails.org/v7.0.6/
439
439
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
440
- source_code_uri: https://github.com/rails/rails/tree/v7.0.4.3/activerecord
440
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.6/activerecord
441
441
  rubygems_mfa_required: 'true'
442
- post_install_message:
442
+ post_install_message:
443
443
  rdoc_options:
444
444
  - "--main"
445
445
  - README.rdoc
@@ -456,8 +456,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
456
456
  - !ruby/object:Gem::Version
457
457
  version: '0'
458
458
  requirements: []
459
- rubygems_version: 3.4.3
460
- signing_key:
459
+ rubygems_version: 3.4.13
460
+ signing_key:
461
461
  specification_version: 4
462
462
  summary: Object-relational mapper framework (part of Rails).
463
463
  test_files: []