socialforge/app/models/join_in_contest.rb

11 lines
172 B
Ruby
Raw Normal View History

2013-11-14 15:55:56 +08:00
class JoinInContest < ActiveRecord::Base
attr_accessible :bid_id, :user_id
belongs_to :user
belongs_to :bid
validates_presence_of :user_id, :bid_id
end