Our module definition will be Vocial.Votes (not Vocial.Votes.Votes), and in it we'll want to import Ecto.Query so we can build out any special queries that may be required. We'll also want to alias in our Repo, Poll, and Option modules, just like we did in our IEx window. So, our starting skeleton should look like this:
defmodule Vocial.Votes do import Ecto.Query, warn: false alias Vocial.Repo alias Vocial.Votes.Poll alias Vocial.Votes.Optionend