method

dump_schema_cache

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 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.