class UserSelectedTopic < ActiveRecord::Base
  belongs_to :user
  belongs_to :topic
  has_many :availabilities
end

class UserSelectedTopic < ActiveRecord::Base
  belongs_to :user
  belongs_to :topic
  has_many :availabilities

  validates :user, uniqueness: {scope: :topic}
end

Add validation for unique user/topic combo in UST
Add validation for unique user/topic combo in UST
