Sha256: 214b31b04a705c1cb42c9f11abaf535074a32affaf312cd28a497319d0be6e46

Contents?: true

Size: 199 Bytes

Versions: 11

Compression:

Stored size: 199 Bytes

Contents

module Storytime
  class Tag < ActiveRecord::Base
    has_many :taggings, dependent: :destroy
    has_many :posts, through: :taggings

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
storytime-1.2.0 app/models/storytime/tag.rb
storytime-1.1.1 app/models/storytime/tag.rb
storytime-1.0.7 app/models/storytime/tag.rb
storytime-1.0.6 app/models/storytime/tag.rb
storytime-1.0.5 app/models/storytime/tag.rb
storytime-1.0.2 app/models/storytime/tag.rb
storytime-1.0.1 app/models/storytime/tag.rb
storytime-1.0.0 app/models/storytime/tag.rb
storytime-0.0.4 app/models/storytime/tag.rb
storytime-0.0.2 app/models/storytime/tag.rb
storytime-0.0.1 app/models/storytime/tag.rb