require 'casino_core/model'

class CASinoCore::Model::ProxyGrantingTicket < ActiveRecord::Base
  attr_accessible :iou, :ticket, :pgt_url
  validates :ticket, uniqueness: true
  validates :iou, uniqueness: true
  belongs_to :granter, polymorphic: true
  has_many :proxy_tickets, dependent: :destroy
end
