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

Timestamps are assigned to pg_search_documents in multisearch rebuild #29

Closed
wants to merge 1 commit into from

Conversation

bartonmcguire
Copy link
Contributor

Rails' timestamps migration helper now defaults to :null => false. This previously caused the multisearch rebuild rake tast to throw a not-null violation as it hasn't been assigning timestamps.

This simply adds the assignment of these timestamps, as the current time, to the sql injection statement in the rake task.

Alternative solution could be to amend the migration to create null-friendly timestamp columns, however assigning timestamps from the beginning seems the better way to go.

Relates to this issue:
#27

@nertzy
Copy link
Collaborator

nertzy commented Mar 31, 2012

Thanks! I left a couple comments on your commit. Could you update it?

@nertzy
Copy link
Collaborator

nertzy commented Mar 31, 2012

I merged your solution in: d0c8949
and made some edits: 56fe0fb

Thanks!

@nertzy nertzy closed this Mar 31, 2012
@bartonmcguire
Copy link
Contributor Author

Edits look good. Thanks for the merge.

Overall kudos for what's been a very useful gem!

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

2 participants