This method is deprecated or moved on the latest stable version.
The last existing version (v6.0.0) is shown here.
database_from_path()
private
Returns name of the database.
# File activerecord/lib/active_record/connection_adapters/connection_specification.rb, line 96
def database_from_path
if @adapter == "sqlite3"
# 'sqlite3:/foo' is absolute, because that makes sense. The
# corresponding relative version, 'sqlite3:foo', is handled
# elsewhere, as an "opaque".
uri.path
else
# Only SQLite uses a filename as the "database" name; for
# anything else, a leading slash would be silly.
uri.path.sub(%{^/}, "")
end
end