Sha256: 525bd246ee61e717aff0c3132ce6b42c9ae404f5f8043a113b17ac2f679faf11
Contents?: true
Size: 777 Bytes
Versions: 5
Compression:
Stored size: 777 Bytes
Contents
# This migration comes from ecm_cms_engine (originally 6) class CreateEcmCmsNavigationItems < ActiveRecord::Migration[4.2] def change create_table :ecm_cms_navigation_items do |t| t.string :name t.string :url t.string :key t.string :options t.text :properties, null: true # associations t.references :ecm_cms_navigation t.references :ecm_cms_page # awesome nested set t.references :parent t.integer :children_count, default: 0, null: false t.integer :lft t.integer :rgt t.integer :depth # friendly id t.string :slug t.timestamps end add_index :ecm_cms_navigation_items, :ecm_cms_navigation_id add_index :ecm_cms_navigation_items, :parent_id end end
Version data entries
5 entries across 5 versions & 1 rubygems