<commit_before>class RoomsUser < ActiveRecord::Base

# == Schema Information
#
# Table name: rooms_users
#
#  id         :integer          not null, primary key
#  user_id    :integer
#  room_id    :integer
#  created_at :datetime
#  updated_at :datetime
#
  belongs_to :user
  belongs_to :room

  validates :user_id, uniqueness: true
end<commit_msg>Fixed validation in room_users model<commit_after>class RoomsUser < ActiveRecord::Base

# == Schema Information
#
# Table name: rooms_users
#
#  id         :integer          not null, primary key
#  user_id    :integer
#  room_id    :integer
#  created_at :datetime
#  updated_at :datetime
#
  belongs_to :user
  belongs_to :room

  #validates :user_id, uniqueness: true
  validates :user_id, :uniqueness => {:scope => :room_id}
end
{'fraction_non_alphanumeric': 0.09207161125319693, 'fraction_numerical': 0.0, 'mean_word_length': 3.6058823529411765, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5290332', 'n_tokens_mistral': 259, 'n_tokens_neox': 257, 'n_words': 70}