Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save solnic/292563 to your computer and use it in GitHub Desktop.
Save solnic/292563 to your computer and use it in GitHub Desktop.
class User
include DataMapper::Resource
property :id, Serial
property :foo, String, :unique_index => :foo_bar
property :bar, String, :unique_index => :foo_bar
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment