Vote controller added (don't know what for)
uniqueness_of :post_id scope: :user_id
mistake fixed in user.rb model
User.rb model modified