Ruby on Rails seems to have been thought of since it is not necessary to define constraints (like Foreign Keys ) in the database, / p>
Normally the only constraint that is created in this case is the primary key of the id
column, otherwise it's just indexes (not necessarily as unique) for performance reasons. I also do not use NOT NULL
, for example.
In general this facilitates the development, especially in the database versioning.
Should I be concerned about integrity risks and the like when working in this way (leaving everything in charge of the application)?