This is a simple project i made, while learning the basics of RoR, following the MVC structure.
- Ruby version 3.3.0
- Ruby on Rails version 7.1.3
- SQLite3
- TailwindCSS v3.4.1 (Play CDN)
rails s
rails g controller <route>
Types of data that can be used:
- string
- text
- integer
- float
- decimal
- boolean
- binary
- date
- time
- datetime
- timestamp
rails g scaffold <table_name> <table_column>:<data-type>
Example:
rails scaffold user first_name:string last_name:string email:string phone:string
To push the new migration file generated, use following command:
rails db:migrate