migration_tools 1.4.0 → 1.5.0
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_tools/tasks.rb +6 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4672873c0980176f5f8481054a9c7ddd3ebb9ad
|
4
|
+
data.tar.gz: 1a548def35f56259a4b8b6ec15460dbcd4ea58a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abcec27cea51bafd32f0d8ed358d02b98a447d1cf0034976f6106deb9ecbe90fa8cdadf9054aac1c3b2f0965d4cf6bd4c515e7d4f0b04b9c4b2c57688643ee71
|
7
|
+
data.tar.gz: 19009d8b5b6e367084d4e443b3c256edd6b9e30ca78484826599f3b8e0ec103fd56860c1ea1322020e5095df67c1422e3d1c902955f313371c887e99368b178c
|
@@ -29,7 +29,12 @@ module MigrationTools
|
|
29
29
|
|
30
30
|
def migrator(target_version = nil)
|
31
31
|
if ActiveRecord::VERSION::MAJOR > 3
|
32
|
-
|
32
|
+
migrations = if defined?(::ActiveRecord::MigrationContext)
|
33
|
+
ActiveRecord::MigrationContext.new(migrations_paths).migrations
|
34
|
+
else
|
35
|
+
ActiveRecord::Migrator.migrations(migrations_paths)
|
36
|
+
end
|
37
|
+
ActiveRecord::Migrator.new(:up, migrations, target_version)
|
33
38
|
else
|
34
39
|
ActiveRecord::Migrator.new(:up, migrations_paths, target_version)
|
35
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morten Primdahl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 3.2.6
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '6.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 3.2.6
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '6.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.6.14
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Encourage migrations that do not require downtime
|