method

build_configuration_sentence

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: DatabaseConfigurations
build_configuration_sentence() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/database_configurations.rb, line 204
      def build_configuration_sentence
        configs = configs_for(include_replicas: true)

        configs.group_by(&:env_name).map do |env, config|
          names = config.map(&:name)
          if names.size > 1
            "#{env}: #{names.join(", ")}"
          else
            env
          end
        end.join("\n")
      end
Register or log in to add new notes.