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.9.4 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.9.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.9.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.9.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.9.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.8.4 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.8.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.8.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.8.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.8.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.7.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.7.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.7.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.7.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.6.4 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.6.3 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.6.2 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.6.1 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.6.0 spec/dummy/db/migrate/20170914181345_create_courses.rb
canvas_sync-0.5.4 spec/dummy/db/migrate/20170914181345_create_courses.rb