activerecord-turntable 2.1.0.rc1 → 2.1.0.rc2

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: a6223a14dc7586f9425a7450535d1d90075e7337
4
- data.tar.gz: 6c02e240d36b6abe0c8f56a0174e2054ced1d4c1
3
+ metadata.gz: 935a1e755a078dd662d8520e5c04411dd64bb83a
4
+ data.tar.gz: 4b5a4fb370185bcc0d269e5bb72ee68c3fc1f0b4
5
5
  SHA512:
6
- metadata.gz: 858730a5f8d9359177599e38652f91813016d5c5901d125ef544419b3f1e4f18f1c1b59630b09e8401acb1867a531f7aa14d4f034461511e665e3ad69107afc2
7
- data.tar.gz: 4fbea3f83b7415584c322c81234dfdf6e13316f4643b7ee7dd197701aa638046dbefb9a9f54cc6548a751f14defc26b3930230b205904515f2320e61c68344fb
6
+ metadata.gz: 544100938738fa9d2776cdd7b3ec70c062911436ee7765229042e1caf804a5200dd288c130d520c69b248ad846da7471c37fff6e09b598088ecf416585efd23b
7
+ data.tar.gz: a98d3571a1517b43e08601b0158c7a588d4dd1643f47c2f03622f25ecd158249805368d7d313ec9511835054327e9cfd02bee5d9535217b73879cc9c466c3864
@@ -100,7 +100,7 @@ module ActiveRecord::Turntable::Migration
100
100
  included do
101
101
  klass = self
102
102
  (class << klass; self; end).instance_eval {
103
- [:up, :down, :run, :open].each do |method_name|
103
+ [:up, :down, :run].each do |method_name|
104
104
  original_method_alias = "_original_#{method_name}"
105
105
  unless klass.respond_to?(original_method_alias)
106
106
  alias_method original_method_alias, method_name
@@ -137,15 +137,6 @@ module ActiveRecord::Turntable::Migration
137
137
  _original_run(*args)
138
138
  end
139
139
  end
140
-
141
- def open_with_turntable(migrations_paths)
142
- open_without_turntable(migrations_paths)
143
-
144
- ActiveRecord::Tasks::DatabaseTasks.each_current_turntable_cluster_connected do |name, configuration|
145
- puts "[turntable] *** Migrating database: #{configuration['database']}(Shard: #{name})"
146
- _original_open(*args)
147
- end
148
- end
149
140
  end
150
141
  end
151
142
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Turntable
3
- VERSION = "2.1.0.rc1"
3
+ VERSION = "2.1.0.rc2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-turntable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.rc1
4
+ version: 2.1.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gussan
@@ -466,7 +466,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
466
466
  version: 1.3.1
467
467
  requirements: []
468
468
  rubyforge_project: activerecord-turntable
469
- rubygems_version: 2.4.5
469
+ rubygems_version: 2.4.4
470
470
  signing_key:
471
471
  specification_version: 4
472
472
  summary: ActiveRecord sharding extension
@@ -513,4 +513,3 @@ test_files:
513
513
  - spec/spec_helper.rb
514
514
  - spec/support/matchers/be_saved_to.rb
515
515
  - spec/support/turntable_helper.rb
516
- has_rdoc: