ryanto/acts_as_votable — pull request #44 by petergoldstein (2013-07-27 08:30:39+00:00)
Title: Rails 4 migration includes duplicate index creation

Rails 4 adds an index automatically for a references attribute, so only add the explicit index creation statements when the ActiveRecord version is less than 4.