Sha256: 51f02267cb4117e72adb93f7e9269ff8623a5d5c16100c0a57f1e4df2cd9c4b5

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

class CreateEcmCoursesCourseCategories < ActiveRecord::Migration[4.2]
  def change
    create_table :ecm_courses_course_categories do |t|
      t.string :name
      t.text :description
      t.string :locale
      t.integer :position
      t.integer :ecm_courses_courses_count, default: 0, null: false

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

      # friendly id
      t.string :slug

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecm_courses2-1.1.4 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.1.3 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.1.2 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.1.1 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.1.0 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.0.3 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.0.2 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-1.0.1 db/migrate/001_create_ecm_courses_course_categories.rb