Skip to content

Add foreign key functionality to cached relations - #28

Open
tslater3 wants to merge 2 commits into
jasonayre:masterfrom
tslater3:add-foreign-key-functionality-to-cached-relations
Open

Add foreign key functionality to cached relations#28
tslater3 wants to merge 2 commits into
jasonayre:masterfrom
tslater3:add-foreign-key-functionality-to-cached-relations

Conversation

@tslater3

Copy link
Copy Markdown

Currently, if attempting to use foreign_key option on a cached relation a "ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column census_surveys.foreign_key does not exist" is thrown. This is due to the foreign_key key value pair still being a part of options when passed to cached_find_by.

  1. Removes foreign_key key/value pair from options prior to merge

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.

1 participant