zero_downtime_migrations 0.0.5 → 0.0.6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 973c17c1d4e2b556771a49e67eb41f64d22655dc
|
4
|
+
data.tar.gz: ffb23352741be8e007ea9b96d0aaae484480cd56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 841c9c76ff327639b2f233030d74cde99b7e2f8e0d40fd0b87bb4bf8f74b8fcc2127dc59ba53524adf6d7659e30b23bbd29bd54125aec89bd31c5f2892a6e8d6
|
7
|
+
data.tar.gz: fdcb4f80ac5f442add67e4914ab793af53e85a679f27b7c5a8ca6cf1f7c623b7fa40e660257ada0a3b364949d34e3bb85d558f426193cf1ec46c84c38f3534c2
|
data/Gemfile.lock
CHANGED
@@ -6,6 +6,12 @@ module ZeroDowntimeMigrations
|
|
6
6
|
mod.singleton_class.prepend(DSL)
|
7
7
|
end
|
8
8
|
|
9
|
+
def initialize(*)
|
10
|
+
ActiveRecord::Base.send(:prepend, Data)
|
11
|
+
ActiveRecord::Relation.send(:prepend, Relation)
|
12
|
+
super
|
13
|
+
end
|
14
|
+
|
9
15
|
def ddl_disabled?
|
10
16
|
!!disable_ddl_transaction
|
11
17
|
end
|
@@ -3,7 +3,6 @@ require "active_record"
|
|
3
3
|
require_relative "zero_downtime_migrations/data"
|
4
4
|
require_relative "zero_downtime_migrations/dsl"
|
5
5
|
require_relative "zero_downtime_migrations/error"
|
6
|
-
require_relative "zero_downtime_migrations/loader"
|
7
6
|
require_relative "zero_downtime_migrations/migration"
|
8
7
|
require_relative "zero_downtime_migrations/relation"
|
9
8
|
require_relative "zero_downtime_migrations/validation"
|
@@ -13,7 +12,8 @@ require_relative "zero_downtime_migrations/validation/ddl_migration"
|
|
13
12
|
require_relative "zero_downtime_migrations/validation/find_each"
|
14
13
|
require_relative "zero_downtime_migrations/validation/mixed_migration"
|
15
14
|
|
16
|
-
ActiveRecord::Migration.send(:prepend, ZeroDowntimeMigrations::
|
15
|
+
ActiveRecord::Migration.send(:prepend, ZeroDowntimeMigrations::Migration)
|
16
|
+
ActiveRecord::Schema.send(:prepend, ZeroDowntimeMigrations::Migration)
|
17
17
|
|
18
18
|
module ZeroDowntimeMigrations
|
19
19
|
GEMSPEC = name.underscore.concat(".gemspec")
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.required_ruby_version = ">= 2.0.0"
|
12
12
|
s.summary = "Zero downtime migrations with ActiveRecord and PostgreSQL"
|
13
13
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
14
|
-
s.version = "0.0.
|
14
|
+
s.version = "0.0.6"
|
15
15
|
|
16
16
|
s.add_dependency "activerecord"
|
17
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zero_downtime_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LendingHome
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -47,7 +47,6 @@ files:
|
|
47
47
|
- lib/zero_downtime_migrations/data.rb
|
48
48
|
- lib/zero_downtime_migrations/dsl.rb
|
49
49
|
- lib/zero_downtime_migrations/error.rb
|
50
|
-
- lib/zero_downtime_migrations/loader.rb
|
51
50
|
- lib/zero_downtime_migrations/migration.rb
|
52
51
|
- lib/zero_downtime_migrations/relation.rb
|
53
52
|
- lib/zero_downtime_migrations/validation.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
module ZeroDowntimeMigrations
|
2
|
-
module Loader
|
3
|
-
def initialize(*)
|
4
|
-
ActiveRecord::Base.send(:prepend, Data)
|
5
|
-
ActiveRecord::Migration.send(:prepend, Migration)
|
6
|
-
ActiveRecord::Relation.send(:prepend, Relation)
|
7
|
-
ActiveRecord::Schema.send(:prepend, Migration)
|
8
|
-
super
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|