You would have to explicitly generate a model; it doesn't happen as a by-product of creating a join table.
A has_and_belongs_to_many
association doesn't actually need a model class representing the association. It is supposed to be just a join table so what you've set up is exactly right.
The other option for such associations is a has_many through:
association which uses an intermediate, or join, class. This is discussed in more details in the rails guide for associations. You would have to generate that joining model yourself though.