0

I have the following models:

Groups, and then GroupMembers.

I don't want a group to be allowed to be saved there is at least one groupmember model associated via a build.

how can I do that in the model? Thanks

AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012

1 Answers1

0

See rails has_many minimum collection size update validation

Community
  • 1
  • 1
neezer
  • 19,720
  • 33
  • 121
  • 220