Skip to content

Instantly share code, notes, and snippets.

@gobijan
Created June 25, 2010 08:57
Show Gist options
  • Save gobijan/452621 to your computer and use it in GitHub Desktop.
Save gobijan/452621 to your computer and use it in GitHub Desktop.
i need to save distances between two sites => a Directions-Model should have something like
id
origin_id
destination_id
distance
How do I set this up via active record because origin and destination are both from the type site?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment