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