Skip to content

Instantly share code, notes, and snippets.

@codeschool-courses
Created August 30, 2011 20:14
Show Gist options
  • Save codeschool-courses/1181891 to your computer and use it in GitHub Desktop.
Save codeschool-courses/1181891 to your computer and use it in GitHub Desktop.
Rails for Zombies 2 - Challenge 2-10
class Tweet < ActiveRecord::Base
has_one :location, dependent: :destroy
end
class Location < ActiveRecord::Base
belongs_to :tweet
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment