Sha256: 0a7d024c9bf5efc63e98b0b9e0fe62241dec8627f1d99e532ccd9337b18beff8

Contents?: true

Size: 245 Bytes

Versions: 10

Compression:

Stored size: 245 Bytes

Contents

class Report < ApplicationRecord
  belongs_to :user
  belongs_to :clearance
  belongs_to :city
  has_many :ratings

  validates :title, presence: true
  validates :body, presence: true

  include ScopableByCity
  include ScopableByClearance
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authz-0.0.5 spec/dummy/app/models/report.rb
authz-0.0.4 spec/dummy/app/models/report.rb
authz-0.0.3 spec/dummy/app/models/report.rb
authz-0.0.2 spec/dummy/app/models/report.rb
authz-0.0.1 spec/dummy/app/models/report.rb
authz-0.0.1.alpha5 spec/dummy/app/models/report.rb
authz-0.0.1.alpha4 spec/dummy/app/models/report.rb
authz-0.0.1.alpha3 spec/dummy/app/models/report.rb
authz-0.0.1.alpha2 spec/dummy/app/models/report.rb
authz-0.0.1.alpha spec/dummy/app/models/report.rb