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
Generate a model for the following entities according to the ERD:
Generate the Room model:
rails g model Room name:string city:string price:integer size:integer bed_type:string facilities:text picture:string user:references
Next, generate the Reservation model:
rails g model Reservation nights:integer check_in:date user:references room:references
Then update Model to indicate association:
class Room < ApplicationRecord belongs_to :user has_many :reservation end
The text was updated successfully, but these errors were encountered:
olawale-o
Successfully merging a pull request may close this issue.
Generate a model for the following entities according to the ERD:
Generate the Room model:
Next, generate the Reservation model:
Then update Model to indicate association:
The text was updated successfully, but these errors were encountered: