Sha256: fd5078123862cb17f631f81a8102664f450210fac11ba159d48f87f3ddccdaa7

Contents?: true

Size: 545 Bytes

Versions: 8

Compression:

Stored size: 545 Bytes

Contents

class CreateEcmCoursesCourses < ActiveRecord::Migration
  def change
    create_table :ecm_courses_courses do |t|
      t.string :name
      t.text :description
      t.string :locale
      
      # references
      t.integer :ecm_courses_course_dates_count, :default => 0, :null => false
      t.references :ecm_courses_course_category
      
      # acts as list
      t.integer :position
      
      # friendly id
      t.string :slug

      t.timestamps
    end
    add_index :ecm_courses_courses, :ecm_courses_course_category_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecm_courses-0.0.1 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.7.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.6.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.5.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.4.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.3.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.2.pre db/migrate/002_create_ecm_courses_courses.rb
ecm_courses-0.0.1.pre db/migrate/002_create_ecm_courses_courses.rb