Sha256: 40aab0013476f054e930340223bd631dee647842ef6bef4f27843560c0f944c2
Contents?: true
Size: 517 Bytes
Versions: 74
Compression:
Stored size: 517 Bytes
Contents
class ExtendPagePartContentLimit < ActiveRecord::Migration 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
74 entries across 74 versions & 1 rubygems