Sha256: 653c6c26a3237b0cbb4aa8d81d93fbc13ff566a440b377b8a180d6037e04a16f

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

class CreateEcmCoursesCourseCategories < ActiveRecord::Migration
  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.0.0 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.2.4 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.2.3 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.2.2 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.2.1 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.2.0 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.1.0 db/migrate/001_create_ecm_courses_course_categories.rb
ecm_courses2-0.0.1 db/migrate/001_create_ecm_courses_course_categories.rb