sliding_partition 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9916b72faca0f3568f5053076bff0f27629fc8c
4
- data.tar.gz: dbe0c196c037d676770a56a9da7703f799f7db2a
3
+ metadata.gz: afeb2d19c666c9005ac61fdc7c5b6bac4dadd2b3
4
+ data.tar.gz: b92790534206c631a04515c6c5c1904109c10358
5
5
  SHA512:
6
- metadata.gz: 208f6b59ee67f39c3068327b2356834a845a66ec29c7ec5690b78d6a1bf10d635dfb3d7f0ebf097ea41084684d9938478db1739abf9be125cad932407d96a5e5
7
- data.tar.gz: f61305d57f5dfc532d0c7b5b11d66c3c2c1284bc1f50c5b172513251f4a0e89c09ef59272d463a138d5c5ec8d9765ee14ddd5adbecf0f253a8cca002f94e281d
6
+ metadata.gz: a35810a929fda90dcf5b254420c75ba69d86d7c0b8110de9e0ce0fc94fa749459ce7b8b2e3a751f0329dcbecda1d50fe1006043418a84031e3a5b6a7fce9aaaf
7
+ data.tar.gz: 78b203e379894ea72e8b4d620886e18d552aedb39cbbaadc6f8a156df3f5d45062d28c4e49fce2e42c3898647c00db55c942ed69de69b476cc81af1433b11dd4
@@ -12,7 +12,7 @@ module SlidingPartition
12
12
  end
13
13
 
14
14
  def self.version
15
- "0.6.0"
15
+ "0.6.1"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -91,7 +91,7 @@ module SlidingPartition
91
91
  protected
92
92
 
93
93
  def create_partition_table(partition)
94
- connection.execute(create_table_sql(partition))
94
+ connection.execute(create_table_sql(partition)) unless partition_table_exists?(partition)
95
95
  end
96
96
 
97
97
  def drop_partition_table(table)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sliding_partition
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 Sadauskas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord