Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test
- include DataMapper::Resource
- property :id, Serial
- property :resultpercentage, Float
- property :testrunid, Integer
- property :type, Integer
- storage_names[:default] = "test"
- has n, :arguments
- end
- class Argument
- include DataMapper::Resource
- property :id, Serial
- property :containerid, Integer
- property :name, Integer
- property :intvalue, Integer
- property :txtvalue, String
- storage_names[:default] = "test_arguments_dict"
- belongs_to :test
- end
Add Comment
Please, Sign In to add comment