rails-schema-validations 0.6 → 0.7

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.
@@ -2,6 +2,8 @@
2
2
  module ActiveRecord::Validations::ClassMethods
3
3
  def validations_from_schema
4
4
  self.columns.map do |col|
5
+ next if col.primary
6
+
5
7
  case col.type
6
8
  when :integer
7
9
  # assuming unsigned!
@@ -73,4 +73,6 @@ context Model do
73
73
 
74
74
  asserts_error_on :indexed_id, nil
75
75
  asserts_error_on :unique_id, nil
76
+
77
+ asserts_no_error_on :id, nil
76
78
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-schema-validations
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 6
9
- version: "0.6"
8
+ - 7
9
+ version: "0.7"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Greg Weber
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-28 00:00:00 -07:00
17
+ date: 2010-09-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20