Sha256: 20ae2f4c302c5da37055752c7dce68974f02ebed0ae07b3f2cdfbc26a43c8dbe

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

class CreateEcmDownloadsDownloadCategories < ActiveRecord::Migration
  def change
    create_table :ecm_downloads_download_categories do |t|
      t.string :name
      t.text :description
      t.string :locale
      t.integer :position

      # references
      t.integer :ecm_downloads_downloads_count, default: 0, null: false

      # awesome nested set
      t.integer :parent_id
      t.integer :lft
      t.integer :rgt
      t.integer :depth

      # frienldy id
      t.string :slug

      t.timestamps
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecm_downloads2-5.0.0 db/migrate/001_create_ecm_downloads_download_categories.rb
ecm_downloads2-4.0.1 db/migrate/001_create_ecm_downloads_download_categories.rb
ecm_downloads2-3.0.0 db/migrate/001_create_ecm_downloads_download_categories.rb
ecm_downloads2-2.0.3 db/migrate/001_create_ecm_downloads_download_categories.rb
ecm_downloads2-2.0.2 db/migrate/001_create_ecm_downloads_download_categories.rb
ecm_downloads2-2.0.0 db/migrate/001_create_ecm_downloads_download_categories.rb