Sha256: e69113bedc8efdd6349d7f61f4f7a2ab2d225cd84df7999be136f3de5ec051bd
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true class User include Mongoid::Document has_one :device has_many :posts field :username end class Device include Mongoid::Document belongs_to :user field :uuid end class Post include Mongoid::Document belongs_to :user has_and_belongs_to_many :tags field :title end class Tag include Mongoid::Document has_and_belongs_to_many :posts, fully_load: true field :name end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoload-0.0.3 | spec/db/models.rb |