Guest User

Untitled

a guest
May 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class Test
  2. include DataMapper::Resource
  3.  
  4. property :id, Serial
  5.  
  6. property :resultpercentage, Float
  7. property :testrunid, Integer
  8. property :type, Integer
  9.  
  10. storage_names[:default] = "test"
  11.  
  12. has n, :arguments
  13. end
  14.  
  15. class Argument
  16. include DataMapper::Resource
  17.  
  18. property :id, Serial
  19.  
  20. property :containerid, Integer
  21. property :name, Integer
  22. property :intvalue, Integer
  23. property :txtvalue, String
  24.  
  25. storage_names[:default] = "test_arguments_dict"
  26.  
  27. belongs_to :test
  28. end
Add Comment
Please, Sign In to add comment