class Income < ApplicationRecord
  belongs_to :member

  def self.total
    Income.where(included: true).sum(&:amount)
  end
end