head 1.8; access ; symbols ; locks ;comment @@; 1.8 date 2014.11.12.11.17.26; author p4; state Exp; branches ; next 1.6; 1.6 date 2014.11.12.10.08.58; author p4; state Exp; branches ; next 1.4; 1.4 date 2014.11.11.12.43.56; author p4; state Exp; branches ; next ; desc @@ 1.8 log @@ text @class Vote < ActiveRecord::Base belongs_to :article, counter_cache: true validates :from, uniqueness: {scope: :article,message: "You have already voted"} end @ 1.6 log @@ text @d3 2 @ 1.4 log @@ text @d2 1 a2 1 belongs_to :article @