Skip to content

Instantly share code, notes, and snippets.

@irjudson
Created August 11, 2009 16:22
Show Gist options
  • Save irjudson/165936 to your computer and use it in GitHub Desktop.
Save irjudson/165936 to your computer and use it in GitHub Desktop.
class Archive
include DataMapper::Resource
property :archive_id, Serial
property :archive_name, String, :nullable => false
property :archive_info, String, :nullable => false
property :archive_url, String, :nullable => false
def self.default_repository_name
:legacy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment