Replace sunspot/solr with pg_search
Working on configuration of models for pg_search
Restore secret token file
Handle lookups using nested attributes. Improve the way ownership is validated.
Return to prev impl of lookup handling to avoid duplicates, but improve it.
Don't include 'name' in source and domain labels
Delete now-unused helpers
Remove sunspot loading from spec helper
Remove code commented out in last commit
Replace around callbacks for dom/source orphaning with after callbacks. Get model spec passing.
Move AR query to relevant model by making orphan check class method. Prevent method call if no change.
Don't use multisearch. Set up columns for sanitized searchable and sortable fields.
Add after_save callback to populate or update clean fields
Change callback to trigger after validation so will actually save clean fields
Make sure original field is not nil before attempting to set clean field value
Set clean name before saving source
Set clean domain field before save
Add failsafe check that name not nil
Move clean field populate to before_save and don't test sanitizer at same time
Whole record scope