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

Accepts association with :inverse_of set to false and non standard foreign key #1106

Merged
merged 1 commit into from
Nov 27, 2019
Merged

Conversation

inkstak
Copy link
Contributor

@inkstak inkstak commented Jun 5, 2018

Shoulda-matchers failed to validate such association:

has_many :children, foreign_key: :ancestor_id, inverse_of: false

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

.rubocop.yml: Lint/EndAlignment has the wrong namespace - should be Layout
.rubocop.yml: Lint/EndAlignment has the wrong namespace - should be Layout
.rubocop.yml: Lint/DefEndAlignment has the wrong namespace - should be Layout
.rubocop.yml: Lint/BlockAlignment has the wrong namespace - should be Layout
.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)

@inkstak
Copy link
Contributor Author

inkstak commented Nov 27, 2019

Hello, is there anything missing for this PR to be merged?

@mcmire
Copy link
Collaborator

mcmire commented Nov 27, 2019

@inkstak Sorry! I've been very busy lately. This looks good though, so I'll merge it now.

@mcmire mcmire merged commit 65e13ae into thoughtbot:master Nov 27, 2019
@guialbuk guialbuk mentioned this pull request Dec 26, 2019
guialbuk added a commit that referenced this pull request Jan 9, 2020
### Features

* Add support for `optional: false` in `belongs_to` associations. ([#1237])
* Add support for associations with `inverse_of: false` and non-standard foreign key ([#1106])

### Bug fixes
* Fix typos in documentation of `allow_values` ([#1241])
* Fix appraisal command in CONTRIBUTING.md file ([#1253])

### Improvements
* Remove minitest reporters dependency ([#1251])
* Development dependency updates

[#1106]: #1106
[#1237]: #1237
[#1241]: #1241
[#1253]: #1253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants