rails-schema-validations 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +3 -2
  2. data/lib/rails-schema-validations.rb +1 -1
  3. metadata +4 -4
data/README CHANGED
@@ -25,5 +25,6 @@ To exclude a column use the `:except => ['excluded']` option.
25
25
 
26
26
  Warning
27
27
  =======
28
- Tested on MySQL. Rails 2.3 and Rails 3
29
- Assume it doesn't work on your database unless you modify the test suite to run against your db and all tests pass
28
+ * Tested on MySQL. Rails 2.3 and Rails 3
29
+ * Assumes signed integers for less_than constraint
30
+ * Assume it doesn't work on your database unless you modify the test suite to run against your db and all tests pass
@@ -9,7 +9,7 @@ module ActiveRecord::Validations::ClassMethods
9
9
 
10
10
  case col.type
11
11
  when :integer
12
- # assuming unsigned!
12
+ # / 2 assumes signed!
13
13
  validates_numericality_of col.name, :only_integer => true, :allow_nil => col.null,
14
14
  :less_than => (2 ** (8 * col.limit)) / 2
15
15
  when :float
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-schema-validations
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 3
10
- version: 0.9.3
9
+ - 4
10
+ version: 0.9.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Weber
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-28 00:00:00 -08:00
18
+ date: 2010-12-09 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21