Sha256: 5bc8709ea933f117dc84464ed7243361860560002e94e3384283e50abf81b4b6

Contents?: true

Size: 689 Bytes

Versions: 136

Compression:

Stored size: 689 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.bigint :grading_standard_id

      t.timestamps
    end

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

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
canvas_sync-0.17.6.beta1 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.5 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.5.beta2 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.5.beta1 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.4 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.3.beta3 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.3.beta2 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.3.beta1 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.2 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.1 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta15 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta14 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta13 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta12 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta11 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta10 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta9 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta8 spec/dummy/db/migrate/20190702203621_create_courses.rb
canvas_sync-0.17.0.beta7 spec/dummy/db/migrate/20190702203621_create_courses.rb