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: d0c682bf10734c6ac2a0b7ad8d3516e099d6c25a
4
- data.tar.gz: 8554e6190e8084490a7af21994fd4f2f1d3bbbcf
3
+ metadata.gz: 973c17c1d4e2b556771a49e67eb41f64d22655dc
4
+ data.tar.gz: ffb23352741be8e007ea9b96d0aaae484480cd56
5
5
  SHA512:
6
- metadata.gz: fae50668e7151864e7bc009ba422b12835e92c5ddfd0f6bb9a62f602f3739c411b39b4338d45e8bec798cbc5057f90d750e6811d97308074f103a64ffe755ba4
7
- data.tar.gz: af722f194ec9ab5756b29bca89a4067de4c4b177f049acd6c34bb8273ad110512129a97e03400b0d8c28772f9f0007d42e28f9aac3b121ed0f9df2f281f2bffb
6
+ metadata.gz: 841c9c76ff327639b2f233030d74cde99b7e2f8e0d40fd0b87bb4bf8f74b8fcc2127dc59ba53524adf6d7659e30b23bbd29bd54125aec89bd31c5f2892a6e8d6
7
+ data.tar.gz: fdcb4f80ac5f442add67e4914ab793af53e85a679f27b7c5a8ca6cf1f7c623b7fa40e660257ada0a3b364949d34e3bb85d558f426193cf1ec46c84c38f3534c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zero_downtime_migrations (0.0.5)
4
+ zero_downtime_migrations (0.0.6)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -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::Loader)
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.5"
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.5
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-20 00:00:00.000000000 Z
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