123456789101112131415161718192021222324252627282930 |
- require 'neo4j'
- class Bucket
- include Neo4j::ActiveNode
- property :name, constraint: :unique
- property :versioning
- property :creation
- property :size
- has_one :out, :region, rel_class: :BucketRegion
- has_one :out, :owner, rel_class: :BucketAccount
- end
- class BucketRegion
- include Neo4j::ActiveRel
- from_class :Bucket
- to_class :Region
- type :region
- end
- class BucketAccount
- include Neo4j::ActiveRel
- from_class :Bucket
- to_class :AwsAccount
- type :owner
- end
|