Skip to content

Instantly share code, notes, and snippets.

@zapnap
Created April 18, 2010 22:10
Show Gist options
  • Select an option

  • Save zapnap/370584 to your computer and use it in GitHub Desktop.

Select an option

Save zapnap/370584 to your computer and use it in GitHub Desktop.
>> Project.count(:fields => [:owner, :name], :status => 'created', :unique => true)
=> 11011
>> Project.all(:fields => [:owner, :name], :status => 'created', :unique => true).length
=> 2198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment