socialforge/db/migrate/20160325030423_add_index_to...

6 lines
188 B
Ruby
Raw Normal View History

2016-03-25 11:13:42 +08:00
class AddIndexToUserActivities < ActiveRecord::Migration
def change
add_index :user_activities, [:act_id, :act_type, :container_id, :created_at], :name => "user_act_index"
end
end