From c90418cf08021cd01b7eee38233828b5b1ee43a8 Mon Sep 17 00:00:00 2001 From: Hiveer Date: Sun, 18 Aug 2024 13:34:06 +0800 Subject: [PATCH] Remove not used db seed (#489) --- db/seeds.rb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index a8eb263f3..3433b6799 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,21 +1,3 @@ -# 初始化用户 -super_user = User.find_by(name: 'admin001', email: 'admin001@opencsg.com') -unless super_user - User.create(login_identity: SecureRandom.uuid, - name: 'admin001', - password: 'admin001', - roles: 'super_user', - email: 'admin001@opencsg.com') -end - -# 初始化默认的四个 Space Tag -Tag::DEFAULT_TAGS.each do |htag| - tag = Tag.find_by(name: htag[:name]) - next if tag - puts "creating tag: #{htag[:name]}" - Tag.create(name: htag[:name], color: htag[:color]) -end - # 初始化 System Config if SystemConfig.first.blank? if Rails.env.development?