Sha256: ba288ab7f823b2fee388b81ddb008ad16c0c5ddf88a04b4fb0df2f1fcb02e9fa

Contents?: true

Size: 192 Bytes

Versions: 22

Compression:

Stored size: 192 Bytes

Contents

# frozen_string_literal: true

class Comment < ActiveRecord::Base
  belongs_to :post, inverse_of: :comments
  belongs_to :author, class_name: 'BaseUser'

  validates :post, presence: true
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bullet-7.0.7 spec/models/comment.rb
bullet-7.0.6 spec/models/comment.rb
bullet-7.0.5 spec/models/comment.rb
bullet-7.0.4 spec/models/comment.rb
bullet-7.0.3 spec/models/comment.rb
bullet-7.0.2 spec/models/comment.rb
bullet-7.0.1 spec/models/comment.rb
bullet-7.0.0 spec/models/comment.rb
bullet-6.1.5 spec/models/comment.rb
bullet-6.1.4 spec/models/comment.rb
bullet-6.1.3 spec/models/comment.rb
bullet-6.1.2 spec/models/comment.rb
bullet-6.1.1 spec/models/comment.rb
bullet-6.1.0 spec/models/comment.rb
bullet-6.0.2 spec/models/comment.rb
bullet-6.0.1 spec/models/comment.rb
bullet-6.0.0 spec/models/comment.rb
bullet-5.9.0 spec/models/comment.rb
bullet-5.8.1 spec/models/comment.rb
bullet-5.8.0 spec/models/comment.rb