Rails Optionale Referenz

class User
  belongs_to :company, optional: true
end
Lioruby