When the ActiveRecord::Base.schema_format is set to :sql, a structure dump is used. Modern Rails also has a structure load. Some nuances of the implementation support DB_STRUCTURE environment variable with a fallback to structure.sql. I even noticed how this task even asks the DatabaseTask module for the #db_dir too. Interesting.
When the
ActiveRecord::Base.schema_format
is set to:sql
, a structure dump is used. Modern Rails also has a structure load. Some nuances of the implementation supportDB_STRUCTURE
environment variable with a fallback tostructure.sql
. I even noticed how this task even asks the DatabaseTask module for the #db_dir too. Interesting.