Guest User

Untitled

a guest
May 21st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. class Url
  2. include Friendly::Document
  3.  
  4. attribute :group_id, Friendly::UUID
  5. attribute :url, String
  6. attribute :note, String
  7.  
  8. indexes :group_id
  9. indexes :created_at
  10. indexes :url
  11. caches_by :id
  12. end
  13.  
  14. class Group
  15. include Friendly::Document
  16.  
  17. attribute :puburl, String
  18. attribute :password, String
  19. attribute :name, String
  20. attribute :description, String
  21.  
  22. indexes :puburl
  23. indexes :name
  24. indexes :created_at
  25. has_many :urls
  26. caches_by :id
  27. end
Add Comment
Please, Sign In to add comment