- Please fork and clone this repo.
- Start at section 3.2 of the Rails Guides here: https://guides.rubyonrails.org/getting_started.html
- Instead of
Article
andComment
models, please create an app with the following.
has_many :students
Database Columns
course_name
, string (e.g. - "SEI")course_code
, integer (e.g. - 3)
belongs_to :course
first_name
, stringlast_name
, stringemail
, stringcourse_id
, integer (this will be automatically generated when you create the student model)
Your Course
resource should have full CRUD. Your Student
resource should have Create and Delete functionality.
Instead of the Blog app, create a new pirates_app
like so: rails new pirates_app -d postgresql