Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xentronium
on May 6, 2012
|
parent
|
context
|
favorite
| on:
Five Common Rails Mistakes
`destroy` instantiates active record models which kind of defeats the purpose of fast deletion :)
janus
on May 6, 2012
[–]
You are right, well in that case, you would have to delete associated records manually if you didn't add any foreign keys at the db level
chris_wot
on May 7, 2012
|
parent
[–]
I'd suggest deleting or dealing with those records anyway, regardless of whether you added FKs! But... if you don't add FKs, you've got bigger issues to deal with :(
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: