Ruby 3.3.4
Initial setup:
- docker compose build
- docker compose run web rails db:create
- docker compose run
Usefull comands
- docker compose run
- docker exec -it <name_docker> sh (for ssh)
- rails console
- article = Article.new(title: "Hello Rails", body: "I am on Rails!")
- article.save
- rails generate model Comment commenter:string body:text article:references
- rails db:migrate