Skip to content

Commit

Permalink
Merge pull request #363 from sparc-request/master
Browse files Browse the repository at this point in the history
wth & jm - Change datatype DelayedJob Handler from Text to LongText
  • Loading branch information
amcates committed Jul 7, 2017
2 parents 70be795 + 71ca57e commit d8bbdb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20170707153553_change_columns_on_delayed_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class ChangeColumnsOnDelayedJobs < ActiveRecord::Migration[5.0]
def change
change_column :delayed_jobs, :handler, :text, limit: 4294967295
change_column :delayed_jobs, :last_error, :text, limit: 4294967295
end
end
14 changes: 7 additions & 7 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.define(version: 20170517143845) do
ActiveRecord::Schema.define(version: 20170707153553) do

create_table "admin_rates", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin" do |t|
t.integer "line_item_id"
Expand Down Expand Up @@ -142,17 +142,17 @@
end

create_table "delayed_jobs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin" do |t|
t.integer "priority", default: 0, null: false
t.integer "attempts", default: 0, null: false
t.text "handler", limit: 65535, null: false
t.text "last_error", limit: 65535
t.integer "priority", default: 0, null: false
t.integer "attempts", default: 0, null: false
t.text "handler", limit: 4294967295, null: false
t.text "last_error", limit: 4294967295
t.datetime "run_at"
t.datetime "locked_at"
t.datetime "failed_at"
t.string "locked_by"
t.string "queue"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
end

Expand Down

0 comments on commit d8bbdb2

Please sign in to comment.