Sha256: 3c1931e92a7bff45fe18a1bccea5cba396be18cbd22887aacefdd5ee1d399603

Contents?: true

Size: 215 Bytes

Versions: 23

Compression:

Stored size: 215 Bytes

Contents

module Pulitzer
  class Tag < ActiveRecord::Base
    has_many :post_tags, as: :label, dependent: :destroy
    has_many :versions, through: :post_tags

    validates :name, presence: true, uniqueness: true
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pulitzer-0.1.10 app/models/pulitzer/tag.rb
pulitzer-0.1.9 app/models/pulitzer/tag.rb
pulitzer-0.1.8 app/models/pulitzer/tag.rb