Sha256: 426de42ba4d2c3d698115f49b54d720661996bc41fe724374777ac0b9d6c0aa1

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

class Video
  include Mongoid::Document
  field :title, type: String
  field :year, type: Integer
  field :release_dates, type: Set
  field :genres, type: Array

  embedded_in :person
  belongs_to :post
  belongs_to :game

  default_scope -> { asc(:title) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-paranoia-2.0.0 spec/app/models/video.rb