put ActiveRecord in the nesting in has_and_belongs_to_many.rb