Sha256: 7b4ac9b43569d56e340d7882e655e5ec7201494364757a2a8ec5be62cb161bb4

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms2-5.1.2 db/migrate/008_create_ecm_cms_page_content_blocks.rb
ecm_cms2-5.1.1 db/migrate/008_create_ecm_cms_page_content_blocks.rb
ecm_cms2-5.1.0 db/migrate/008_create_ecm_cms_page_content_blocks.rb
ecm_cms2-5.0.0 db/migrate/008_create_ecm_cms_page_content_blocks.rb
ecm_cms2-4.1.1 db/migrate/008_create_ecm_cms_page_content_blocks.rb
ecm_cms2-4.1.0 db/migrate/008_create_ecm_cms_page_content_blocks.rb