Add heartbeat import (#469)

This commit is contained in:
Jeffrey Wang
2025-08-18 22:51:18 -04:00
committed by GitHub
parent fac7758391
commit 9d8cc0d75d
5 changed files with 192 additions and 2 deletions

View File

@@ -7,7 +7,9 @@ if Rails.env.development?
# Creating test user
test_user = User.find_or_create_by(slack_uid: 'TEST123456') do |user|
user.username = 'testuser'
user.is_admin = true
# Before you had user.is_admin = true, does not work, changed it to that, looks like it works but idk how to use the admin pages so pls check this, i just guess coded this, the cmd to seed the db works without errors
user.set_admin_level(:superadmin)
# Ensure timezone is set to avoid nil timezone issues
user.timezone = 'America/New_York'
end