class InstitutionServiceStep < ActiveRecord::Base
  attr_accessible :cost, :description, :documents, :duration, :institution_service_id, :name,
    :observations, :priority, :requirements, :response_time, :responsible, :schedule,
    :institution_service_attachments_attributes

  # Associations
  belongs_to :institution_service

  has_many :institution_service_attachments, as: :attachable
  accepts_nested_attributes_for :institution_service_attachments, allow_destroy: true

  # Validations
  validates :name, :description, :schedule, presence: true
end
