Sha256: 10b19f1d8b134bd7d5580eae7875f37368624ea105055645f4f58aaf2ab38309

Contents?: true

Size: 753 Bytes

Versions: 8

Compression:

Stored size: 753 Bytes

Contents

class CreateCoalescingPandaCourses < ActiveRecord::Migration
  def change
    create_table :coalescing_panda_courses do |t|
      t.belongs_to :coalescing_panda_lti_account
      t.belongs_to :coalescing_panda_term
      t.string :name
      t.string :canvas_course_id
      t.string :sis_id
      t.datetime :start_at
      t.datetime :conclude_at
      t.string :workflow_state
      t.string :course_code

      t.timestamps
    end

    add_index :coalescing_panda_courses, :coalescing_panda_lti_account_id, name: :index_courses_account
    add_index :coalescing_panda_courses, :coalescing_panda_term_id, name: :index_courses_term
    add_index :coalescing_panda_courses, :canvas_course_id
    add_index :coalescing_panda_courses, :sis_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalescing_panda-3.1.5 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.1.4 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.1.3 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.1.2 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.1.1 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.1.0 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.0.1 db/migrate/20141119225721_create_coalescing_panda_courses.rb
coalescing_panda-3.0.0 db/migrate/20141119225721_create_coalescing_panda_courses.rb