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

Saturday, February 05 2011
3486 Alternative to validates_uniqueness_of using db constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 6:49 AM
  • Jordan Brough
    Jordan Brough commented at 6:46 AM

    I'm attaching updated patches rebased on top of latest master and 2-3-stable.

    Fwiw, we've been using this in production at animoto.com with Rails 2.3 for over a...

Friday, May 14 2010
3486 Alternative to validates_uniqueness_of using db constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 8:53 PM

    Updated patches rebased onto latest master & 2-3-stable.

    Lawrence - your complaint is about detecting unique constraint violations, which is something that's al...

Tuesday, February 09 2010
3486 Alternative to validates_uniqueness_of using db constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 9:25 PM

    Jeremy - attached updated patch rebased against latest master. Still interested in the patch? Any chance of getting it into Rails 3 betas?

    Ran the tests against...

Saturday, January 16 2010
3486 Alternative to validates_uniqueness_of using db constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 4:00 AM

    Oops, had a small typo in one of the test assertion messages. updates attached.

  • Jordan Brough
    Jordan Brough commented at 3:51 AM

    Attaching updated patches rebased against latest master + 2-3-stable. Re-ran activerecord tests successfully on mysql (5.0.41, 5.1.40), sqlite (3.6.11) & postgr...

Tuesday, December 22 2009
3486 Alternative to validates_uniqueness_of using db constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 4:12 PM

    Sure thing, attached. 2-3-stable patch now has pre-req patches rolled into it.

Thursday, November 12 2009
2419 [Patch] Raise specific exceptions for violated database constraints was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 10:37 PM

    Also, is there a chance of applying the commits from ticket to to 2-3-stable? (talking about 4d614ec0429ce40c4784162c45ed06e125c0d7de, 605acee71391729ae82ba9012...

  • Jordan Brough
    Jordan Brough commented at 10:35 PM

    For anyone interested I've built on this to create a patch for Rails to handle db-level unique constraints gracefully, which has several advantages in many case...

2503 validates_uniqueness_of is horribly inefficient in mysql was updated in Ruby on Rails
  • Jordan Brough
    Jordan Brough commented at 10:33 PM

    I think this is worth fixing either way, but for anyone interested here's a ticket I've added for a way to sidestep the issue -- #3486 (update rails to handle d...