Sha256: dec0b6b17ba7c5be8e3fb99a99f875a71c7e08074b29fedab7813051746ad85a

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

class CreateEtCmsPages < ActiveRecord::Migration
  def change
    create_table :et_cms_pages do |t|
      t.text :content
      t.string :browser_title
      t.string :name
      t.integer :parent_id
      t.string :meta_description
      t.boolean :exclude_from_menu
      t.string :link_url
      t.integer :list_order
      t.string :status
      t.string :slug

      t.timestamps
    end

    add_index :et_cms_pages, :slug, unique: true
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
et_cms-0.0.2 db/migrate/20121218144615_create_et_cms_pages.rb
et_cms-0.0.2 lib/generators/et_cms/templates/pages.rb
et_cms-0.0.1 db/migrate/20121218144615_create_et_cms_pages.rb
et_cms-0.0.1 lib/generators/et_cms/templates/pages.rb