I am working on a voting system. I wish to have a system that allows
users to vote every X amount of time. I am using a vote model that
creates a new record every time a vote is cast. How would i add a check
to stop users form voting more than once in the X amount of time.
here is the vote model
class CreateVotes < ActiveRecord::Migration
create_table :votes do |t|
t.column :time, :datetime
t.column :user_id, :int
t.column :celebrity_id, :int
thanks for your time reading this post!!!