method

update_database_yml

rails latest stable - Class: Rails::Generators::DevcontainerGenerator

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

update_database_yml()
public

No documentation available.

# File railties/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb, line 46
      def update_database_yml
        # Only postgresql has devcontainer specific configuration, so only update database.yml if we are using postgres
        return unless options[:database] == "postgresql"

        template("config/databases/#{options[:database]}.yml", "config/database.yml")
      end