Sha256: 39ba547559262f0729a589efb110b37db6e2a8a87ff2b89a8ca5ca6d12b05a89

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 Bytes

Contents

class CreateEcmCmsNavigationNavigationItems < ActiveRecord::Migration
  def change
    create_table :ecm_cms_navigation_navigation_items do |t|
      t.string :key
      t.string :name
      t.string :url
      t.string :options
      
      # references
      t.references :navigation
      
      # awesome nested set
      t.integer :depth
      t.integer :parent_id
      t.integer :lft
      t.integer :rgt
      t.integer :children_count      
      
      # friendy id
      t.string :slug

      t.timestamps
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms_navigation-0.0.13 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb
ecm_cms_navigation-0.0.12 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb
ecm_cms_navigation-0.0.11 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb
ecm_cms_navigation-0.0.10 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb
ecm_cms_navigation-0.0.9 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb
ecm_cms_navigation-0.0.8 db/migrate/002_create_ecm_cms_navigation_navigation_items.rb