# to move in project_custom_field
def self.for_all
- where(:is_for_all => true).order('position').to_a
+ where(:is_for_all => true).order(:position).to_a
end
def type_name
@generated_tracker_name.succ!
tracker = Tracker.new(attributes)
tracker.name = @generated_tracker_name.dup if tracker.name.blank?
- tracker.default_status ||= IssueStatus.order('position').first || IssueStatus.generate!
+ tracker.default_status ||= IssueStatus.order(:position).first || IssueStatus.generate!
yield tracker if block_given?
tracker
end