Sha256: 4e82252c1106fb8f079137c30d2668e93aad092592dc95896ecc21346a8c0e6d

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

class CreateCardboardPageParts < ActiveRecord::Migration
  def change
    create_table :cardboard_page_parts do |t|
      t.string :identifier
      t.integer :position
      t.integer :parent_part_id
      t.boolean :repeatable
      t.string :label
      t.belongs_to :page

      t.timestamps
    end
    add_index :cardboard_page_parts, :page_id
    add_index :cardboard_page_parts, :identifier
    add_index :cardboard_page_parts, :parent_part_id
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 lib/generators/cardboard/install/templates/migrations/2_create_cardboard_page_parts.rb
cardboard_cms-0.1.8 test/dummy/db/migrate/20130522151359_create_cardboard_page_parts.rb
cardboard_cms-0.1.6 lib/generators/cardboard/install/templates/migrations/2_create_cardboard_page_parts.rb
cardboard_cms-0.1.6 test/dummy/db/migrate/20130522151359_create_cardboard_page_parts.rb
cardboard_cms-0.1.4 lib/generators/cardboard/install/templates/migrations/2_create_cardboard_page_parts.rb
cardboard_cms-0.1.4 test/dummy/db/migrate/20130522151359_create_cardboard_page_parts.rb