Sha256: db8cb7a6360fcb2b60b23cdc9cac87d84b85c2b116c109736a2c1c71452d1f84

Contents?: true

Size: 231 Bytes

Versions: 4

Compression:

Stored size: 231 Bytes

Contents

module Hatchy
  class CategoryFollower < ActiveRecord::Base
    belongs_to :category, class_name:'Hatchy::Category'
    belongs_to :user,     class_name:'Hatchy::User'
    validates :category,  uniqueness: {scope: :user}
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre app/models/hatchy/category_follower.rb
hatchy-0.0.7.pre app/models/hatchy/category_follower.rb
hatchy-0.0.6.pre app/models/hatchy/category_follower.rb
hatchy-0.0.5.pre app/models/hatchy/category_follower.rb