# == Schema Information
#
# Table name: outputs
#
#  id         :integer          not null, primary key
#  title      :string
#  created_at :datetime
#  updated_at :datetime
#

class Output < ActiveRecord::Base
  validates_presence_of :title

  has_many :affordances, dependent: :destroy
  has_many :features, through: :affordances

  validates_presence_of :title
  default_scope { order(:title) }

  def to_s
    title
  end
end
