You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Customer < ApplicationRecord
belongs_to :organization
end
by default Rails validates this association as required, meaning if you do net set an organization_id, record creation will fail
Rails default validations should be catched by default
The text was updated successfully, but these errors were encountered:
by default Rails validates this association as
required
, meaning if you do net set anorganization_id
, record creation will failRails default validations should be catched by default
The text was updated successfully, but these errors were encountered: