Skip to content

Instantly share code, notes, and snippets.

@jaigouk
Created January 8, 2009 05:44
Show Gist options
  • Select an option

  • Save jaigouk/44599 to your computer and use it in GitHub Desktop.

Select an option

Save jaigouk/44599 to your computer and use it in GitHub Desktop.
# referenced API.
# http://merbapi.com/classes/Merb/BootLoader/BuildFramework.html
class Tweet
include DataMapper::Resource
property :id, Serial
property :message, Text, :length => 255, :nullable => false, :unique => true
property :name, String, :length => 20, :nullable => false
property :category, String, :length => 20
property :link, String
property :date, String,:nullable => false, :index => true
property :created_at, DateTime
property :updated_at, DateTime
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment