mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -40,13 +40,11 @@ unless ["profile", "development"].include? Rails.env
|
||||
exit
|
||||
end
|
||||
|
||||
|
||||
user = User.find(user_id)
|
||||
last_topics = Topic.order('id desc').limit(10).pluck(:id)
|
||||
|
||||
puts "Simulating activity for user id #{user.id}: #{user.name}"
|
||||
|
||||
|
||||
while true
|
||||
puts "Creating a random topic"
|
||||
category = Category.where(read_restricted: false).order('random()').first
|
||||
|
Reference in New Issue
Block a user