We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As an Admin, I want to be able to Create, Read, Update and Destroy courses.
For that, I would like the courses to be managed in the databased via a table courses, that would be mapped by an ActiveRecord model Course.
courses
Course
A Course should have the following attributes :
title
:string
description
capacity
integer
category
string
rails generate model Course title description type:integer category
null: false
The text was updated successfully, but these errors were encountered:
silvadaniele
No branches or pull requests
As an Admin, I want to be able to Create, Read, Update and Destroy courses.
Model Creation
For that, I would like the courses to be managed in the databased via a table
courses
, that would be mapped by an ActiveRecord modelCourse
.A Course should have the following attributes :
title
: the title of the course:string
description
: the description of the course:string
capacity
: the numbers of people who can subscribe to this courseinteger
category
: the category of the coursesstring
Tips
rails generate model Course title description type:integer category
null: false
in the migration file that will be generatedThe text was updated successfully, but these errors were encountered: