search for: schema_cache

Displaying 1 result from an estimated 1 matches for "schema_cache".

2013 Feb 18
6
How to clear ActiveRecord query cache on associations with dynamic table
...es.* FROM v2_order_lines *INNER JOIN v1_orders ON v1_orders.id*=v2_order_lines.order_id WHERE v2_orders.customer_id=1 Notice the INNER JOIN, it still uses the v1_ prefixes!! I looks like if there has been some association caching. How can I get rid of it? I tried: ActiveRecord::Base.connection.schema_cache.clear! but without the right effect. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+...