trustieforge/app/models/join_in_contest.rb

11 lines
172 B
Ruby

class JoinInContest < ActiveRecord::Base
attr_accessible :bid_id, :user_id
belongs_to :user
belongs_to :bid
validates_presence_of :user_id, :bid_id
end