Skip to content

Commit

Permalink
Remove not used db seed (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiveer committed Aug 18, 2024
1 parent 8533d78 commit c90418c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
# 初始化用户
super_user = User.find_by(name: 'admin001', email: '[email protected]')
unless super_user
User.create(login_identity: SecureRandom.uuid,
name: 'admin001',
password: 'admin001',
roles: 'super_user',
email: '[email protected]')
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?
Expand Down

0 comments on commit c90418c

Please sign in to comment.