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.5.3 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.5.2 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.5.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.4.1 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.4.0 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.23 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.22 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.21 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.20 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.19 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.18 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.17 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.16 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.15 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.14 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.13 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.12 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.11 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.10 lib/canvas_sync/generators/templates/models/create_enrollments.rb
canvas_sync-0.3.9 lib/canvas_sync/generators/templates/models/create_enrollments.rb