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

Version Path
camaleon_cms-2.9.0 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.8.3 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.8.2 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.8.1 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.8.0 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.5 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.4 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.3 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.2 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.1 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.7.0 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.4 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.3 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.2 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.1 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.0.1 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.6.0 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.5.3.1 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.5.3 db/migrate/20180704211100_adjust_field_length.rb
camaleon_cms-2.5.2 db/migrate/20180704211100_adjust_field_length.rb