Sha256: 6ef0ae71d628d8c17e14754144e0e125e24a7abe5619387798d7101746a7e8cd

Contents?: true

Size: 1.54 KB

Versions: 2

Compression:

Stored size: 1.54 KB

Contents

---
:fixtures:
  :datasets:
    :myset:
      :definition:
        - :name: test dataset
          :list:
            - 1
            - :body: 
            - 3
          :nested:
            :body:
        - "two" 
      :rules:
        :body: :body

  :rules:
    :body: 
      :proc: "SecureRandom.urlsafe_base64(64)"
    :preserve_body:
      :preserve: true
      :proc: "SecureRandom.urlsafe_base64(64)"
  :models:
    :type: :mongoid
    :order:
      - :types
      - :posts
      - :comments
    :definitions:
      :types:
        :class: Type
        :unicity: :name
        :collection:
          - :attributes:
              :name: News
              :description: A fresh news
          - :attributes:
              :name: Reaction
              :description: An instant reaction
      :posts:
        :rules:
          :body: :preserve_body
        :class: Post
        :unicity: :title
        :collection:
          - :attributes:
              :title: First post Title
              :body: First Post Body
              # :have: 
              #   :linked: :types
              #   :by: :type
              #   :search_by:
              #      :name: News
          - :attributes:
              :title: Second post Title
              :body: 
      :comments:
        :class: Comment
        :unicity: :id
        :collection:
          - :attributes:
              :name: test name
              :message: test message
            :belong:
              :to: :posts
              :by: :comments
              :search_by:  
                :title: First post Title

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fixturizer-0.4.4 samples/config/rules.yml
fixturizer-0.4.3 samples/config/rules.yml