Skip to content

Commit

Permalink
Actually don't validate the timestamps ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Qureshi authored and Omar Qureshi committed Feb 15, 2012
1 parent b5cb953 commit 2a70f6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/auto_validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ def auto_validate

def load_attributes
str = "and attname != '#{defined_primary_key}'" if defined_primary_key
timestamps = "and (attname != 'created_at' or attname != 'updated_at'
or attname != 'created_on' or attname != 'updated_on')"
timestamps = "and attname != 'created_at'
and attname != 'updated_at'
and attname != 'created_on'
and attname != 'updated_on'"
connection.execute <<EOS
select pg_attribute.*, typcategory
from pg_attribute, pg_class, pg_type
Expand Down
2 changes: 1 addition & 1 deletion lib/auto_validate/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AutoValidate
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit 2a70f6c

Please sign in to comment.