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