rails g migration RemoveFieldFromTable field:type
rails g migration RenameBreedToBreedNameInCats
rake db:setup
rake db:migrate
rake db:seed
rake db:drop
rake routes
heroku create
heroku run rake db:migrate
heroku run rake db:seed
heroku maintenance:on
heroku maintenance:off
heroku git:remote -a project
git remote set-url heroku <new-url>
git remote rm heroku
git push heroku master
git push --force heroku master
git remote -v
http://blog.planetargon.com/entries/easily-add-canonical-urls-to-your-rails-app
rake haml:erb2haml
https://github.com/rcs/google-tag-manager-rails
Add to the Gemfile
gem 'google-tag-manager-rails'
Then run:
bundle install
In config/environments/production.rb :
add
GoogleTagManager.gtm_id = "GTM-XXXX" # Where GTM-XXXX is your container ID from Google Tag Manager
In app/views/layouts/application.html.erb:
add
%body
= google_tag_manager
...