do not fail silently
Foreign key does not work in Rails 3.0. This should fix it.
Merge pull request #4 from friendlysystems/master

Does not work with Rails 3.0