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.5.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.5.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.5.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.4.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.4.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.23 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.22 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.21 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.20 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.19 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.18 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.17 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.16 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.15 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.14 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.13 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.12 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.11 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.10 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.3.9 spec/dummy/db/migrate/20170914181345_create_courses.rb