Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Setup model association #3

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

[WIP] Setup model association #3

wants to merge 1 commit into from

Conversation

andrepiske
Copy link
Collaborator

Jira FND-3301

This PR sets up some way to get association working with ActiveRecord.

Ideally it'd be as easy as doing a has_many :irontrail_changes

@andrepiske andrepiske changed the title Setup model association [WIP] Setup model association Nov 15, 2024
class Guitar < ApplicationRecord
belongs_to :person
has_many :guitar_parts

# just imagine if rails would be like this!
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the lines below (35-42) are like doing a has_many :irontrail_changes but uglier. This is still quite WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant