From 0844c54bd09d838269bfb0478af74ad19733360a Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 13 Jun 2024 03:04:30 +0400 Subject: [PATCH] DATABASE_NAME --- .env.sample | 4 +++- config/database.yml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index 73642ea..c5f6758 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,3 @@ -RAILS_PORT=7500 \ No newline at end of file +RAILS_PORT=7500 +DATABASE_HOST=localhost +DATABASE_NAME=easy-going-rails \ No newline at end of file diff --git a/config/database.yml b/config/database.yml index 093217d..9e34cc7 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,8 +1,8 @@ --- default: &default - host: <%= ENV.fetch("DB_HOST") { 'localhost' } %> - database: &db_name easy-going-rails + host: <%= ENV.fetch("DATABASE_HOST") { 'localhost' } %> + database: &db_name <%= ENV.fetch("DATABASE_NAME") { 'easy-going-rails' } %> user: *db_name password: *db_name adapter: postgresql