Sha256: 5f5fda5c522b3d1ce204e82ed264dfc2d41f202be61128be56626e9e22fd057f
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
# This migration comes from ecm_cms_engine (originally 1) class CreateEcmCmsFolders < ActiveRecord::Migration[4.2] def change create_table :ecm_cms_folders do |t| t.string :basename t.string :pathname # associations t.integer :children_count, default: 0, null: false t.integer :ecm_cms_templates_count, default: 0, null: false # awesome nested set t.references :parent t.integer :lft t.integer :rgt t.integer :depth t.timestamps end add_index :ecm_cms_folders, :parent_id end end
Version data entries
5 entries across 5 versions & 1 rubygems