From f74f34ce82811578d8edb44db1d78a5459a45efb Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 23 Jan 2025 00:40:42 +0800 Subject: [PATCH] chore: update admin user creation for seeds - Remove environment condition for admin user creation This change simplifies the admin user creation in the seeds file by removing the conditional check for the development environment. As a result, the admin user will be created regardless of the environment, which may need to be addressed to avoid unintended consequences in production setups. --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index df00ae5..b559a1e 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -8,7 +8,7 @@ # MovieGenre.find_or_create_by!(name: genre_name) # end # AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password') if Rails.env.development? -AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password') if Rails.env.development? +AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password') WeatherArt.delete_all City.delete_all