Sha256: e1a9169cc3e809d022d28c5dee891b78599f41f2f1b07014a3ea5858bca2b30e

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 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_id, null: false
      t.string :sis_id
      t.string :course_code
      t.string :name
      t.string :workflow_state
      t.integer :canvas_account_id
      t.integer :canvas_term_id
      t.datetime :start_at
      t.datetime :end_at

      t.timestamps
    end

    add_index :courses, :canvas_id, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
canvas_sync-0.10.2 spec/dummy/db/migrate/20190603220011_create_courses.rb
canvas_sync-0.10.0 spec/dummy/db/migrate/20190603220011_create_courses.rb