Class: ActiveRecord::Lint::MissingIndex

Inherits:
TableIndexPair show all
Defined in:
lib/active_record/lint/reporter.rb

Instance Attribute Summary

Attributes inherited from Pair

#a, #b

Instance Method Summary collapse

Methods inherited from Pair

#<=>, #eql?, #hash, #initialize, #inspect, #pair_name, #to_ary

Constructor Details

This class inherits a constructor from ActiveRecord::Lint::Pair

Instance Method Details

#to_sObject



5
6
7
# File 'lib/active_record/lint/reporter.rb', line 5

def to_s
  "The foreign key '#{index}' is not indexed on '#{table}'."
end