This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
Rails version
-
Configuration
- Make sure you are using app's ruby version..
rvm install 2.7.0
andrvm use 2.7.0
bundle install
rails server
orrails s -b [port number]
- Make sure you are using app's ruby version..
-
Database creation
- To initialize a Database, create a scaffold with
rails generate scaffold {table name} [field_name]:[type]
- Then migrate db executing
rails db:migrate
-
create migration
rails generate migration create_[table name plural]
-
On the migration file inside migrate folder, update create class adding fields
-
Then migrate db executing
rails db:migrate
-
If want to update the table, execute
rails db:rollback
to drop the created table in the migration and add fields on the migrate field and the rerunrails db:migrate
-
Best practices indicate to generate a new migration file firts each time db changes needed
rails generate migration add_[field name]_to_[table name]
, and then on the migration file,add_column :[table name], :[new field name], :[type]
-
Run
rails db:migrate
-
Create model file
- To initialize a Database, create a scaffold with
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
Production site is manage by Heroku