lib/rocket_job/rocket_job.rb in rocketjob-4.0.0 vs lib/rocket_job/rocket_job.rb in rocketjob-4.1.0
- old
+ new
@@ -1,5 +1,12 @@
module RocketJob
+ def self.create_indexes
+ # Ensure models with indexes are loaded into memory first
+ Job.create_indexes
+ Server.create_indexes
+ DirmonEntry.create_indexes
+ end
+
# Whether the current process is running inside a Rocket Job server process.
def self.server?
@server
end