Skip to content

Instantly share code, notes, and snippets.

@atmos
Created October 31, 2008 03:47
Show Gist options
  • Select an option

  • Save atmos/21218 to your computer and use it in GitHub Desktop.

Select an option

Save atmos/21218 to your computer and use it in GitHub Desktop.
class User
include DataMapper::Resource
property :id, Serial
property :name, String, :nullable => false
property :email, String, :nullable => false
property :identity_url, String, :nullable => false
validates_is_unique :identity_url
validates_is_unique :name
validates_is_unique :email
def password_required?; false end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment