database_consistency 1.7.25 → 1.7.26

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: 6a60adb5b04de89499434019dd7ae4d0281799fc457122de1d01ad825d9d74e1
4
- data.tar.gz: 3cfe216adacba3de2df73bf8cc353ce56bbdae93c0b4ada74b860cd89422f173
3
+ metadata.gz: f10f22151f5ddbb4c219ebb0efbb2af17e6d73bbd0153ad861cb748c6d202829
4
+ data.tar.gz: be376924b1db3b17b61eeb8cd0154f855c4b9b1a458cfacaae70c7019c1707ab
5
5
  SHA512:
6
- metadata.gz: d522414bc1680d596f9207c95615265befd75535e145c43bd7056c823a160a3620e4a9f5ce28b04b0d00878349e8a21d5b58fda669b6510bd714a355791aa8c6
7
- data.tar.gz: be1853d66bf896d3ab6eae46684e8533177d90394de2d7360e2e613a3b61e050578fdd0b48a1b357c26171b4c14fedf54f74f064ba0854bdb17026730e2b58a9
6
+ metadata.gz: 7dde326fd325136cd5972b9d89886cd6f3a39cddda39091ba6ece85f2261f50a9c71d2efdd0ed20c634c974d0604e21fb7b8f28130444d8f237bcdc6ea046a8e
7
+ data.tar.gz: 69e0304fb9b2aad06cd3efc4a152dd5b51f616f29e3dab9c8252e717393b724de84a8a051ca50700a417954ba96fcead5b2fa121bdd50dfada88c91d0ee96d27
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '1.7.25'
4
+ VERSION = '1.7.26'
5
5
  end
@@ -6,10 +6,9 @@ module DatabaseConsistency
6
6
  module Helpers
7
7
  module Migration # :nodoc:
8
8
  def migration_path(name)
9
- migration_paths = ActiveRecord::Migrator.migrations_paths
10
- schema_migration = ActiveRecord::Base.connection.schema_migration
9
+ migration_context = ActiveRecord::Base.connection.migration_context
11
10
 
12
- last = ActiveRecord::MigrationContext.new(migration_paths, schema_migration).migrations.last
11
+ last = migration_context.migrations.last
13
12
  version = ActiveRecord::Migration.next_migration_number(last&.version.to_i + 1)
14
13
 
15
14
  "db/migrate/#{version}_#{name.underscore}.rb"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_consistency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.25
4
+ version: 1.7.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Demin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-24 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord