actual_db_schema 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +3 -3
- data/actual_db_schema.gemspec +2 -2
- data/lib/actual_db_schema/migration_context.rb +6 -1
- data/lib/actual_db_schema/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f315a9519f1dce13b43a53c781bf5755ab85ad9ebf38e87aa3c6e1d63060ed
|
4
|
+
data.tar.gz: 0ef1c4c6e2fd50622f961a7d65ca846694f97e474fd6026bdea3c2d257f9da24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbdf2a0da21f4e63c522363fbf3608094d67d4d5ae59ce198f58c66992c9c4577bff405df660202ae6d1b0443ad3b42b971116984c3a6700b66b038214b3ffd7
|
7
|
+
data.tar.gz: 1f5c57b02e07fafab98210a1c9a93c31e8de5d2d7bb8eafa9a3bfd5b2734b86f4a2edba51ef2bfc3e04af2755aa8d6a5141ed6dac724f5196956e6c9dea4b82a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/actual_db_schema.gemspec
CHANGED
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.require_paths = ["lib"]
|
36
36
|
|
37
37
|
# Uncomment to register a new dependency of your gem
|
38
|
-
spec.add_runtime_dependency "activerecord"
|
39
|
-
spec.add_runtime_dependency "activesupport"
|
38
|
+
spec.add_runtime_dependency "activerecord"
|
39
|
+
spec.add_runtime_dependency "activesupport"
|
40
40
|
spec.add_runtime_dependency "csv"
|
41
41
|
|
42
42
|
spec.add_development_dependency "appraisal"
|
@@ -20,7 +20,12 @@ module ActualDbSchema
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def configs
|
23
|
-
|
23
|
+
# Rails < 6.0 has a Hash in configurations
|
24
|
+
if ActiveRecord::Base.configurations.is_a?(Hash)
|
25
|
+
[ActiveRecord::Base.configurations[ActiveRecord::Tasks::DatabaseTasks.env]]
|
26
|
+
else
|
27
|
+
ActiveRecord::Base.configurations.configs_for(env_name: ActiveRecord::Tasks::DatabaseTasks.env)
|
28
|
+
end
|
24
29
|
end
|
25
30
|
|
26
31
|
def context
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actual_db_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Kaleshka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
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:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
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:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: csv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|