socialforge/db/migrate/20160321071740_add_index_to...

6 lines
158 B
Ruby
Raw Normal View History

class AddIndexToMessageAlls < ActiveRecord::Migration
def change
add_index :message_alls, [:user_id, :message_id, :message_type, :created_at]
end
end