strong_migrations 0.6.1 → 0.6.2

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: 1582962294cb36c9572db9c0d3a2e5f69cba1877a436d2398451805ec1ebf47d
4
- data.tar.gz: e6b923b652f75aa8d83183b963e98a39c6706b6287406858e782554a9374921e
3
+ metadata.gz: e758beb05db7ba2729b599570f430312bfe8c133a83e7bf5cc9403e4c6d768a9
4
+ data.tar.gz: b24ed790565dc4c19e9d20c6a4a89e3bc518ea8402c9b2e685d6fcf051b5ef26
5
5
  SHA512:
6
- metadata.gz: 44d7cd56ccec5832637a577c885ec6975f8824d177e7ddd03e02a7721afce687f554782714cddd02e4fcee7c2af2a74dbd95b3a65f27ef39a0a7c5cd3d484bdd
7
- data.tar.gz: b5139304f500b21c0da482ee19b31408215b2e975f5be0036f2c24084bd704a885aaf8d3c10e2bbfe652bb6b31b8c3f5efad94cba2909f98312f8057f9bc8e0f
6
+ metadata.gz: efa52a6f8061cf4fa5047b74b704849a2534a2c76f616f981b6f966269eeab295e012e1287c3912a459f1282055f4447edecd1145a8d912d6833db2912ed31e3
7
+ data.tar.gz: aa22a6034264f82d77ebdc2584fdbf96743a9b62fc49f3f2ec9e76319c5f3c611267f62ac3da9f083a00cfc02e7fc5a027bf88281707c736b9f6874ac9fc5201
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.2 (2020-02-03)
2
+
3
+ - Fixed PostgreSQL version check
4
+
1
5
  ## 0.6.1 (2020-01-28)
2
6
 
3
7
  - Fixed timeouts for PostgreSQL
@@ -266,7 +266,8 @@ Then add the NOT NULL constraint."
266
266
  def postgresql_version
267
267
  @postgresql_version ||= begin
268
268
  target_version(StrongMigrations.target_postgresql_version) do
269
- connection.select_all("SHOW server_version").first["server_version"]
269
+ # only works with major versions
270
+ connection.select_all("SHOW server_version_num").first["server_version_num"].to_i / 10000
270
271
  end
271
272
  end
272
273
  end
@@ -1,3 +1,3 @@
1
1
  module StrongMigrations
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-01-28 00:00:00.000000000 Z
13
+ date: 2020-02-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord