Sha256: 7a900e0d5c03e92be8c9285fe77c6ec74084b6e44dd83edfb2dd3c0f5243fcd7

Contents?: true

Size: 524 Bytes

Versions: 136

Compression:

Stored size: 524 Bytes

Contents

# <%= autogenerated_migration_warning %>

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.21.0.beta5 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.21.0.beta3 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.21.0.beta2 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.21.0.beta1 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.20.5 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.20.4 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.20.3 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.1.beta2 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.1.beta1 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta10 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta9 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta8 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta7 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta6 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta5 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta4 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta3 lib/canvas_sync/generators/templates/migrations/create_courses.rb
canvas_sync-0.19.0.beta2 lib/canvas_sync/generators/templates/migrations/create_courses.rb