Please sign in to comment.
define foreign_key as an alias of primary_key_name to maintain backwa…
…rd compatibility Method primary_key_name is now deprecated and the replacement foreign_key is newly introduced in active_record 3.1.0. While the new method should be used for rails 3.1.x or later, the old one is still required for rails 3.0.x.
- Loading branch information...