From 4de0c58b834664c3220deb58202d1ccd14053fef Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 17 Jun 2013 16:02:50 -0400 Subject: [PATCH] Change the email address of the admin user created by rake db:seed:welcome so we don't get all the emails. Everyone needs to change the email address of their admin user. --- lib/tasks/welcome.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/welcome.rake b/lib/tasks/welcome.rake index ccb0c9e453f..5f66d08da5e 100644 --- a/lib/tasks/welcome.rake +++ b/lib/tasks/welcome.rake @@ -23,7 +23,7 @@ task "db:seed:welcome" => :environment do ActiveRecord::Base.transaction do begin # Not using admin:create cause it will become uneccessary complicated between handling passed args and user input - admin = User.create!(email: "team@discourse.org", username: "forumadmin", password: "password") + admin = User.create!(email: "change_me@example.com", username: "forumadmin", password: "password") admin.grant_admin! admin.change_trust_level!(TrustLevel.levels.max_by{|k, v| v}[0]) admin.email_tokens.update_all(confirmed: true)