migration_tools 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/migration_tools/migration_extension.rb +4 -7
- 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: 874e2249fe8f46c0c45e27240057567452d8dca2
|
4
|
+
data.tar.gz: a604848f9316ce60956f0d41e9c48eab791486e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91531cdbb15179510cead5a2eb125935e01cec75fcbad7817a33a90fd93e46798c21f29913e6cc3f1267e533d38650d8e40c414a9a4e0af6373389cd557ded5
|
7
|
+
data.tar.gz: b0ccf6c64b597751a1261ab0f95033fd290e62eea564f58ed0a52cc0b73ee68aa1f17959d0ce82a538a2874eedcf2fc093e511b4f336c3ffd35eef2263d6070a
|
@@ -11,21 +11,18 @@ module MigrationTools
|
|
11
11
|
self.migration_group = arg.to_s
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def migrate(direction)
|
15
15
|
if MigrationTools.forced? && migration_group.blank?
|
16
16
|
raise "Cowardly refusing to run migration without a group. Read https://github.com/zendesk/migration_tools/blob/master/README.md"
|
17
17
|
end
|
18
|
-
|
18
|
+
super
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
ActiveRecord::Migration.
|
24
|
-
extend MigrationTools::MigrationExtension
|
25
|
-
class << self
|
26
|
-
alias_method_chain :migrate, :forced_groups
|
27
|
-
end
|
23
|
+
ActiveRecord::Migration.singleton_class.send(:prepend, MigrationTools::MigrationExtension)
|
28
24
|
|
25
|
+
ActiveRecord::Migration.class_eval do
|
29
26
|
def migration_group
|
30
27
|
self.class.migration_group
|
31
28
|
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.3.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: 2016-01-12 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: '5.1'
|
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: '5.1'
|
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.5.0
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Encourage migrations that do not require downtime
|