class BenchmarkType < ActiveRecord::Base
  default_scope { order("#{self.table_name} ASC") }

  has_many :benchmark_runs, dependent: :destroy
  belongs_to :repo

  validates :category, presence: true, uniqueness: { scope: [:repo_id, :script_url] }
  validates :unit, presence: true
  validates :script_url, presence: true
end

class BenchmarkType < ActiveRecord::Base
  default_scope { order("#{self.table_name}.category ASC") }

  has_many :benchmark_runs, dependent: :destroy
  belongs_to :repo

  validates :category, presence: true, uniqueness: { scope: [:repo_id, :script_url] }
  validates :unit, presence: true
  validates :script_url, presence: true
end

Add missing column in default scope.
Add missing column in default scope.
