Sha256: b13e3ee65de1e29127fd50ee1c30d7b9f37aa7274d7833a844039d27306699f5

Contents?: true

Size: 224 Bytes

Versions: 5

Compression:

Stored size: 224 Bytes

Contents

# frozen_string_literal: true

class PostTag < ApplicationRecord
  belongs_to :post, inverse_of: :post_tags
  belongs_to :tag,  inverse_of: :post_tags

  validates :post, presence: true
  validates :tag,  presence: true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin_blaze_theme-0.7.4 spec/dummy/app/models/post_tag.rb
activeadmin_blaze_theme-0.7.0 spec/dummy/app/models/post_tag.rb
activeadmin_blaze_theme-0.6.2 spec/dummy/app/models/post_tag.rb
activeadmin_blaze_theme-0.6.0 spec/dummy/app/models/post_tag.rb
activeadmin_blaze_theme-0.5.16 spec/dummy/app/models/post_tag.rb