Skip to content

Instantly share code, notes, and snippets.

@maxschulze
Created November 17, 2010 05:42
Show Gist options
  • Save maxschulze/703037 to your computer and use it in GitHub Desktop.
Save maxschulze/703037 to your computer and use it in GitHub Desktop.
class Linkedin::Profile < ActiveRecord::Base
set_table_name 'linkedin_profiles'
belongs_to :user, :class_name => "Linkedin::User"
has_many :positions
has_many :educations
belongs_to :industry
belongs_to :location
validates :first_name, :presence => true
validates :last_name, :presence => true
validates :user, :presence => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment