Multiple choice technology web technology

Which of the following is a rails file for changing the database configurations?

  1. database.xml

  2. database.rb

  3. database.yml

  4. db_config.xml

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Rails uses YAML format for configuration files, and database settings are stored in config/database.yml. This file contains connection details for different environments (development, test, production). The .yml extension is standard for YAML files, not .xml or .rb.