declare_schema 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/declare_schema/version.rb +1 -1
- data/lib/declare_schema.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31dd49e36793094f670d30211da95c08739c4f0c65d11ef1824ab0cacff6508a
|
4
|
+
data.tar.gz: 0f74f11ad7d6a6b6631dbf695cadcae1d59554ba956306ddda0cd26eee1316c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73cec99029586a2e9250848013a86548a14fb64eb46d2f2aecc6c5ed4d1679de8d264e06fde1db9640293ee7e2705d13dfd770c62aecb1f7ab089ca8c805d213
|
7
|
+
data.tar.gz: bc61c8db52f1890398dfd663c0e7f0d76441fc1d1713f89d095a2cb40bed654ae14a2dfd40a007013cc762f8ae397368e1a89d210e5b9e853953db595ec9ec1d
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [2.3.0] - 2024-10-31
|
8
|
+
### Updated
|
9
|
+
- Updated the `current_adapter` method to use `connection_db_config` for Rails 6.1 and higher, while retaining `connection_config` for earlier versions
|
10
|
+
|
7
11
|
## [2.2.1] - 2024-10-11
|
8
12
|
### Changed
|
9
13
|
- Re-release after yanking 2.2.0
|
data/Gemfile.lock
CHANGED
data/lib/declare_schema.rb
CHANGED
@@ -162,7 +162,7 @@ module DeclareSchema
|
|
162
162
|
end
|
163
163
|
|
164
164
|
def current_adapter(model_class = ActiveRecord::Base)
|
165
|
-
if Rails::VERSION::MAJOR >=
|
165
|
+
if Rails::VERSION::MAJOR >= 6.1
|
166
166
|
model_class.connection_db_config.adapter
|
167
167
|
else
|
168
168
|
model_class.connection_config[:adapter]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: declare_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca Development adapted from hobo_fields by Tom Locke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|