Sha256: 3eefe002ff35d5d12d3260ed123c50f54c20ea8b0fe293e7b5169bbbccaa925a

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 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_courses2-1.0.0 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.2.4 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.2.3 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.2.2 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.2.1 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.2.0 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.1.0 db/migrate/002_create_ecm_courses_courses.rb
ecm_courses2-0.0.1 db/migrate/002_create_ecm_courses_courses.rb