mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 12:21:31 +00:00
Merge pull request #152 from Alex-Ikanow/update_handler_text_size
#141 change delayed_job.handler to mediumtext (16MB) like event.payload
This commit is contained in:
commit
b16f1053ad
1 changed files with 19 additions and 0 deletions
19
db/migrate/20140127164931_change_handler_to_medium_text.rb
Normal file
19
db/migrate/20140127164931_change_handler_to_medium_text.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Increase handler size to 16MB (consistent with events.payload)
|
||||
|
||||
class ChangeHandlerToMediumText < ActiveRecord::Migration
|
||||
def up
|
||||
if mysql?
|
||||
change_column :delayed_jobs, :handler, :text, :limit => 16777215
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
if mysql?
|
||||
change_column :delayed_jobs, :handler, :text, :limit => 65535
|
||||
end
|
||||
end
|
||||
|
||||
def mysql?
|
||||
ActiveRecord::Base.connection.adapter_name =~ /mysql/i
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue