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.

Jordan Brough's latest activity

Thursday, November 12 2009
3486 Alternative to validates_uniqueness_of using db constraints was created in Ruby on Rails
  • Jordan Brough
    Jordan Brough created the ticket at 10:14 PM

    This is a patch to enable ActiveRecord to identify db-generated errors for unique constraint violations. For example, it makes the following work without declar...

Wednesday, November 11 2009
3389 [Tests] Deprecation in all tests, StatementInvalid in ActiveRecord was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 6:24 AM

    I got the MySQL error above until I upgraded from MySQL 5.0.45 to 5.1.40. Which MySQL version are you on?

Monday, September 28 2009
3276 [PATCH] ActiveResource#save! exception is invalid (causes an NoMethodError ex... was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 3:52 PM

    @gaius: save! for ActiveResource exists only on master so the patch is for master. As a separate issue I'd be willing to backport the whole ActiveResource::Base...

3275 [PATCH] Optimization for dropping multiple columns in MySQL was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 3:52 PM

    What would new tests look like? Verify that execute was only called once for multiple drops? Wouldn't that be getting a little bit too concerned with the 'how' ...

Sunday, September 27 2009
3276 [PATCH] ActiveResource#save! exception is invalid (causes an NoMethodError ex... was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 5:31 AM

    (hoping it's ok to tag this as bugmash myself)

  • Jordan Brough
    • Tag changed from activeresource, patch to activeresource, bugmash, patch
    by Jordan Brough at 5:26 AM
  • Jordan Brough
    • Tag changed from activeresource, patch to activeresource, patch
    by Jordan Brough at 5:04 AM

    Forgot the patch.

  • Jordan Brough
    Jordan Brough created the ticket at 5:00 AM

    The exception raised here:

    def save!
      save || raise(ResourceInvalid.new(self))
    end
    

    (on master in activeresource/lib/active_resource/base.rb - see http://git...

3275 [PATCH] Optimization for dropping multiple columns in MySQL was created in Ruby on Rails
  • Jordan Brough
    Jordan Brough created the ticket at 1:46 AM

    Dropping multiple columns on a large table in MySQL (at least version 5.0) can be slow proportional to the number of columns being dropped. That can be a drag o...

Thursday, April 09 2009
2316 410 Gone as ResourceGone for ActiveResource was updated in Ruby on Rails