Sha256: 64bf9dfc786fd23c119109eb5b4339a3affae032773981df371a6eac3b3e72fe
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 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 field :name end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoload-0.0.2 | spec/db/models.rb |
mongoload-0.0.1 | spec/db/models.rb |