Sha256: bdf2b0a29210ac44834001a79fde58e013c81c137f2b3cf4378a76391b5cba70

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

module NippoCore
  class Report < ApplicationRecord
    belongs_to :user
    belongs_to :group

    validates :user, presence: true
    validates :group, presence: true
    validates :reported_at, presence: true
    validates :body, presence: true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nippo_core-1.0.2 app/models/nippo_core/report.rb
nippo_core-1.0.1 app/models/nippo_core/report.rb
nippo_core-1.0.0 app/models/nippo_core/report.rb
nippo_core-0.3.0 app/models/nippo_core/report.rb
nippo_core-0.2.0 app/models/nippo_core/report.rb
nippo_core-0.1.0 app/models/nippo_core/report.rb