As shown in this question:
How do I make a column unique and index it in a Ruby on Rails migration?
You can write:
add_index :the_table, [:foo_column, :bar_column], unique: true
to add an multiple column index.
But is it still required to add an single indexes for each of those columns that you already have specified a multi-column index?
I mean something like writing below code in additional to the code shown above.
add_index :the_table, :foo_column
add_index :the_table, :bar_column