i\'m starting now on Rails, i looked in the forum, but i didn\'t find anything that could solve my problem.
Here it goes, I have a Category table, and it has only n
There are many valid reasons to have foreign keys in your database. See Does Rails need database-level constraints?
I recommend Foreigner if you want to easily add foreign keys to your Rails app.