I'm new to rails and wanted to know why you need to define the relationship between objects in your class (has_many etc) when it would already be defined in your database schema?