Blog app - validations, model specs, and n+1 problems
In this project, I add validations to the models, create specs for them, and find and fix N+1 queries problems.
To get a local copy up and running follow these simple example steps.
- Ruby
- Rails
- PostgreSQL
- rspec-rails
- Make sure you have Ruby IRB installed on your computer
- Clone or download this repo on your machine
- Enter project directory
bundle install
# Create user
sudo -u postgres createuser blog -s
# Create the database
rake db:create
# Load the schema
rails db:schema:load
## Apply migration (only if you generate a new migration file)
rails db:migrate
rails s
👤 Ntazama Willy
- GitHub: @ntzwilly
- LinkedIn: @ntazamawilly
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used