Sha256: c14fa76ee778bd2d0fb63fe06eacbaebdbcdb5ed85f1e20ce99cb5245fa41e5a

Contents?: true

Size: 300 Bytes

Versions: 16

Compression:

Stored size: 300 Bytes

Contents

class AddHeaderImage < ActiveRecord::Migration
  def change
    rename_column     :cms_pages, :image, :featured_image
    add_column        :cms_pages, :header_image, :string

    rename_column     :cms_blogs, :image, :header_image
    rename_column     :cms_posts, :image, :featured_image
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_cms-4.2.3.10 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.9 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.8 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.7 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.6 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.5 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.4 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.3 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.2 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3.1 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.3 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.2.3 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.2.2 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.2.1 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.2 db/migrate/20141004154725_add_header_image.rb
dm_cms-4.2.1.5 db/migrate/20141004154725_add_header_image.rb