switchman 1.12.5 → 1.12.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72086d60c6a4a32c29f5f568de0314e481606044f5c163aef64aeeb0f73178ac
|
4
|
+
data.tar.gz: 8465abdcdd7db4783c5b1e2fed0ed3e9a53164353fc5ca85b1422b016fec5827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f407c6f6b0bfecf88f02870631ad6936650eb20a017687d5f8d88f842cbd2cdb0ea63535d50444b2709df352a8db6eae94c5e17b8bba2cdea0e1b383b4ec821
|
7
|
+
data.tar.gz: e7bbdcc13f4c033024b7a9755da6d2b87941b193eec98fc1e28363184ae151db2fd0ed88b9f613ece95575ff1b2f09bf898cc29a528c40efa5459ddb356c831d
|
@@ -5,5 +5,11 @@ class AddTimestampsToShards < ActiveRecord::Migration[4.2]
|
|
5
5
|
Switchman::Shard.update_all(updated_at: now, created_at: now)
|
6
6
|
change_column_null :switchman_shards, :updated_at, false
|
7
7
|
change_column_null :switchman_shards, :created_at, false
|
8
|
+
|
9
|
+
if Switchman::Shard.current.default?
|
10
|
+
Switchman::Shard.connection.schema_cache.clear!
|
11
|
+
Switchman::Shard.reset_column_information
|
12
|
+
Switchman::Shard.columns
|
13
|
+
end
|
8
14
|
end
|
9
15
|
end
|
data/lib/switchman/version.rb
CHANGED