method

dump_to

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: SchemaCache
dump_to(filename) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 172
      def dump_to(filename)
        clear!
        tables_to_cache.each { |table| add(table) }
        open(filename) { |f|
          if filename.include?(".dump")
            f.write(Marshal.dump(self))
          else
            f.write(YAML.dump(self))
          end
        }
      end
Register or log in to add new notes.