Skip to content

Instantly share code, notes, and snippets.

@stubotnik
Created July 14, 2014 10:41
Show Gist options
  • Save stubotnik/44efef79e4df8e668786 to your computer and use it in GitHub Desktop.
Save stubotnik/44efef79e4df8e668786 to your computer and use it in GitHub Desktop.
UPDATE FROM in AR
Baseline.
joins{runner}.
where{runner.event_id.in [123, 456]}.
update_all("price = runners.price")
# => The multi-part identifier "runners.price" could not be bound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment