how to create foreign key in rails code example Example: activerecord references foreign key t.references :user, foreign_key: true