Edgars Beigarts
Not a member
Edgars Beigarts's latest activity
Monday, September 08 2008
994
ActiveRecord calculations does not work with :distinct
was updated
in Ruby on Rails
-
-
Edgars Beigarts created the ticket at 1:58 PM>> User.count(:distinct => false) SQL (0.465150) SELECT count(*) AS count_all FROM users => 12 >> User.count(:distinct => true) SQL (0.000000) OCIError...
Wednesday, August 27 2008
911
field_changed? should check also string columns for changes from nil to ''
was created
in Ruby on Rails
-
Edgars Beigarts created the ticket at 12:42 AMAn empty string is treated as a null value in Oracle. So why not add " || column.type == :string" ?
def field_changed?(attr, old, value) if column = column_...