Sunrise Project Documentation :: How to convert one Project in another Project

 Date:  28 April to 30 April  :: Kapil sir give this sunrise project for change the version of ruby and rails and at last kapil sir give me dump file and i required to run this project and export it in the pdf file.

.........................................................................................................................

 Step 01:: Extract the Project

 Step 02:: Run the Project after reducing errors at the same version

 Step 03::  Change the dependencies in the Gemfile and Run the bundle at New Ruby Version

 Step 04::  Change the dependencies in the Gemfile and Run the bundle at New Rails Version

 Step 05::  rake db:create

 Step 06::  rake db:migrate

 Step 07::  Git Init the project with git init command at terminal and make the commits by time to time after that send that project to the git repository to track all errors and commits about the project.

 Step 08: database name change

  Step 09:  Have Screenshots time to time and post that screenshots at the folder in computer and in gmail also if required at blog also.

Step 10: After rake db:migrate download the latest dump file  and import it.


.....................................................................................................................................................................

Note  01 : 
If Error in migration Version : change the version and add 0.6 in last in every migration file

Note  02 : 
If Error in  duplication table error :
drop the database :: rake db:drop 
rake db : schema load 
rake db: create 
rake db:migrate

and run the command it is also used:::: Command for drop the database import dump

psql sunrise_development2 < /home/dwijendra/Downloads/latest.dump

psql -h localhost -d sunrise_development2 -U postgres -f /home/dwijendra/Downloads/latest.dump








Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5