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 +4 -4
- data/lib/active_record/turntable/migration.rb +1 -10
- data/lib/active_record/turntable/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 935a1e755a078dd662d8520e5c04411dd64bb83a
|
4
|
+
data.tar.gz: 4b5a4fb370185bcc0d269e5bb72ee68c3fc1f0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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.
|
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:
|