[ci skip] Added documentation for has_and_belongs_to_many extension parameter

Same as https://github.com/rails/rails/pull/16675 but for has_and_belongs_to_many