Skip to content

Commit 86536c3

Browse files
committed
Index submission_id on awarded_points
1 parent 5020570 commit 86536c3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddSubmissionIdIndexToAwardedPoints < ActiveRecord::Migration[6.1]
2+
def change
3+
add_index :awarded_points, :submission_id
4+
end
5+
end

db/schema.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 2024_02_28_101929) do
13+
ActiveRecord::Schema.define(version: 2024_03_04_085436) do
1414

1515
# These are extensions that must be enabled in order to support this database
1616
enable_extension "plpgsql"
@@ -77,6 +77,7 @@
7777
t.boolean "awarded_after_soft_deadline", default: false, null: false
7878
t.index ["course_id", "user_id", "name"], name: "index_awarded_points_on_course_id_and_user_id_and_name", unique: true
7979
t.index ["course_id", "user_id", "submission_id"], name: "index_awarded_points_on_course_id_and_user_id_and_submission_id"
80+
t.index ["submission_id"], name: "index_awarded_points_on_submission_id"
8081
t.index ["user_id", "submission_id", "name"], name: "index_awarded_points_on_user_id_and_submission_id_and_name", unique: true
8182
end
8283

0 commit comments

Comments
 (0)