Method: AnnotateModels.index_using_info
- Defined in:
- lib/annotate/annotate_models.rb
.index_using_info(index, format = :default) ⇒ Object
403 404 405 406 407 408 409 410 |
# File 'lib/annotate/annotate_models.rb', line 403 def index_using_info(index, format = :default) value = index.try(:using) && index.using.try(:to_sym) if !value.blank? && value != :btree " #{INDEX_CLAUSES[:using][format]} #{value}" else '' end end |