activerecord 7.0.0.rc3 → 7.0.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +200 -3
  3. data/MIT-LICENSE +1 -1
  4. data/lib/active_record/associations/join_dependency.rb +6 -2
  5. data/lib/active_record/associations.rb +29 -8
  6. data/lib/active_record/attribute_methods.rb +1 -1
  7. data/lib/active_record/autosave_association.rb +2 -2
  8. data/lib/active_record/connection_adapters/abstract/quoting.rb +1 -1
  9. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +4 -4
  10. data/lib/active_record/connection_adapters/abstract/schema_dumper.rb +14 -1
  11. data/lib/active_record/connection_adapters/abstract/schema_statements.rb +9 -4
  12. data/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +1 -1
  13. data/lib/active_record/connection_adapters/mysql/database_statements.rb +3 -1
  14. data/lib/active_record/connection_adapters/mysql/schema_dumper.rb +7 -1
  15. data/lib/active_record/connection_adapters/mysql/schema_statements.rb +1 -0
  16. data/lib/active_record/connection_adapters/postgresql/database_statements.rb +2 -0
  17. data/lib/active_record/connection_adapters/postgresql/oid/timestamp_with_time_zone.rb +2 -0
  18. data/lib/active_record/connection_adapters/postgresql/schema_statements.rb +9 -4
  19. data/lib/active_record/connection_adapters/postgresql_adapter.rb +2 -2
  20. data/lib/active_record/connection_adapters/sqlite3/database_statements.rb +2 -0
  21. data/lib/active_record/connection_adapters/sqlite3/quoting.rb +13 -0
  22. data/lib/active_record/connection_adapters/sqlite3/schema_statements.rb +12 -12
  23. data/lib/active_record/connection_adapters/sqlite3_adapter.rb +28 -0
  24. data/lib/active_record/database_configurations/connection_url_resolver.rb +1 -0
  25. data/lib/active_record/database_configurations.rb +1 -1
  26. data/lib/active_record/encryption/configurable.rb +2 -2
  27. data/lib/active_record/encryption/encryptable_record.rb +1 -1
  28. data/lib/active_record/encryption/extended_deterministic_queries.rb +28 -28
  29. data/lib/active_record/fixtures.rb +1 -1
  30. data/lib/active_record/gem_version.rb +2 -2
  31. data/lib/active_record/integration.rb +2 -2
  32. data/lib/active_record/migration/compatibility.rb +24 -2
  33. data/lib/active_record/migration.rb +1 -1
  34. data/lib/active_record/railtie.rb +2 -2
  35. data/lib/active_record/reflection.rb +1 -1
  36. data/lib/active_record/relation/calculations.rb +3 -2
  37. data/lib/active_record/relation/delegation.rb +1 -1
  38. data/lib/active_record/relation/query_methods.rb +19 -5
  39. data/lib/active_record/relation.rb +17 -4
  40. data/lib/active_record/schema.rb +38 -23
  41. data/lib/active_record/schema_dumper.rb +15 -16
  42. data/lib/active_record/schema_migration.rb +4 -0
  43. data/lib/active_record/tasks/database_tasks.rb +6 -2
  44. data/lib/active_record/tasks/postgresql_database_tasks.rb +1 -1
  45. data/lib/active_record.rb +1 -1
  46. data/lib/rails/generators/active_record/multi_db/multi_db_generator.rb +16 -0
  47. data/lib/rails/generators/active_record/multi_db/templates/multi_db.rb.tt +44 -0
  48. metadata +14 -12
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.0.rc3
4
+ version: 7.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2022-02-11 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.0.rc3
19
+ version: 7.0.2.1
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.0.rc3
26
+ version: 7.0.2.1
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.0.rc3
33
+ version: 7.0.2.1
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.0.rc3
40
+ version: 7.0.2.1
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.
@@ -427,15 +427,17 @@ files:
427
427
  - lib/rails/generators/active_record/model/templates/abstract_base_class.rb.tt
428
428
  - lib/rails/generators/active_record/model/templates/model.rb.tt
429
429
  - lib/rails/generators/active_record/model/templates/module.rb.tt
430
+ - lib/rails/generators/active_record/multi_db/multi_db_generator.rb
431
+ - lib/rails/generators/active_record/multi_db/templates/multi_db.rb.tt
430
432
  homepage: https://rubyonrails.org
431
433
  licenses:
432
434
  - MIT
433
435
  metadata:
434
436
  bug_tracker_uri: https://github.com/rails/rails/issues
435
- changelog_uri: https://github.com/rails/rails/blob/v7.0.0.rc3/activerecord/CHANGELOG.md
436
- documentation_uri: https://api.rubyonrails.org/v7.0.0.rc3/
437
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.2.1/activerecord/CHANGELOG.md
438
+ documentation_uri: https://api.rubyonrails.org/v7.0.2.1/
437
439
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
438
- source_code_uri: https://github.com/rails/rails/tree/v7.0.0.rc3/activerecord
440
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.2.1/activerecord
439
441
  rubygems_mfa_required: 'true'
440
442
  post_install_message:
441
443
  rdoc_options:
@@ -450,11 +452,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
450
452
  version: 2.7.0
451
453
  required_rubygems_version: !ruby/object:Gem::Requirement
452
454
  requirements:
453
- - - ">"
455
+ - - ">="
454
456
  - !ruby/object:Gem::Version
455
- version: 1.3.1
457
+ version: '0'
456
458
  requirements: []
457
- rubygems_version: 3.2.15
459
+ rubygems_version: 3.2.22
458
460
  signing_key:
459
461
  specification_version: 4
460
462
  summary: Object-relational mapper framework (part of Rails).