The following line works fine in MySQL, but in Postgresql I get a Rails error stating, "can't convert Fixnum to String".
viewable.update_attribute(:total_views, viewable.total_views.to_i + 1)
total_views is an integer field
Shouldn't Rails know to treat total_views as an integer even if I am using Postgresql?