switchman 1.12.15 → 1.12.16

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: 131e490eb45f936d65fe5f6e560ccd272f0dd462ee7ae517dbab1b167855a20c
4
- data.tar.gz: 7f74765e6c98eb1d54d05d2bed699ccc7479595b850b35c27720316f828b8e48
3
+ metadata.gz: 0b494eb251b67d98437463c5dac44cc3b179365103290a3858ca93925833666c
4
+ data.tar.gz: 5d93b3b4142e542721960093e73057ccc8ad1105b67d05e1f7ecd2f4c817c7a6
5
5
  SHA512:
6
- metadata.gz: 4b9b3680ed4aaa458a8c94b1a3f479699f852528c907d554923fdcdbcfbfa476ba5e7caa6a3cb8d39b243e92f50821031403d0af93194d2947112a34a80c197a
7
- data.tar.gz: fe07f31620503511bb963255dbadb012c696b42f47ee39e3fc9bf69d5744348bde292f41f9bc32d1df21e0e8fc235d8030f9d3f45fd86ea00831763e4a6ca16e
6
+ metadata.gz: e447c0c2d8271cdd50dc69ebcc2da5df36089d32bfcd26ad220c61584f1d43679961ecbb3d017f8521742cae8d6780eee291e8e602b7a423ef935e795db6bf75
7
+ data.tar.gz: '09051aac58f8bfe85c8f2ae9f645a999daf0f4ad25d24aa3ef095bdf691fba11956423de73b9629b9f39bfe0ebf66c437282e27b69f2907783caaa79b021689e'
@@ -0,0 +1,7 @@
1
+ class AddUniqueNameIndexes < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_index :switchman_shards, [:database_server_id, :name], unique: true
4
+ add_index :switchman_shards, :database_server_id, unique: true, where: "name IS NULL", name: 'index_switchman_shards_unique_primary_shard'
5
+ add_index :switchman_shards, "(true)", unique: true, where: "database_server_id IS NULL AND name IS NULL", name: 'index_switchman_shards_unique_primary_db_and_shard'
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.12.15"
2
+ VERSION = "1.12.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.15
4
+ version: 1.12.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-01-03 00:00:00.000000000 Z
13
+ date: 2019-01-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -193,7 +193,7 @@ files:
193
193
  - db/migrate/20161206323434_add_back_default_string_limits_switchman.rb
194
194
  - db/migrate/20180828183945_add_default_shard_index.rb
195
195
  - db/migrate/20180828192111_add_timestamps_to_shards.rb
196
- - db/shard_1708.sqlite3
196
+ - db/migrate/20190114212900_add_unique_name_indexes.rb
197
197
  - lib/switchman.rb
198
198
  - lib/switchman/action_controller/caching.rb
199
199
  - lib/switchman/active_record/abstract_adapter.rb
@@ -259,8 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  - !ruby/object:Gem::Version
260
260
  version: '0'
261
261
  requirements: []
262
- rubyforge_project:
263
- rubygems_version: 2.7.6
262
+ rubygems_version: 3.0.1
264
263
  signing_key:
265
264
  specification_version: 4
266
265
  summary: Rails 4 sharding magic
File without changes