active_record_migrations 6.1.1.2 → 6.1.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55830c0250d217e5cb9c15620567526ee87ab6c3b086a8293fab20aee2f3492
|
4
|
+
data.tar.gz: fed49216ca58796cdfb3e1e007df7697e1c3a0b3aed9053f01d6c6e3fa1c44db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dadf88865ddadc0b92f090e226f4fefacfa9121902dcae2f9182e4137f792d36f075312bfe3c54a42af3d64ad1a20a1d856857cbb9359f6420c20514d9737af9
|
7
|
+
data.tar.gz: f89ba019fefaf1094b6b65aca8fd86f9a442cc618dee6acd289f87cbf52643c491a5d744b9fddd6ad1e85c95acfef180d5ccbad5661d9bbffbf1b7041683f128
|
@@ -20,7 +20,14 @@ module ActiveRecordMigrations
|
|
20
20
|
alias configure instance_eval
|
21
21
|
|
22
22
|
def database_configuration
|
23
|
-
@database_configuration ||=
|
23
|
+
@database_configuration ||=
|
24
|
+
begin
|
25
|
+
content = ERB.new(File.read @yaml_config).result
|
26
|
+
|
27
|
+
YAML.load(content, aliases: true)
|
28
|
+
rescue ArgumentError
|
29
|
+
YAML.load(content)
|
30
|
+
end
|
24
31
|
end
|
25
32
|
end
|
26
33
|
end
|
@@ -23,7 +23,11 @@ module ActiveRecordMigrations
|
|
23
23
|
load 'active_record/railties/databases.rake'
|
24
24
|
load 'active_record_migrations/tasks/new_migration.rake'
|
25
25
|
|
26
|
-
ActiveRecord
|
26
|
+
if ActiveRecord.respond_to? :schema_format=
|
27
|
+
ActiveRecord.schema_format = configurations.schema_format
|
28
|
+
else
|
29
|
+
ActiveRecord::Base.schema_format = configurations.schema_format
|
30
|
+
end
|
27
31
|
DatabaseTasks.env = configurations.environment
|
28
32
|
Rails.env = DatabaseTasks.env
|
29
33
|
DatabaseTasks.seed_loader = configurations.seed_loader
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.1.
|
4
|
+
version: 6.1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,7 +88,7 @@ homepage: http://github.com/rosenfeld/active_record_migrations
|
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|
91
|
-
post_install_message:
|
91
|
+
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|
94
94
|
- lib
|
@@ -103,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
107
|
-
signing_key:
|
106
|
+
rubygems_version: 3.4.4
|
107
|
+
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Use AR migrations from outside of a Rails project
|
110
110
|
test_files: []
|