Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Tarmo Tänav's latest activity

Wednesday, August 26 2009
2389 STI changes behavior depending on environment was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 3:04 PM

    This is a very old and somewhat known issue [1] due to the development environment not explicitly loading all classes (unlike the production environment) and th...

Sunday, July 26 2009
2954 test_postgresql fails on brand new Edge Rails: RI_ConstraintTrigger related e... was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 2:01 PM

    Hi,

    A while ago I used to use the deferred constraints approach too but obviously we can't rely on it because it only works if the constraints are actually set ...

Wednesday, June 10 2009
2786 Counter cache is updated on belongs_to reassignment when not needed was updated in Ruby on Rails
  • Tarmo Tänav
    • Assigned user set to Michael Koziarski
    by Tarmo Tänav at 3:11 PM
  • Tarmo Tänav
    Tarmo Tänav commented at 2:33 PM

    Currently if you reassign a belongs_to association to the same record that it was before and that association has a counter cache the cache is decremented and t...

  • Tarmo Tänav
    Tarmo Tänav created the ticket at 2:30 PM
Monday, June 08 2009
2622 PostgreSQL Adapter Breaks on Complex 'Order By' Clauses was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 9:57 AM

    Good point, indeed it is quite a bit less expensive for the common case to just split if there are no characters that the complex case is looking for. I'll make...

Monday, June 01 2009
2622 PostgreSQL Adapter Breaks on Complex 'Order By' Clauses was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 2:43 AM

    The patch looks generally good, I've got a couple of suggestions though. Firstly use "token << char" not "token += char" as the former modifies an existing stri...

Monday, May 11 2009
1500 Named scopes should implement #many? so they'll use COUNT(*) was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 9:29 AM

    Wouldn't it be better to only fetch the primary keys for two records instead of counting them all just to find out if there is more than one?

Saturday, April 25 2009
2515 db:schema:dump with PostgreSQLAdapter dumps multiple column indexes in undefi... was updated in Ruby on Rails
  • Tarmo Tänav
    Tarmo Tänav commented at 6:48 PM

    Though I do not have postgresql 7.4 to test and don't really know how well rails currently works with it, I do believe that generate_series is not by default pr...

  • Tarmo Tänav
    Tarmo Tänav commented at 3:15 PM

    Could you explain the problem in more detail? The way I see it, it looks like indkey defines the column order, and column_names is sorted exactly the same way a...