Sha256: 3118b32720395596665c52829c28b14231121799980607fa3248ae717de7a5e2

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
ecm_downloads2_backend-1.0.0 spec/dummy/db/migrate/20151130141605_create_ecm_downloads_download_categories.ecm_downloads_engine.rb