Skip to content

Commit

Permalink
added community user seed for system user
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Dec 16, 2024
1 parent 4eea61a commit 94df355
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

# Prioritize the following models (in this order) such that models depending on them get created after
priority = [PostType, CloseReason, License, TagSet, PostHistoryType, User, Filter]
priority = [PostType, CloseReason, License, TagSet, PostHistoryType, User, CommunityUser, Filter]
sorted = files.zip(types).to_h.sort do |a, b|
(priority.index(a.second) || 999) <=> (priority.index(b.second) || 999)
end.to_h
Expand Down
8 changes: 8 additions & 0 deletions db/seeds/community_users.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- deleted: false
is_admin: true
is_moderator: true
is_suspended: false
post_count: 0
reputation: 1
trust_level: 4
user_id: -1

0 comments on commit 94df355

Please sign in to comment.