Skip to content

Instantly share code, notes, and snippets.

@between40and2
Created June 11, 2014 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save between40and2/15e8c6af76e1b3cbfeab to your computer and use it in GitHub Desktop.
Save between40and2/15e8c6af76e1b3cbfeab to your computer and use it in GitHub Desktop.

rake db:seed rake aborted! SystemStackError: stack level too deep

Most probably, you either:

  • use after_create, to make it call recursively ; or
  • call save! in before_create, to make it call recursively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment