distinct(value = true)
Instance Public methods
Specifies whether the records should be unique or not. For example:
1 2 3 4 5 6 7 8 | User.select( :name ) # => Might return two records with the same name User.select( :name ).distinct # => Returns 1 record per distinct name User.select( :name ).distinct.distinct( false ) # => You can also remove the uniqueness |
Please login to continue.