6 lines
148 B
Ruby
6 lines
148 B
Ruby
|
class AddIndexToCourseMessages < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_index :course_messages, [:user_id, :course_id, :created_at]
|
||
|
end
|
||
|
end
|