brady8/thumbs_up — comment on commit 2ad8cef8e2221f429a43ea8d37eee78d2dfba433
File: lib/acts_as_voteable.rb line 28
By kevinelliott:

For Postgres, using "int4(#{Vote.table_name}.vote)" would fix the UNSIGNED bug since UNSIGNED is not a valid type in Postgres. This allows for values up to 2 billion. If the value is always 1, 0 or -1 then integer() is a valid call.

I'm now looking at ActiveRecord to see if there's something that can be used that is not database specific to abstract these casts.