Skip to content

Instantly share code, notes, and snippets.

@patrick99e99
Created April 28, 2012 18:17
Show Gist options
  • Save patrick99e99/2521023 to your computer and use it in GitHub Desktop.
Save patrick99e99/2521023 to your computer and use it in GitHub Desktop.
class Contact < ActiveRecord::Base
has_many :phones
end
class Phone < ActiveRecord::Base
belongs_to :contact
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment