From a6cea6b80d8949c52da3b6055121d54a6499554e Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 23 Jan 2025 00:40:19 +0800 Subject: [PATCH] chore: setup admin user - Create admin user with email 'admin@example.com' and password 'password' for development environment This change allows for easier development and testing by providing a default admin user. --- db/seeds.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/seeds.rb b/db/seeds.rb index 4b1312f..df00ae5 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,6 +7,7 @@ # ["Action", "Comedy", "Drama", "Horror"].each do |genre_name| # 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? WeatherArt.delete_all