depot
application from Agile Web Development with Rails 7 by Sam Ruby.PDF Page: 121 Book Page: 105
Use bin/dev
to run the application locally. (Not rails s
)
Use bin/rails dbconsole
to access the SQLite database.
Use bin/rails test
to run the tests.
Use bin/rails test:models
to run the tests for the models.
Use bin/rails db:test:prepare
to prepare the database for testing. (usually done automatically)
Ruby version - 3.1.1
Rails version - 7.0.2.3