instance method setup_initial_database_yaml

Ruby on Rails 6.1.7.10

Since v6.0.6 Last seen in v7.0.10

Available in: v6.0.6 v6.1.7.10 v7.0.10

Signature

setup_initial_database_yaml()

No documentation comment.

Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 151
      def setup_initial_database_yaml
        return {} unless defined?(Rails)

        begin
          Rails.application.config.load_database_yaml
        rescue
          unless ActiveRecord::Base.suppress_multiple_database_warning
            $stderr.puts "Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases. If you'd like to use this feature, please simplify your ERB."
          end

          {}
        end
      end

Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 151 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Tasks::DatabaseTasks

Type at least 2 characters to search.

↑↓ navigate · open · esc close