Carlos Júnior (xjunior)
Developer · Not a member
Carlos Júnior (xjunior)'s latest activity
Thursday, October 30 2008
1285
Reduce queries in uniqueness validation
was updated
in Ruby on Rails
-
Carlos Júnior (xjunior) commented at 11:09 AMI really don't think so. If the attribute was correctly saved (it was unique before), and it has not changed, then, doesn't matter the external state (that if w...
Wednesday, October 29 2008
1285
Reduce queries in uniqueness validation
was updated
in Ruby on Rails
-
-
Carlos Júnior (xjunior) commented at 3:53 PMHow do I test if a query is being executed or not?
Thanks.
1254
[PATCH] Array support to update_counters
was updated
in Ruby on Rails
Tuesday, October 28 2008
1254
[PATCH] Array support to update_counters
was updated
in Ruby on Rails
-
- Title changed from Adding Array support to update_counters to [PATCH] Array support to update_counters
1285
[PATCH] Reduce queries in uniqueness validation
was created
in Ruby on Rails
-
Carlos Júnior (xjunior) created the ticket at 2:11 PMWhen you're doing a uniqueness validation, you don't have to do it if the value haven't changed. Even if it's nil, because the validation should be done by the ...
Thursday, October 23 2008
1254
Adding Array support to update_counters
was created
in Ruby on Rails
-
Carlos Júnior (xjunior) created the ticket at 12:46 AMMany times I found my self needing to increment a lot of counters at the same time, but it's not possible yet.
Now we can do:
Model.increment_counter :points, [...