database_consistency 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: cf718fbfde9b47e8d76e4e77ff2fc8a70ace19a9761eed13c2576b421fab406b
4
- data.tar.gz: e212220bdb69019c813686230787ab4cda15a455e997ce37b6b9288067ce36f1
3
+ metadata.gz: 9ae2cb1a76d89dbac104f5d4d387a05836a9f981b7054ccd2bb5471c1bf2c882
4
+ data.tar.gz: 808873b1f9a282b55a05598a1ce370523fe8a5a72b548403d32ddfb34aef450a
5
5
  SHA512:
6
- metadata.gz: bd5ae1304d58ab4b8ffffbc2408fde5721f6e1026743c49c08ef93566fa5524293d9fb9f181a2a8129dfff7a1883477dcda5fc0264b411cd9d91990d590ae544
7
- data.tar.gz: 2f5af1682db86a9df202227d8c9ff760930c3ef245d1a1f5a9a4d138f30412d32ccee5589c5ce5d9ba1a1a19a79a6944bbae2ed50679297c055026a0ed14faf5
6
+ metadata.gz: b492cba390027b08c54c41d12bf6016719b974686641c72a87646444d32b4bbc5a54005da096223834aaaaf64a0683946d5ee46dbebe244ed746458b477ac5d8
7
+ data.tar.gz: 0cb489b28fd0b7760396fa09916d0647c4033245c7184a9f7f7d5683dc39a38f0d01aa01fadb241e3b4fa86db1c62055dfd20f3474239f9e454833d67fa797f0
@@ -12,10 +12,11 @@ module DatabaseConsistency
12
12
  # We skip check when:
13
13
  # - column hasn't null constraint
14
14
  # - column has default value
15
+ # - column has default function
15
16
  # - column is a primary key
16
17
  # - column is a timestamp
17
18
  def preconditions
18
- !column.null && column.default.nil? && !primary_field? && !timestamp_field?
19
+ !column.null && column.default.nil? && !primary_field? && !timestamp_field? && !column.default_function
19
20
  end
20
21
 
21
22
  # Table of possible statuses
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatabaseConsistency
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_consistency
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
  - Evgeniy Demin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -34,16 +34,44 @@ dependencies:
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.16'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.16'
47
+ - !ruby/object:Gem::Dependency
48
+ name: mysql2
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.5'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.5'
61
+ - !ruby/object:Gem::Dependency
62
+ name: pg
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.2'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.2'
47
75
  - !ruby/object:Gem::Dependency
48
76
  name: rake
49
77
  requirement: !ruby/object:Gem::Requirement