Complete the code to create the production database in Rails.
rails db:[1] RAILS_ENV=productionUse create to make the production database before running migrations.
Complete the code to apply migrations to the production database.
rails db:[1] RAILS_ENV=productionThe migrate command applies all pending migrations to update the database schema.
Fix the error in the command to seed the production database.
rails db:[1] RAILS_ENV=productionUse seed to load initial data into the production database after migrations.
Fill both blanks to configure the production database adapter and username in config/database.yml.
production: adapter: [1] username: [2]
Production often uses postgresql as adapter and admin as username for database access.
Fill all three blanks to set the production database host, password, and database name in config/database.yml.
production: host: [1] password: [2] database: [3]
The host is usually 127.0.0.1 for local production servers, the password is a secure string, and the database name follows the app name with _production.