Show
Destroy
An entry
Get it down. Make it good. Share it.
Title
Text
Assuming your Repo and User are aliased, this command returns a count of users: Aliased, like: ``` NameOfProject.Repo ``` ``` NameOfProject.Accounts.User ``` Returning a count of users: ``` Repo.aggregate(User, :count, :id) ``` This is the same as `User.count` in Ruby/Rails.
Status
idea
draft
release
personal
Series
Part of a Series?
Bitcoin
On Work
Phoenix Trello Tutorial
Civics
Re Email Address
Tags
ruby
×
elixir
×
code
×
+
Slug
Url
Image 1
Image 2
Image 3
Visible
Date