Sha256: 56679d1ce3c3acbcbcca2d1b29ae87ec36a968f79e5d19dad7c8dc46648cbb5f

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

class CreateEcmCmsCoreFolders < ActiveRecord::Migration
  def self.up
    create_table :ecm_cms_core_folders do |t|
      t.references :parent
      t.string :basename
      t.string :pathname
      t.integer :lft
      t.integer :rgt
      t.integer :depth
      t.integer :children_count, :default => 0
      t.integer :templates_count, :default => 0

      t.timestamps
    end
  end

  def self.down
    drop_table :ecm_cms_core_folders
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.8 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb
ecm_cms_core-0.0.7 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb
ecm_cms_core-0.0.6 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb
ecm_cms_core-0.0.5 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb
ecm_cms_core-0.0.3 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb
ecm_cms_core-0.0.2 lib/generators/ecm/cms_core/migrations/templates/create_ecm_cms_core_folders.rb