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.

Tim Connor's latest activity

Tuesday, January 04 2011
6249 has_many_association#delete_all fails when using :dependent => :restrict was created in Ruby on Rails
  • Tim Connor
    Tim Connor created the ticket at 8:55 PM

    Given a has_many relationship with :dependent => :restrict and a not null constraint on the foreign key, a call to association.delete_all will fail.

    The problem...

Sunday, September 26 2010
5711 remove_index silently fails when passed a symbol as the index name was created in Ruby on Rails
  • Tim Connor
    Tim Connor created the ticket at 11:57 PM

    When removing an index, if a symbol is used for the index name the removal silently fails.

    remove_index :my_table, :name => 'my_index_name'
    

    works but

    remove_...
Friday, September 17 2010
5645 Rails 3.0.0 add_index fails silently on invalid index names was updated in Ruby on Rails
  • Tim Connor
    Tim Connor commented at 5:38 AM

    Attached is a second patch which fixes a further issue with remove_index and updates the unit tests.

  • Tim Connor
    Tim Connor commented at 4:14 AM

    This issue also applies to index names automatically generated by rails, eg

    add_index :users, [:long_column_name, :other_long_column_name, :third_long_column_n...
  • Tim Connor
    Tim Connor created the ticket at 4:08 AM

    If add_index is called with a name that is too long, the migration appears to be successful but the index is not created.

    The error is very easy to reproduce. C...