Skip to content

Can't run migrations from scratch when accepts_nested_attributes_for is in place #21

@fonsecajavier

Description

@fonsecajavier

accepts_nested_attributes_for tries to find the corresponding association, which is non-existent when DB schema is empty and migrations are just about to be run.

For that reason, it throws an error such as ArgumentError: No association found for name some_association'. Has it been defined yet?

What's the best workaround for this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions