Skip to content

Commit

Permalink
Drop unused delayed jobs table
Browse files Browse the repository at this point in the history
  • Loading branch information
dreikanter committed Jul 28, 2024
1 parent ab009ef commit 56f52b4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
22 changes: 22 additions & 0 deletions db/migrate/20240728141124_drop_delayed_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class DropDelayedJobs < ActiveRecord::Migration[7.1]
def up
drop_table :delayed_jobs, if_exists: true
end

def down
create_table :delayed_jobs, if_not_exists: true, force: true do |table|
table.integer :priority, default: 0, null: false
table.integer :attempts, default: 0, null: false
table.text :handler, null: false
table.text :last_error
table.datetime :run_at
table.datetime :locked_at
table.datetime :failed_at
table.string :locked_by
table.string :queue
table.timestamps null: true
end

add_index :delayed_jobs, [:priority, :run_at], name: "delayed_jobs_priority"
end
end
17 changes: 1 addition & 16 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56f52b4

Please sign in to comment.