mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
feat: new background work process
This removes all previous dependencies on RabbitMQ and the need to run separate cron and requeueing processes.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateWorkerRoles < ActiveRecord::Migration[6.1]
|
||||
|
||||
def change
|
||||
create_table :worker_roles do |t|
|
||||
t.string :role
|
||||
t.string :worker
|
||||
t.datetime :acquired_at
|
||||
t.index :role, unique: true
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user