When you want an optional belongs_to:
1) Just don't add in the field's migration
#PLEASE DO NOT DO
2) In the model use
belongs_to :community, optional: true
Tip: You can change the style, width & colours of the snippet with the
inspect tool before clicking Download!