For data integrity, relationships between tables should not only be stored within the program logic, the DB also should have knowledge about these connections. Therefore, foreign keys should be used.
Native Rails does not support foreign key relations. The Gems Foreigner and Immigrant can be used to achieve this anyways.
For data integrity, relationships between tables should not only be stored within the program logic, the DB also should have knowledge about these connections. Therefore, foreign keys should be used.
Native Rails does not support foreign key relations. The Gems Foreigner and Immigrant can be used to achieve this anyways.