Skip to content

Active Record 关联中has_one中的foreign_key使用无效 #98

@tangwen0902

Description

@tangwen0902

https://ruby-china.github.io/rails-guides/association_basics.html#has-one-association-reference
当前使用的rails 4.2.1
按教程中在has_one中加foreign_key是不生效的,在belongs_to中加foreign_key才生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions