# If you don't want to store sensitive information, like your database password, # in your source code, provide the password or a full connection URL as an # environment variable when you boot the app. For example: # # DATABASE_PASSWORD="Some-password1%" # # or # # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" # # If the connection URL is provided in the special DATABASE_URL environment # variable, Rails will automatically merge its configuration values on top of # the values provided in this file. Alternatively, you can specify a connection # URL environment variable explicitly: # # production: # url: <%= ENV["MY_APP_DATABASE_URL"] %> # # You can specify password environment variable in a similar way: # # production: # password: <%= ENV["DATABASE_PASSWORD"] %> # # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database # for a full overview on how database connection configuration can be specified. default: &default adapter: mysql2 encoding: utf8mb4 collation: utf8mb4_0900_as_ci pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> username: fixinme password: Some-password1% socket: /run/mysqld/mysqld.sock production: <<: *default database: fixinme # Unless you're planning on developing the application, you can skip # configurations for development and test databases altogether. #development: # <<: *default # database: fixinme_dev # Warning: Test databases will be erased and re-generated from your development # database when you run "rake". Do not set these dbs to the same as development # or production. # # Multiple test databases can be provided. When more than one test db is # present, every test task (test, test:models, test:system, etc.) automatically # runs against all of them. # # In additional test databases only "adapter", "database", "host", "port" and # "socket" settings are used. All settings default to values specified in # "test" - which is required in all test setups. #test: # <<: *default # database: fixinme_test # #test_sqlite3: # adapter: sqlite3 # database: db/fixinme_test.sqlite3 # #test_postgresql: # adapter: postgresql