Sha256: dd31d7da1aea2c88c68996e6c372aa9dd05b407168e4d99fbf0032db7cdb757b

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

# This migration comes from ecm_cms_engine (originally 8)
class CreateEcmCmsPageContentBlocks < ActiveRecord::Migration[4.2]
  def change
    create_table :ecm_cms_page_content_blocks do |t|
      t.text :body

      # associations
      t.references :ecm_cms_page
      t.references :ecm_cms_content_box

      t.timestamps
    end
    add_index :ecm_cms_page_content_blocks, :ecm_cms_page_id
    add_index :ecm_cms_page_content_blocks, :ecm_cms_content_box_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_cms2_backend-1.3.2 spec/dummy/db/migrate/20151126215847_create_ecm_cms_page_content_blocks.ecm_cms_engine.rb
ecm_cms2_backend-1.3.1 spec/dummy/db/migrate/20151126215847_create_ecm_cms_page_content_blocks.ecm_cms_engine.rb
ecm_cms2_backend-1.3.0 spec/dummy/db/migrate/20151126215847_create_ecm_cms_page_content_blocks.ecm_cms_engine.rb
ecm_cms2_backend-1.2.3 spec/dummy/db/migrate/20151126215847_create_ecm_cms_page_content_blocks.ecm_cms_engine.rb
ecm_cms2_backend-1.2.2 spec/dummy/db/migrate/20151126215847_create_ecm_cms_page_content_blocks.ecm_cms_engine.rb