Skip to content

Conversation

felixbuenemann
Copy link
Collaborator

In situations where external tree-based data is cached or otherwise held locally, the ids used by the external service can differ from the database's primary key.

This picks up the work done by @Two9A but adds an additional commit on top to work around bugs with ActiveRecord::Base.reset_column_information, which appears to be ineffective in both activerecord 3.2 and 4.1, which lead to test failures due to the column cache not being invalidated.

Closes #50.

Two9A and others added 2 commits August 4, 2016 02:17
Due to bugs in some versions of activerecord, resetting the column
information doesn't always work, unless the schema cache is cleared.
@felixbuenemann felixbuenemann merged commit 212cd02 into amerine:master Aug 13, 2016
@felixbuenemann felixbuenemann deleted the customize-primary-key branch August 13, 2016 23:22
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.

2 participants