class PriorityType < ActiveRecord::Base
            
  #attr_accessible :name, :description, :active, :default
        
  # default scope
  default_scope { where(:active => true) }
  
  def self.default
    where(:default => true).first
  end      

end

class PriorityType < ActiveRecord::Base
            
  #attr_accessible :name, :description, :active, :default
        
  # default scope
  default_scope { where(:active => true) }
  
  def self.default
    where(:is_default => true).first
  end      

end

Fix sql issue with reserved column name 'default'
Fix sql issue with reserved column name 'default'
