Rails – Superior must exist

  • by

Error that doesn’t give much information. But associated to hierarchies.

When the database has an parent_id and null entries are in the column. Rails doesn’t like there being NULL in the database column.

New post are denied as well as editing old posts.
Need to ensure that a value is passed or that NULL is allowed. Rails assumes a Superior eg: parent_id is required.

Leave a Reply

Your email address will not be published. Required fields are marked *