nicolas-fricke / transfair

[DEPRECATED] Second, Rails-based approach to a web application for the Transfair-Project
https://www.transfair.co
3 stars 3 forks source link

Introduce foreign keys to database #18

Closed nicolas-fricke closed 5 years ago

nicolas-fricke commented 12 years ago

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.