Sha256: 69282dac16902f213995bec089fa6d5397e9cf8948d706b778438a539da56f2f
Contents?: true
Size: 697 Bytes
Versions: 56
Compression:
Stored size: 697 Bytes
Contents
class CreateCmorCmsNavigationItems < ActiveRecord::Migration[4.2] def change create_table :cmor_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 :navigation t.references :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 :cmor_cms_navigation_items, :navigation_id add_index :cmor_cms_navigation_items, :parent_id end end
Version data entries
56 entries across 56 versions & 1 rubygems