subati
Where is the schema file of phx.gen.schema
Hi,
I am trying to follow the Phoenix 1.4.6 guide’s Ecto section. I tried to create a schema called User using “mix phx.gen.schema” followed by “mix ecto.migrate” commands. It created the migration file follwed by the actual table in the database. But I can’t seem to find the schema file.
The guide says Ecto — Phoenix v1.8.8 that Phoenix generates the schema for us.
Here is the command output
ca-STivare-mac-2::~/workspace/kubera $ mix phx.gen.schema User users userId:string email:string phoneNumber:string firstName:string lastName:string
-
creating lib/kubera/user.ex
-
creating priv/repo/migrations/20190609213039_create_users.exs
Remember to update your repository by running migrations:
$ mix ecto.migrate
ca-STivare-mac-2::~/workspace/kubera $ mix ecto.migrate
Generated kubera app
[info] == Running 20190609213039 Kubera.Repo.Migrations.CreateUsers.change/0 forward
[info] create table users
[info] == Migrated 20190609213039 in 0.0s
ca-STivare-mac-2::~/workspace/kubera $
Is there anything I am missing?
Thanks
Sudheer
First Post!
kokolegorille
It seems to be here…
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









