instance method
schema_dump_path
Ruby on Rails 7.2.3
Since v7.0.10Signature
schema_dump_path(db_config, format = ActiveRecord.schema_format)
No documentation comment.
Parameters
-
db_configreq -
formatopt = ActiveRecord.schema_format
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 447
def schema_dump_path(db_config, format = ActiveRecord.schema_format)
return ENV["SCHEMA"] if ENV["SCHEMA"]
filename = db_config.schema_dump(format)
return unless filename
if File.dirname(filename) == ActiveRecord::Tasks::DatabaseTasks.db_dir
filename
else
File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, filename)
end
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 447
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks