From 22e63d3e9230c4ca2b2657e90309923c3498d70b Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 19 Apr 2019 22:49:37 -0400 Subject: [PATCH] Made delayed_jobs handler column a longtext --- db/migrate/20190420021620_increase_delayed_jobs_handler.rb | 7 +++++++ db/schema.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20190420021620_increase_delayed_jobs_handler.rb diff --git a/db/migrate/20190420021620_increase_delayed_jobs_handler.rb b/db/migrate/20190420021620_increase_delayed_jobs_handler.rb new file mode 100644 index 0000000..122115b --- /dev/null +++ b/db/migrate/20190420021620_increase_delayed_jobs_handler.rb @@ -0,0 +1,7 @@ +class IncreaseDelayedJobsHandler < ActiveRecord::Migration[5.2] + def change + # 4294967295 is the maximum longtext size for mysql + # change_column :delayed_jobs, :handler, :text, :limit => 4294967295 + change_column :delayed_jobs, :handler, :longtext + end +end diff --git a/db/schema.rb b/db/schema.rb index 8cb1547..18a5945 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_04_19_142230) do +ActiveRecord::Schema.define(version: 2019_04_20_021620) do create_table "delayed_jobs", force: :cascade do |t| t.integer "priority", default: 0, null: false