Casecommons/pg_search — pull request #29 by bartonmcguire (2012-03-30 20:26:10+00:00)
Title: Timestamps are assigned to pg_search_documents in multisearch rebuild

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:
https://github.com/Casecommons/pg_search/issues/27