Answer the question
In order to leave comments, you need to log in
How can you create indexes with your own names in Ruby on Rails?
For example, I create indexes like this:
class AddIndexesToSubscriptionPeriods3 < ActiveRecord::Migration
def change
add_index :subscription_periods, [:period_start, :period_finish, :newspaper_id]
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question