You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
366 B
9 lines
366 B
9 months ago
|
class AddAssignedToIndex < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
remove_index :sales_logs, name: "index_sales_logs_on_created_by_id", column: :created_by_id
|
||
|
remove_index :lettings_logs, name: "index_lettings_logs_on_created_by_id", column: :created_by_id
|
||
|
add_index :sales_logs, :assigned_to_id
|
||
|
add_index :lettings_logs, :assigned_to_id
|
||
|
end
|
||
|
end
|