evemonk / evemonk

Redundant ActiveRecord foreign Key RB-LI1105
Anti-pattern
Major
6 months ago6 months old
Specifying the default value for foreign_key is redundant.
15  belongs_to :client,
16    class_name: "Eve::Character",
17    primary_key: "character_id",
18    foreign_key: "client_id",19    optional: true
20end