Sha256: fabdb6684c9c4348ba8f9e723ed9b7ea49d398965330e3f5321b8c18c09c9dae

Contents?: true

Size: 676 Bytes

Versions: 60

Compression:

Stored size: 676 Bytes

Contents

<%= autogenerated_migration_warning %>

class CreateEnrollments < ActiveRecord::Migration[5.1]
  def change
    create_table :enrollments do |t|
      t.bigint :canvas_enrollment_id, null: false
      t.bigint :canvas_course_id
      t.string :course_sis_id
      t.bigint :canvas_user_id
      t.string :user_sis_id
      t.string :role
      t.integer :role_id
      t.bigint :canvas_section_id
      t.string :section_sis_id
      t.string :status
      t.string :base_role_type


      t.timestamps
    end

    add_index :enrollments, :canvas_enrollment_id, unique: true
    add_index :enrollments, :canvas_course_id
    add_index :enrollments, :canvas_user_id
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.9.3 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.9.2 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.9.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.9.0 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.8.4 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.8.3 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.8.2 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.8.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.8.0 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.7.3 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.7.2 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.7.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.7.0 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.6.4 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.6.3 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.6.2 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.6.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.6.0 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.5.4 lib/canvas_sync/generators/templates/models/create_enrollments.rb