Sha256: cdb498a4d14c34b1d4050983165d85bb0c8d106d647e8dd12adc02f07e5f18d2

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def change
    create_table :mcms_pages do |t|
      t.string :title
      t.string :link_url
      t.string :permalink
      t.boolean :show_in_menu
      t.boolean :published

      t.timestamps
    end
    add_index :mcms_pages, :title,     :unique => true
    add_index :mcms_pages, :link_url,  :unique => true
    add_index :mcms_pages, :permalink, :unique => true

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mcms_pages-1.0.0 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.7 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.6 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.5 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.4 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.3 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.2 db/migrate/20120605100629_create_pages.rb
mcms_pages-0.0.1 db/migrate/20120605100629_create_pages.rb