File: //usr/local/rvm/gems/ruby-2.5.9/doc/activerecord-6.1.4.1/ri/ActiveRecord/QueryMethods/distinct-i.ri
U:RDoc::AnyMethod[iI"
distinct:ETI"(ActiveRecord::QueryMethods#distinct;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HSpecifies whether the records should be unique or not. For example:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"User.select(:name)
;TI"3# Might return two records with the same name
;TI"
;TI"!User.select(:name).distinct
;TI"*# Returns 1 record per distinct name
;TI"
;TI"1User.select(:name).distinct.distinct(false)
;TI")# You can also remove the uniqueness;T:@format0:
@fileI"0lib/active_record/relation/query_methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(value = true);T@FI"QueryMethods;TcRDoc::NormalModule00