Sha256: 54c8b5b9d86f7f9ff5cd5adaeffc5124c6ace4db1b93c656de8d0f3bca9c12eb

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

class AddMissingIndexes < ActiveRecord::Migration
  def change
    add_index :coalescing_panda_assignments, :coalescing_panda_course_id, name: 'index_assignment_course_id'
    add_index :coalescing_panda_courses, :coalescing_panda_lti_account_id, name: 'index_courses_lti_account_id'
    add_index :coalescing_panda_courses, :coalescing_panda_term_id, name: 'index_courses_term_id'
    add_index :coalescing_panda_sections, :coalescing_panda_course_id, name: 'index_sections_course_id'
    add_index :coalescing_panda_enrollments, :coalescing_panda_user_id, name: 'index_enrollments_user_id'
    add_index :coalescing_panda_enrollments, :coalescing_panda_section_id, name: 'index_enrollments_section_id'
    add_index :coalescing_panda_group_memberships, :coalescing_panda_user_id, name: 'index_memberships_user_id'
    add_index :coalescing_panda_group_memberships, :coalescing_panda_group_id, name: 'index_memberships_group_id'
    add_index :coalescing_panda_submissions, :coalescing_panda_user_id, name: 'index_submissions_user_id'
    add_index :coalescing_panda_submissions, :coalescing_panda_assignment_id, name: 'index_submissions_assignment_id'
    add_index :coalescing_panda_users, :coalescing_panda_lti_account_id, name: 'index_users_lti_account_id'
    add_index :coalescing_panda_terms, :coalescing_panda_lti_account_id, name: 'index_terms_lti_account_id'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coalescing_panda-3.2.2 db/migrate/20150218185536_add_missing_indexes.rb
coalescing_panda-3.2.1 db/migrate/20150218185536_add_missing_indexes.rb