Method: ActiveRecord::ConnectionAdapters::SchemaReflection#dump_to

Defined in:
activerecord/lib/active_record/connection_adapters/schema_cache.rb

#dump_to(pool, filename) ⇒ Object



91
92
93
94
95
96
97
# File 'activerecord/lib/active_record/connection_adapters/schema_cache.rb', line 91

def dump_to(pool, filename)
  fresh_cache = empty_cache
  fresh_cache.add_all(pool)
  fresh_cache.dump_to(filename)

  @cache = fresh_cache
end