Created
November 12, 2016 08:18
-
-
Save Unkas82/685461659e0cd598e46cbd39b4ee3ce1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HardWorker | |
| include Sidekiq::Worker | |
| include Sidetiq::Schedulable | |
| recurrence do | |
| hourly(1) | |
| end | |
| def perform | |
| uu = User.new | |
| uu.name = "evilbot#{DateTime.now.hour}" | |
| uu.email = "test@example.com" | |
| uu.role_id = 1 | |
| uu.password = '123456' | |
| uu.save | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment