Sha256: 1c0d286211ccd8656ff8a089557e33218c6930796104e7b0ba49d9a9932b805a

Contents?: true

Size: 749 Bytes

Versions: 52

Compression:

Stored size: 749 Bytes

Contents

# This migration comes from cmor_cms (originally 6)
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

52 entries across 52 versions & 2 rubygems

Version Path
cmor_cms_backend-0.0.53.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.52.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.51.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_legal-0.0.51.pre spec/dummy/db/migrate/20200302113757_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.50.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_legal-0.0.50.pre spec/dummy/db/migrate/20200302113757_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.49.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_legal-0.0.49.pre spec/dummy/db/migrate/20200302113757_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.48.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_legal-0.0.48.pre spec/dummy/db/migrate/20200302113757_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.45.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.44.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.43.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.42.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.41.pre spec/dummy/db/migrate/20200119053433_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.40.pre spec/dummy/db/migrate/20190612145124_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.39.pre spec/dummy/db/migrate/20190612145124_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.38.pre spec/dummy/db/migrate/20190612145124_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.37.pre spec/dummy/db/migrate/20190612145124_create_cmor_cms_navigation_items.cmor_cms.rb
cmor_cms_backend-0.0.36.pre spec/dummy/db/migrate/20190612145124_create_cmor_cms_navigation_items.cmor_cms.rb