Sha256: 75a4c3589cbc908452f4a8db4c979a60acd9905c139dc8847f4d8c3f32e2175e

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

# This migration comes from ecm_downloads_engine (originally 1)
class CreateEcmDownloadsDownloadCategories < ActiveRecord::Migration[4.2]
  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

3 entries across 3 versions & 1 rubygems

Version Path
ecm_downloads2_backend-2.1.0 spec/dummy/db/migrate/20151130141605_create_ecm_downloads_download_categories.ecm_downloads_engine.rb
ecm_downloads2_backend-2.0.2 spec/dummy/db/migrate/20151130141605_create_ecm_downloads_download_categories.ecm_downloads_engine.rb
ecm_downloads2_backend-2.0.1 spec/dummy/db/migrate/20151130141605_create_ecm_downloads_download_categories.ecm_downloads_engine.rb