Sha256: 16f027ca1fb36afef05b7f3a42b0d3132b39ef9c4d6ce905c027ca47939eeb17

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

class CreateManageableContentPageContents < ActiveRecord::Migration
  def change
    create_table :manageable_content_page_contents do |t|
      t.references :page
      t.string :key
      t.boolean :short, :default => false
      t.text :content

      t.timestamps
    end

    add_index :manageable_content_page_contents, [:page_id, :key], :unique => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
manageable_content-0.2.2 db/migrate/20110814003912_create_manageable_content_page_contents.rb
manageable_content-0.2.1 db/migrate/20110814003912_create_manageable_content_page_contents.rb
manageable_content-0.2.0 db/migrate/20110814003912_create_manageable_content_page_contents.rb
manageable_content-0.1.1 db/migrate/20110814003912_create_manageable_content_page_contents.rb