1 2 3 4 5 6
class TermAgreement < ActiveRecord::Base belongs_to :term, class_name: 'ApplicationSetting::Term' belongs_to :user validates :user, :term, presence: true end