Sha256: 5c3491126dd489fe02903a2d3dbe4c83f6fdd9826ef744a0b3f96eaca558c0fb

Contents?: true

Size: 694 Bytes

Versions: 58

Compression:

Stored size: 694 Bytes

Contents

#
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


class CreateCourses < ActiveRecord::Migration[5.1]
  def change
    create_table :courses do |t|
      t.bigint :canvas_course_id, null: false
      t.string :sis_id
      t.string :short_name
      t.string :long_name
      t.string :status
      t.integer :canvas_account_id
      t.integer :canvas_term_id
      t.integer :term_sis_id
      t.datetime :start_date
      t.datetime :end_date

      t.timestamps
    end

    add_index :courses, :canvas_course_id, unique: true
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
canvas_sync-0.3.8 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.7 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.6 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.5 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.2.4 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.2.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.2.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.2.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.2.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.1.8 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.1.7 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.1.5 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.1.4 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.1.3 spec/dummy/db/migrate/20170914181345_create_courses.rb