Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Lio
35 days ago
|
parent
|
context
|
favorite
| on:
Postgres LISTEN/NOTIFY does not scale
Rails fully supports constraints and encourages you to use them.
You can either execute SQL in your migration or use add_check_constraint.
panzi
35 days ago
[–]
Back when I used Rails the sentiment was: You don't need foreign keys, this is all handled by ActiveRecord.
Lio
33 days ago
|
parent
[–]
I’m guessing that must have been the 00s then. I haven’t seen anyone downplay database constraints for a very long time.
panzi
32 days ago
|
root
|
parent
[–]
Sometime between 2005 and 2012 I think. It definitely was for a stretch of time where Rails people said that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You can either execute SQL in your migration or use add_check_constraint.