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.

pupeno@pupeno.com's latest activity

Friday, October 08 2010
5768 A set of includes in active records break when I add an order was updated in Ruby on Rails
  • pupeno@pupeno.com
    pupeno@pupeno.com commented at 6:09 AM

    This is the relevant context:

    class User < ActiveRecord::Base
      has_and_belongs_to_many :clocks
      has_many :runs, :through => :clocks
      has_many :user_runs
      #...
  • pupeno@pupeno.com
    pupeno@pupeno.com created the ticket at 6:05 AM

    I'll give you more context information bellow, but first, let me show you some active records call.

    First a simple "let's get a clock":

        @user.clocks.find(@...
Tuesday, June 29 2010
4809 [PATCH] Table name not escaped on dropping index was updated in Ruby on Rails
  • pupeno@pupeno.com
    pupeno@pupeno.com commented at 3:57 PM

    Matt,

    Yes, I can do that. Wouldn't that remove authorship from Paul Barry, and if so, is it acceptable for me to do it?

Wednesday, June 16 2010
4809 [PATCH] Table name not escaped on dropping index was updated in Ruby on Rails
  • pupeno@pupeno.com
    pupeno@pupeno.com commented at 8:50 AM

    Oh, right, I only worked in Rails 3 for this patch.

Tuesday, June 15 2010
4809 [PATCH] Table name not escaped on dropping index was updated in Ruby on Rails
  • pupeno@pupeno.com
    pupeno@pupeno.com commented at 10:39 PM

    New patch that applies cleanly (I actually couldn't find the conflict) and puts the add_index inside the no exceptions zone.

Monday, June 14 2010
4809 [PATCH] Table name not escaped on dropping index was updated in Ruby on Rails
  • pupeno@pupeno.com
    pupeno@pupeno.com commented at 1:48 PM

    Étienne, oh, got it regarding assert_nothing_raised. I'll fix it.

    But the issue was the name of the table, not the name of the index. What wasn't being escaped ...

  • pupeno@pupeno.com
    • Tag changed from database, index, mysql, patch, remove_index to database, index, migration, mysql, patch, remove_index
    by pupeno@pupeno.com at 12:04 PM

    Étienne,

    Paul Barry added the assert_nothing_raised block. I'll look into the conflict.

    Regarding MigrationTest, I should add the test here: activerecord/test/c...

Saturday, June 12 2010
4809 [PATCH] Table name not escaped on dropping index was updated in Ruby on Rails