rails_async_migrations 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rails_async_migrations/mutators/base.rb +2 -5
- data/lib/rails_async_migrations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3950f1a87294b305b11d6b4f72fe89140ac5ca037b0d63634b93883efac2226
|
4
|
+
data.tar.gz: bc23163e9ec84a71472a786388372461d3437316c56286d03c8f231462fd9770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f197bd6a02bca2bc548c5a68a8ac29145461d97dc88217e399aa1183c329a476d4658f610460106261ef2e3b89f792f25de1a084d259079c64288443edc626d5
|
7
|
+
data.tar.gz: fc3b0b75a80a3840c8bd9f2b488f5cebd4cc30ed2d011d65a6e88571cc4ce05949f4e97b5f2058519bbc0879d6169669d1f362150a9c5b55f32e0bb2026ce184
|
data/Gemfile.lock
CHANGED
@@ -4,14 +4,11 @@ module RailsAsyncMigrations
|
|
4
4
|
# in some context we have to guess it from the file and current connection
|
5
5
|
# for instance when we use class methods such as `turn_async`
|
6
6
|
def migration_class
|
7
|
-
|
8
|
-
fetch_from_file
|
9
|
-
else
|
10
|
-
instance.class
|
11
|
-
end
|
7
|
+
fetch_from_file || instance.class
|
12
8
|
end
|
13
9
|
|
14
10
|
def fetch_from_file
|
11
|
+
return unless current_migration
|
15
12
|
require current_migration.filename
|
16
13
|
current_migration.name.constantize
|
17
14
|
end
|