You are here: Browse Railsplugins Acts As Rateable
Resources
Install * Run the following command: script/plugin install http://juixe.com/svn/acts_as_rateable
def self.up create_table “ratings”, :force => true do |t| t.column “rating”, :integer, :default => 0 t.column “created_at”, :datetime, :null => false t.column “rateable_type”, :string, :limit => 15, :default => ””, :null => false t.column “rateable_id”, :integer, :default => 0, :null => false t.column “user_id”, :integer, :default => 0, :null => false end end
add_index "ratings", ["user_id"], :name => "fk_ratings_user"
def self.down drop_table :ratings end
Xelipe – This plugin is heavily influced by Acts As Voteable.
== More
http://www.juixe.com/projects/acts_as_rateable
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly