2019-08-16 06:47:32 +00:00
|
|
|
class ObjectManagerAttributeTicketArticleBodyMaxlengthChange < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2019-08-16 06:47:32 +00:00
|
|
|
|
|
|
|
attribute = ObjectManager::Attribute.get(
|
|
|
|
object: 'TicketArticle',
|
|
|
|
name: 'body',
|
|
|
|
)
|
|
|
|
return if !attribute
|
|
|
|
|
|
|
|
attribute.data_option[:maxlength] = 150_000
|
|
|
|
attribute.save!
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|