declare_schema 2.2.0.colin.1 → 2.3.0.pre.is.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 +8 -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: fd39ae6d5b6fa9f016f8b966ac52e01861bb3924d186d3f7b08b0c6f1c3742b6
|
4
|
+
data.tar.gz: aa19567cf7aeba32af69d652af48c9a1f4da173284fe7d5d86cad065ab1439b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f10c787700a928549c57230ce74f73f005a70885bc186a543ab0f6e840a0599c4ba398ade4b6f97158cae332806cfd86dda4e02910245fc60eafc28f9d23411
|
7
|
+
data.tar.gz: f2f9e8ece660106c7fed41e394296958978f42f2cdd3859da40b73c478decda44b64982a87ff6330f6f6ae8ad77cda6c825445e6b44568eb78d334ccce6078b2
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ 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] - Unreleased
|
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
|
+
|
11
|
+
## [2.2.1] - 2024-10-11
|
12
|
+
### Changed
|
13
|
+
- Re-release after yanking 2.2.0
|
14
|
+
|
7
15
|
## [2.2.0] - 2024-10-09
|
8
16
|
### Changed
|
9
17
|
- Drop/add index if its settings change (`unique:`, `length:`, etc.)
|
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.pre.is.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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|