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.

Tristan Dunn's latest activity

Sunday, August 09 2009
2719 has_many :through should work if the join model uses has_one relationship was updated in Ruby on Rails
  • Tristan Dunn
    Tristan Dunn commented at 8:33 PM

    +1 Verified

    Cleanly applies (apart from whitespace warning) and passes on master and 2-3-stable.

2949 Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit... was updated in Ruby on Rails
  • Tristan Dunn
    • Tag changed from 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql to 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql, verified
    by Tristan Dunn at 8:21 PM

    The issue is with sanitize_sql_hash_for_conditions overwriting the table name if one is present in the conditions. Solution was to simply reset it at the beginn...

Saturday, August 08 2009
1908 Schema dumper ignores custom id column even when :id => false was updated in Ruby on Rails
  • Tristan Dunn
    Tristan Dunn commented at 11:48 PM

    Seems to be some confusion on which branch I should be working on so I made one on master and 2-3-stable.

  • Tristan Dunn
    Tristan Dunn commented at 11:35 PM

    New patch to simply not default the primary key to ID in the schema dumper. If you don't define it then the connection should find it.

Saturday, February 07 2009
1908 Schema dumper ignores custom id column even when :id => false was created in Ruby on Rails
  • Tristan Dunn
    Tristan Dunn created the ticket at 11:42 PM

    Given the following migration:

    
    create_table(:table, :id => false) do |t|
      t.string :id, :null => false, :limit => 40
    end
    

    the schema dumper would generat...