Sha256: 5c429c095fa199f23bdb5055504ccec1e62c7b78f8cde8ea95fc7431d01bfee2
Contents?: true
Size: 522 Bytes
Versions: 16
Compression:
Stored size: 522 Bytes
Contents
class ExtendPagePartContentLimit < ActiveRecord::Migration[5.1] 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
16 entries across 16 versions & 1 rubygems