---
# System prepended metadata

title: Notes for P4L3 10/14/21

---

# Notes for P4L3 10/14/21

delete "/events/:id", to: "events#destroy"

equivalent to

resources :events, only: [:destroy]

When using a generator, like below:
---rails g migration addAttendedToUserEvents attended:boolean---
Is there a way to run rails db:migrate on the same line?

Nope! You'll want to make sure you check the migration file first before you run it to make sure there weren't any typos and that everything you wanted in there is actually there :) 

https://github.com/DakotaLMartinez/ruby_on_rails_friendship_demo