Roman Kanafotskiy Roman Kanafotskiy - 4 years ago 121
Ruby Question

Delete unnecessary fields from acts_as_votable gem migration


gem generates current set of fields:


Which fields can be deleted so that only the average result of voting can be displayed?

Answer Source

According to the docs, caching is optional, used to improve performance. If they have no need to you, you can simply erase the columns.

To speed up perform you can add cache columns to your votable model's table. These columns will automatically be updated after each vote.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download