Open BenRongey opened 5 years ago
Read and follow along with the Phoenix Guide:
Questions:
How do Ecto schemas compare to Rails/ActiveRecord models? Describe some similarities and differences.
What is the Repo module and what does it do?
Repo
What are changesets? What are some of the built-in validations you can use in them?
What's the Phoenix equivalent of rails console?
rails console
Query practice time! Given the example schema used in the tutorial:
schema "users" do field :bio, :string field :email, :string field :name, :string field :number_of_pets, :integer timestamps() end
Read and follow along with the Phoenix Guide:
Questions:
How do Ecto schemas compare to Rails/ActiveRecord models? Describe some similarities and differences.
What is the
Repo
module and what does it do?What are changesets? What are some of the built-in validations you can use in them?
What's the Phoenix equivalent of
rails console
?Query practice time! Given the example schema used in the tutorial: