Class | CreateVersions |
In: |
lib/generators/paper_trail/templates/create_versions.rb
|
Parent: | ActiveRecord::Migration |
TEXT_BYTES | = | 1_073_741_823 | The largest text column available in all supported RDBMS is 1024^3 - 1 bytes, roughly one gibibyte. We specify a size so that MySQL will use `longtext` instead of `text`. Otherwise, when serializing very large objects, `text` might not be big enough. |