Sha256: 0196468a988645caee34a4411bc34d4f432535c7deb581a9243ca21d040dad32
Contents?: true
Size: 422 Bytes
Versions: 27
Compression:
Stored size: 422 Bytes
Contents
class AdjustFieldLength < CamaManager.migration_class def change post_table = CamaleonCms::Post.table_name change_column post_table, :title, :text remove_index(post_table, :slug) if index_exists?(post_table, :slug) change_column post_table, :slug, :text add_index post_table, :slug, length: 255 change_column "#{PluginRoutes.static_system_info["db_prefix"]}term_taxonomy", :name, :text end end
Version data entries
27 entries across 27 versions & 2 rubygems