Foreign Keys in ActiveRecord

Hello there,

I'm a beginner in Rails, so forgive me if this question is too dumb ;p Does Rails provide any helper/linecode to create a foreign key in the database (via migration)?

No - the official position has never been in favour of database level constraints. The foreigner gems adds migration helpers for adding foreign keys