Basically, it doesn't - because it doesn't need to. Rails/ActiveRecord doesn't use those either. Problem solved :)
I'd wager that a lot of the big professional rails deployments are doing FK constraints though.
This is because those projects typically sit on databases that are only expected to be accessed via web API and not directly from some other source.
Which is basically the Rails philosophy. Only let the app talk to the DB, and let the only outside interface to the DB be through the ORM that has to do most of the data validations anyway.