instance method
schema_dump
Ruby on Rails 8.1.2
Since v7.0.10Signature
schema_dump(format = schema_format)
Determines whether to dump the schema/structure files and the filename that should be used.
If configuration_hash[:schema_dump] is set to false or nil the schema will not be dumped.
If the config option is set that will be used. Otherwise Rails will generate the filename from the database config name.
Parameters
-
formatopt = schema_format
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 172
def schema_dump(format = schema_format)
if configuration_hash.key?(:schema_dump)
if config = configuration_hash[:schema_dump]
config
end
elsif primary?
schema_file_type(format)
else
"#{name}_#{schema_file_type(format)}"
end
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 172
· View on GitHub
· Improve this page
· Find usages on GitHub