Sha256: 6a7815596f02e3db059f3787461a87f1da381548f4452bb3e3fae451e06287bf

Contents?: true

Size: 363 Bytes

Versions: 48

Compression:

Stored size: 363 Bytes

Contents

# This migration comes from dm_cms (originally 20141004154725)
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

48 entries across 48 versions & 3 rubygems

Version Path
dm_forum-4.2.2.1 spec/dummy/db/migrate/20141119112043_add_header_image.dm_cms.rb
dm_event-4.2.2.1 spec/dummy/db/migrate/20141119103753_add_header_image.dm_cms.rb
dm_newsletter-4.2.2 spec/dummy/db/migrate/20141119112043_add_header_image.dm_cms.rb
dm_forum-4.2.2 spec/dummy/db/migrate/20141119112043_add_header_image.dm_cms.rb
dm_event-4.2.2 spec/dummy/db/migrate/20141119103753_add_header_image.dm_cms.rb
dm_event-4.2.1.5 spec/dummy/db/migrate/20141119103753_add_header_image.dm_cms.rb
dm_newsletter-4.2.1.5 spec/dummy/db/migrate/20141119112043_add_header_image.dm_cms.rb
dm_forum-4.2.1.5 spec/dummy/db/migrate/20141119112043_add_header_image.dm_cms.rb