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

Add the ability to use a custom serializer for storing the object in the database #164

Merged
merged 2 commits into from Dec 28, 2012
Merged

Conversation

bradleypriest
Copy link
Contributor

This is a proof of concept. I've moved the hardcoded YAML calls out of the code and made the serializer a config option.

My specific use-case is to be able to store these changes in an hstore column in Postgres.

Thoughts?

@TylerRick
Copy link
Contributor

+1, Looks good to me!

That's a good idea to store it in an hstore column. That would make it a lot easier to query for only the versions that made changes to a specific attribute, wouldn't it?

@batter batter merged commit 197984a into paper-trail-gem:master Dec 28, 2012
batter pushed a commit that referenced this pull request Dec 28, 2012
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.

None yet

3 participants