-
Notifications
You must be signed in to change notification settings - Fork 1
Home
CassieW edited this page Nov 4, 2015
·
3 revisions
git checkout "branch_name"
- git checkout master
- git checkout -b branch_name
- git add .
- git status
- git commit -m "comments go here!"
- git push -u origin karma_kai
- git checkout master
- git merge karma_kai
- git push -u origin master
- heroku login
- git push heroku master
- heroku run rake db:migrate
- heroku ran rake db:seed
- heroku apps:info
- bundle install
- rails server -b $IP -p $PORT
- git checkout master
- git pull // side note: "git pull" does fetch + merge for you.
- git checkout karma_kai // may have to do "git checkout -f karma_kai"
- git merge master // merge changes on master to branch
- git push -u origin karma_kai
- heroku login
- heroku apps:rename newname --app oldname
- git remote rm heroku // next 2 lines updates remotes
- heroku git:remote -a newname
- rake db:migrate:down VERSION=20151203124
- rake destroy scaffold User
- git add -u
- git commit -am "comments"
- git push -u origin master
- git add -A :/
- git commit -am "comments"
- git push -u origin karma_kai
- rails generate migration add_points_to_users points:integer
- rake db:migrate
- rails console
- User.create(name: "Kai Kuroda",email: "asdf", points: 0)
- exit
how to fix ActiveRecord::PendingMigrationError after changing migration files [rake aborted! StandardError: An error has occurred, this and all later migrations canceled:]
- //If you DON'T mind erasing data:
- rake db:drop
- rake db:create
- rake db:migrate
- heroku pg:reset DATABASE --app karma2