* Fix repeated queries for reports * Load stylesheet once by moving into index * Remove unused method * Remove unused code again and update method * Use better name for migration and add indices * Use latest schema version oops * Add missing column to query
7 lines
228 B
Ruby
7 lines
228 B
Ruby
class AddIndicesForReports < ActiveRecord::Migration[5.1]
|
|
def change
|
|
add_index :feedback_messages, [:reporter_id]
|
|
add_index :feedback_messages, [:affected_id]
|
|
add_index :feedback_messages, [:offender_id]
|
|
end
|
|
end
|