fastladder/fastladder

View on GitHub
app/models/folder.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: folders
#
#  id         :integer          not null, primary key
#  member_id  :integer          default(0), not null
#  name       :string(255)      not null
#  created_on :datetime         not null
#  updated_on :datetime         not null
#

class Folder < ActiveRecord::Base
  belongs_to :member, optional: true
  has_many :subscriptions, dependent: :nullify
  has_many :feeds, through: :subscriptions
end