method
update_database_yml
rails latest stable - Class:
Rails::Generators::DevcontainerGenerator
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