class ActiveRecord::DatabaseConfigurations

def env_with_configs(env = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def env_with_configs: (?ActiveSupport::EnvironmentInquirer env) -> untyped

This signature was generated using 1 sample from 1 application.

def env_with_configs(env = nil)
  if env
    configurations.select { |db_config| db_config.env_name == env }
  else
    configurations
  end
end