Sha256: 6894f858c530e5fd9f8e7f37725ed8671823e22a88804c1ba766080f07534eed

Contents?: true

Size: 165 Bytes

Versions: 5

Compression:

Stored size: 165 Bytes

Contents

# frozen_string_literal: true

class Tag < ApplicationRecord
  has_many :post_tags, inverse_of: :tag, dependent: :destroy
  has_many :posts, through: :post_tags
end

Version data entries

5 entries across 5 versions & 1 rubygems

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