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.

Only delete tables that are not ignored

#164

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

Reported by Jeremy Lightsmith · November 29th, 2007 @ 03:51 PM

State: new
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. mark
    mark

    Glad to see this post, I like the content of this forum.

    outdoor tiling in The Sunshine Coast


    June 30th, 2021 @ 05:50 AM

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.