Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Graph databases for fun and profit (Geekcamp.sg)

Graph databases for fun and profit (Geekcamp.sg)

vivekprahlad

August 18, 2012
Tweet

More Decks by vivekprahlad

Other Decks in Technology

Transcript

  1. A graph is an abstract representation of a set of

    objects where some pairs of objects are connected by links
  2. But

  3. class User < Neo4j::Rails::Model attr_accessor :password attr_accessible :email, :password, :password_confirmation,

    :pending_account after_save :encrypt_password email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i # add an exact lucene index on the email property property :email, :index => :exact has_one(:avatar).to(Avatar) validates :email, :presence => true,:format => { :with => email_regex } validates :email, :uniqueness => true, :unless => :pending_account? accepts_nested_attributes_for :avatar, :allow_destroy => true end