Sha256: 5e97efdc2ded81f9b886ae6821b1d3b2ac22b1633406a6bd4d777309f84775d6

Contents?: true

Size: 208 Bytes

Versions: 27

Compression:

Stored size: 208 Bytes

Contents

# frozen_string_literal: true

class Shop
  include Mongoid::Document
  field :title, type: String
  has_and_belongs_to_many :followers, inverse_of: :followed_shops, class_name: "User"
  belongs_to :user
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
mongoid-8.1.9 spec/support/models/shop.rb
mongoid-8.0.9 spec/support/models/shop.rb
mongoid-8.1.8 spec/support/models/shop.rb
mongoid-8.1.7 spec/support/models/shop.rb
mongoid-8.1.6 spec/support/models/shop.rb
mongoid-8.0.8 spec/support/models/shop.rb
mongoid-8.1.5 spec/support/models/shop.rb
mongoid-8.1.4 spec/support/models/shop.rb
mongoid-8.0.7 spec/support/models/shop.rb
mongoid-8.1.3 spec/support/models/shop.rb
mongoid-8.1.2 spec/support/models/shop.rb
mongoid-8.0.6 spec/support/models/shop.rb
mongoid-7.5.4 spec/support/models/shop.rb
mongoid-8.1.1 spec/support/models/shop.rb
mongoid-8.0.5 spec/support/models/shop.rb
mongoid-8.1.0 spec/support/models/shop.rb
mongoid-7.5.3 spec/support/models/shop.rb
mongoid-8.0.4 spec/support/models/shop.rb
mongoid-8.0.3 spec/support/models/shop.rb
mongoid-7.5.2 spec/support/models/shop.rb