Tim Connor
Not a member
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 created the ticket at 8:55 PMGiven 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 created the ticket at 11:57 PMWhen 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 commented at 5:38 AMAttached is a second patch which fixes a further issue with remove_index and updates the unit tests.
-
Tim Connor commented at 4:14 AMThis 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 created the ticket at 4:08 AMIf 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...