has_and_belongs_to_many is already defined in line 50 and this does not generate the same methods as belongs_to.
Ex. Medium.first.operatingsystem_ids (and _names), but not Medium.first.operatingsystem_id (or .operatingsystem_name)