Sha256: 4cbb360fe106a17a8767b26459f329f0c0b10375fee8be5327dce4c99bd9527d
Contents?: true
Size: 522 Bytes
Versions: 19
Compression:
Stored size: 522 Bytes
Contents
class ExtendPagePartContentLimit < ActiveRecord::Migration[5.2] def self.up if ActiveRecord::Base.connection.adapter_name =~ /m[sy]sql/i # Make sure text longer than 64kB is not cropped in MySQL and MSSQL # See https://github.com/radiant/radiant-sheets-extension/issues/10 change_column :page_parts, :content, :text, :limit => 1048575 end end def self.down if ActiveRecord::Base.connection.adapter_name =~ /m[sy]sql/i change_column :page_parts, :content, :text end end end
Version data entries
19 entries across 19 versions & 1 rubygems