activerecord 6.0.2.rc1 → 6.0.2.rc2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/active_record/connection_adapters/abstract_adapter.rb +1 -3
- data/lib/active_record/connection_adapters/mysql/schema_statements.rb +1 -1
- data/lib/active_record/connection_adapters/postgresql_adapter.rb +1 -1
- data/lib/active_record/gem_version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c3cee74df3dec7c74aef412bf110e7587269d9078bfc235adca6e752482932
|
4
|
+
data.tar.gz: 8ae337c647d81716d0c1047733ee1ccca27f4e79ab9929e13001f153e67d62e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26ba2bc3171ddbcf81271a01e1d411c5f9611082ea30f8ff0bb790bbcca96fae189179b58e82b1f57b14e04f8d4f7b7ad27c0420184da5e2bbd1781c30cc3956
|
7
|
+
data.tar.gz: 60f5156b187e87d4590e0d7aa0d0d269dcf5b43aca349f6e8b17176de9a4650a9b8e117bdea2f1af50c4f70b1fa6735c0b27c3264df1b1aa056660647ade90fa
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## Rails 6.0.2.
|
1
|
+
## Rails 6.0.2.rc2 (December 09, 2019) ##
|
2
2
|
|
3
3
|
* Share the same connection pool for primary and replica databases in the
|
4
4
|
transactional tests for the same database.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*Edouard Chin*
|
7
7
|
|
8
8
|
* Fix the preloader when one record is fetched using `after_initialize`
|
9
|
-
but not the entire
|
9
|
+
but not the entire collection.
|
10
10
|
|
11
11
|
*Bradley Price*
|
12
12
|
|
@@ -85,9 +85,7 @@ module ActiveRecord
|
|
85
85
|
set_callback :checkin, :after, :enable_lazy_transactions!
|
86
86
|
|
87
87
|
def self.type_cast_config_to_integer(config)
|
88
|
-
if config.
|
89
|
-
config
|
90
|
-
elsif config.is_a?(Integer)
|
88
|
+
if config.is_a?(Integer)
|
91
89
|
config
|
92
90
|
elsif SIMPLE_INT.match?(config)
|
93
91
|
config.to_i
|
@@ -162,7 +162,7 @@ module ActiveRecord
|
|
162
162
|
type_metadata = fetch_type_metadata(field[:Type], field[:Extra])
|
163
163
|
default, default_function = field[:Default], nil
|
164
164
|
|
165
|
-
if type_metadata.type == :datetime &&
|
165
|
+
if type_metadata.type == :datetime && /\ACURRENT_TIMESTAMP(?:\([0-6]?\))?\z/i.match?(default)
|
166
166
|
default, default_function = nil, default
|
167
167
|
elsif type_metadata.extra == "DEFAULT_GENERATED"
|
168
168
|
default = +"(#{default})" unless default.start_with?("(")
|
@@ -617,7 +617,7 @@ module ActiveRecord
|
|
617
617
|
end
|
618
618
|
|
619
619
|
def has_default_function?(default_value, default)
|
620
|
-
!default_value &&
|
620
|
+
!default_value && %r{\w+\(.*\)|\(.*\)::\w+|CURRENT_DATE|CURRENT_TIMESTAMP}.match?(default)
|
621
621
|
end
|
622
622
|
|
623
623
|
def load_additional_types(oids = nil)
|
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: 6.0.2.
|
4
|
+
version: 6.0.2.rc2
|
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: 2019-
|
11
|
+
date: 2019-12-09 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: 6.0.2.
|
19
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
26
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
33
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
40
|
+
version: 6.0.2.rc2
|
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.
|
@@ -390,10 +390,10 @@ licenses:
|
|
390
390
|
- MIT
|
391
391
|
metadata:
|
392
392
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
393
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.2.
|
394
|
-
documentation_uri: https://api.rubyonrails.org/v6.0.2.
|
393
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc2/activerecord/CHANGELOG.md
|
394
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.2.rc2/
|
395
395
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
396
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.
|
396
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc2/activerecord
|
397
397
|
post_install_message:
|
398
398
|
rdoc_options:
|
399
399
|
- "--main"
|