Skip to content

Instantly share code, notes, and snippets.

@o-200
o-200 / after.rb
Last active January 22, 2025 15:37
test_task
#
# refactored
#
class User < ApplicationRecord
has_many :user_interests
has_many :interests, through: :user_interests
has_many :user_skills
has_many :skills, through: :user_skills
end