Only delete tables that are not ignored
Reported by Jeremy Lightsmith | November 29th, 2007 @ 03:51 PM
Didn't have time to create an actual patch, but in
lib/scenario_builder.rb
at line 80, instead of
def delete_tables
ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.delete(@@delete_sql % t) }
end
it should be
def delete_tables
tables.each { |t| ActiveRecord::Base.connection.delete(@@delete_sql % t) }
end
We have some tables that can't be deleted because we're using virtual enumerations, and if they are loaded and reloaded, their id's change, but the old ids are cached at the first time they're loaded.
Cheers,
Jeremy
Comments and changes to this ticket
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป