migration-export 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/migration_export/tasks/db.rake +3 -3
- data/lib/migration_export/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8615a02909cc4f43496493c9ef447b2d57d080da
|
4
|
+
data.tar.gz: c335277d3a86ca172da0a596a2fbfa67305b89cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfed4cdea46ae1e9539378558f6657e315a45fb9b249aedad4b4520e67132da14df15296261261a038dcacc322faff86e8a385f51d8dc1510e4f45c593b90425
|
7
|
+
data.tar.gz: b118889e86fb7be0145c639c4f03069b18505ae5a61521d884a098f7aeae0cd2cb1339e79b3ebd6c2068fd4f16c7b4702b09f714d3b6206e69cc1c41e41cf055
|
@@ -39,15 +39,15 @@ namespace :db do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def migrations
|
42
|
-
if
|
42
|
+
if (active_record_version <=> '5.2.0') >= 0
|
43
43
|
ActiveRecord::MigrationContext.new("#{Rails.root}/db/migrate").migrations
|
44
44
|
else
|
45
45
|
ActiveRecord::Migrator.migrations("#{Rails.root}/db/migrate")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
50
|
-
Gem.loaded_specs['activerecord'].version
|
49
|
+
def active_record_version
|
50
|
+
Gem.loaded_specs['activerecord'].version.to_s
|
51
51
|
end
|
52
52
|
|
53
53
|
def create_file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration-export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Nascimento
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-01-
|
12
|
+
date: 2019-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|