add social schema, associations

This commit is contained in:
Kyle Drake 2014-04-16 15:16:36 -07:00
parent c0b362ea43
commit cff94803a9
10 changed files with 139 additions and 0 deletions

9
models/event.rb Normal file
View file

@ -0,0 +1,9 @@
class Event < Sequel::Model
many_to_one :site
many_to_one :follow
many_to_one :tip
many_to_one :tag
many_to_one :changes
one_to_many :likes
one_to_many :comments
end