# == Schema Information
#
# Table name: dispatch_summaries
#
#  row_id         :integer          primary key
#  operation_id   :integer
#  operation_year :string
#  operation_name :string
#  sum            :decimal(, )
#

class DispatchSummary < ActiveRecord::Base
	self.primary_key = "row_id"

	def self.operation(operation_id)
		DispatchSummary.where(operation_id: operation_id)
	end

	def self.get_all
		DispatchSummary.all
	end

end
