sequel-schema-sharding 0.6.0 → 0.6.1

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: fa175ac4af8322937a21fda859150649e9872091
4
- data.tar.gz: dc40633aa45cc01bd5747610db19dffc2cd80463
3
+ metadata.gz: 316d15abfc27b676f2d97669aa76e20013432b8e
4
+ data.tar.gz: 746fea07e8d6e767f39593b989ebec6e329f2439
5
5
  SHA512:
6
- metadata.gz: 767a816353d1ecc7ed2052c2e8885f5a19e79aac06d47e77ca92043a532c409862350b50a40310cc292c97a4757d0a9fffaf91a85f1d7eea34f183d6c49a6a58
7
- data.tar.gz: e4404c3e64c7883212fbbcecf49ef585a6c6544d16264e9c1633c9eedd7069691a6895b42152c26ca78bb3ee988b194557b0ffdec400b78ce257069260c64f0e
6
+ metadata.gz: e351848ec31e3428c8a2a59e1088bf11874e0135c9ceb057e103417299089d11c2252bb0d1599eb412be6d8c0729ac2dd74180ecc9cf2a339072cc50a46075d1
7
+ data.tar.gz: 116a5e32059ec0cddb15ccaf16b08b296aa1de65b737d269db06b6338e12c17b14b2d96d430ae95b7017db53e6e49fa4524eed963593189e288a543040e3841e
@@ -90,6 +90,12 @@ module Sequel
90
90
  end
91
91
  end
92
92
 
93
+ def migrate_all(options)
94
+ config.table_names.each do |table_name|
95
+ migrate(table_name, options)
96
+ end
97
+ end
98
+
93
99
  def rollback(table_name, migration_options = {})
94
100
  SchemaIterator.new.iterate_on(table_name) do |conn, schema_name, table_name|
95
101
  Sequel::SchemaSharding.logger.warn "Rolling back #{table_name} in schema #{schema_name}.."
@@ -101,6 +107,12 @@ module Sequel
101
107
  end
102
108
  end
103
109
 
110
+ def rollback_all(options)
111
+ config.table_names.each do |table_name|
112
+ rollback(table_name, options)
113
+ end
114
+ end
115
+
104
116
  private
105
117
 
106
118
  def migrator_for(connection, schema, table_name, options = {})
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module SchemaSharding
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-schema-sharding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Henry