-
Notifications
You must be signed in to change notification settings - Fork 0
/
repo.rb
28 lines (24 loc) · 699 Bytes
/
repo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Repo
include DataMapper::Resource
DataMapper::Property::String.length(255)
property :id, Serial, :key => false
property :keynameown, String, :key => true, :unique => true
property :nameown, String
property :keyword, String
property :created, DateTime
property :description, String
property :followers, Integer
property :fork, Boolean
property :forks, Integer
property :language, String
property :name, String
property :owner, String
property :pushed, DateTime
property :size, Integer
def perform
self.update()
end
after :create do
self.perform
end
end