Skip to content

Instantly share code, notes, and snippets.

@jozr
Last active October 26, 2015 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozr/651866ab03269c96a043 to your computer and use it in GitHub Desktop.
Save jozr/651866ab03269c96a043 to your computer and use it in GitHub Desktop.
SELECT financing_applications.id
FROM financing_applications
JOIN properties ON financing_applications.property_id = properties.id
JOIN addresses ON properties.address_id = addresses.id
WHERE addresses.county = 'Los Angeles'
AND financing_applications.notice_to_proceed_sent_at IS NULL
AND financing_applications.status != 'declined'
AND financing_applications.status != 'withdrawn'
AND financing_applications.application_document_process_identifier IS NOT NULL;
@jozr
Copy link
Author

jozr commented Oct 7, 2015

    def rerun_pre_countersignature_recording_for_la!(params = {})
      rerun_processes!(params) { |app|
        app.within_la_county? && !app.notice_to_proceed_sent_at && !app.terminated?
      }
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment