Skip to content

Commit

Permalink
Drop delayed_jobs (#3644)
Browse files Browse the repository at this point in the history
Since the gem is now completely removed
  • Loading branch information
segiddins authored Apr 2, 2023
1 parent 11bd0da commit d61c1d6
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 300 deletions.
21 changes: 21 additions & 0 deletions db/migrate/20230324190734_drop_delayed_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class DropDelayedJobs < ActiveRecord::Migration[7.0]
def up
drop_table :delayed_jobs
end

def down
create_table "delayed_jobs", id: :serial, force: :cascade do |t|
t.integer "priority", default: 0
t.integer "attempts", default: 0
t.text "handler"
t.text "last_error"
t.datetime "run_at", precision: nil
t.datetime "locked_at", precision: nil
t.datetime "failed_at", precision: nil
t.string "locked_by"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.string "queue"
end
end
end
16 changes: 1 addition & 15 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_03_06_210044) do
ActiveRecord::Schema[7.0].define(version: 2023_03_24_190734) do
# These are extensions that must be enabled in order to support this database
enable_extension "hstore"
enable_extension "pgcrypto"
Expand Down Expand Up @@ -70,20 +70,6 @@
t.index ["auditable_type", "auditable_id"], name: "index_audits_on_auditable"
end

create_table "delayed_jobs", id: :serial, force: :cascade do |t|
t.integer "priority", default: 0
t.integer "attempts", default: 0
t.text "handler"
t.text "last_error"
t.datetime "run_at", precision: nil
t.datetime "locked_at", precision: nil
t.datetime "failed_at", precision: nil
t.string "locked_by"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.string "queue"
end

create_table "deletions", id: :serial, force: :cascade do |t|
t.integer "user_id"
t.string "rubygem"
Expand Down
16 changes: 0 additions & 16 deletions doc/erd.dot
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,6 @@ m_Audit [label = <<table border="0" align="center" cellspacing="0.5" cellpadding
<tr><td align="left" width="130" port="comment">comment <font face="Arial Italic" color="grey60">string</font></td></tr>
</table>
>];
"m_Delayed::Backend::ActiveRecord::Job" [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">Delayed::Backend::ActiveRecord::Job</font></td></tr>
</table>
|
<table border="0" align="left" cellspacing="2" cellpadding="0" width="134">
<tr><td align="left" width="130" port="attempts">attempts <font face="Arial Italic" color="grey60">integer</font></td></tr>
<tr><td align="left" width="130" port="failed_at">failed_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
<tr><td align="left" width="130" port="handler">handler <font face="Arial Italic" color="grey60">text</font></td></tr>
<tr><td align="left" width="130" port="last_error">last_error <font face="Arial Italic" color="grey60">text</font></td></tr>
<tr><td align="left" width="130" port="locked_at">locked_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
<tr><td align="left" width="130" port="locked_by">locked_by <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="priority">priority <font face="Arial Italic" color="grey60">integer</font></td></tr>
<tr><td align="left" width="130" port="queue">queue <font face="Arial Italic" color="grey60">string</font></td></tr>
<tr><td align="left" width="130" port="run_at">run_at <font face="Arial Italic" color="grey60">datetime</font></td></tr>
</table>
>];
m_Deletion [label = <<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="134">
<tr><td align="center" valign="bottom" width="130"><font face="Arial Bold" point-size="11">Deletion</font></td></tr>
</table>
Expand Down
Loading

0 comments on commit d61c1d6

Please sign in to comment.