method

dump_schema_cache

Importance_1
v6.0.0 - Show latest stable - 0 notes - Class: DatabaseTasks
dump_schema_cache(conn, filename) public

Dumps the schema cache in YAML format for the connection into the file

Examples:

ActiveRecord::Tasks::DatabaseTasks.dump_schema_cache(ActiveRecord::Base.connection, "tmp/schema_dump.yaml")
Show source
Register or log in to add new notes.