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: 247981e1e8e1dd7818c7ef0bde4b39d03282fe87a416f1b2e85cd49da49993aa
4
- data.tar.gz: 522199fd3e52230a0c628618632cba5ea41858c7c2ee50345b0ecdecbe3983a2
3
+ metadata.gz: c55830c0250d217e5cb9c15620567526ee87ab6c3b086a8293fab20aee2f3492
4
+ data.tar.gz: fed49216ca58796cdfb3e1e007df7697e1c3a0b3aed9053f01d6c6e3fa1c44db
5
5
  SHA512:
6
- metadata.gz: 8dab1abc43654f7768e9176daf5dda90c2b43bf5bf5c3e80dc96409c6457183ed08185ea2f91a5d598e4a2528796b96afd4cd2d9f02ae408c40e4e8755ab812b
7
- data.tar.gz: 498b179029d01cef1a3cb89c5a20b599303e1ee4c388067e6542e2caa8fef66232a1063af0e9f52cf20a8241fd2a6b6b69621f0fbf8b916cb0d07e5c2de791bd
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 ||= YAML.load(ERB.new(File.read @yaml_config).result)
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
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordMigrations
2
- VERSION = '6.1.1.2'
2
+ VERSION = '6.1.1.4'
3
3
  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::Base.schema_format = configurations.schema_format
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.2
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: 2021-07-22 00:00:00.000000000 Z
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.2.15
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: []