Skip to content

Instantly share code, notes, and snippets.

@manters2000
Last active January 21, 2016 06:43
Show Gist options
  • Select an option

  • Save manters2000/1803365be5b99c6ddc62 to your computer and use it in GitHub Desktop.

Select an option

Save manters2000/1803365be5b99c6ddc62 to your computer and use it in GitHub Desktop.

Revisions

  1. manters2000 revised this gist Jan 21, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -26,5 +26,5 @@ rails generate migration add_password_digest_to_users password_digest:string
    bundle exec rake db:migrate:reset
    bundle exec rake db:seed # Load sample data from seeds.rb file

    # do not install gem in production
    # do not install gem from production
    bundle install --without production
  2. manters2000 revised this gist Jan 21, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ rails generate integration_test site_layout # generate integration test like for
    rails generate controller Users new
    rails destroy controller AccountActivations
    rails generate model User name:string email:string
    rails generate uploader Picture
    rails generate uploader Picture
    bundle exec rake db:migrate
    bundle exec rake db:migrate:status
    bundle exec rake db:rollback # undo db migration
    @@ -24,4 +24,7 @@ rails generate migration add_password_digest_to_users password_digest:string

    # Remove/ Reset Database
    bundle exec rake db:migrate:reset
    bundle exec rake db:seed # Load sample data from seeds.rb file
    bundle exec rake db:seed # Load sample data from seeds.rb file

    # do not install gem in production
    bundle install --without production
  3. manters2000 revised this gist Jan 13, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ rails destroy controller AccountActivations
    rails generate model User name:string email:string
    rails generate uploader Picture
    bundle exec rake db:migrate
    bundle exec rake db:migrate:status
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox # any modification will be rolled back
    bundle exec rake test:models # test for models
  4. manters2000 revised this gist Jan 13, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@ rails generate integration_test site_layout # generate integration test like for
    rails generate controller Users new
    rails destroy controller AccountActivations
    rails generate model User name:string email:string
    rails generate uploader Picture
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox # any modification will be rolled back
  5. manters2000 revised this gist Jan 11, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ bundle exec guard init
    bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
    rails destroy controller AccountActivations
    rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
  6. manters2000 revised this gist Jan 8, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,5 @@ rails generate migration add_index_to_users_email
    rails generate migration add_password_digest_to_users password_digest:string

    # Remove/ Reset Database
    bundle exec rake db:migrate:reset
    bundle exec rake db:migrate:reset
    bundle exec rake db:seed # Load sample data from seeds.rb file
  7. manters2000 revised this gist Dec 29, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,7 @@ rails console --sandbox # any modification will be rolled back
    bundle exec rake test:models # test for models

    rails generate migration add_index_to_users_email
    rails generate migration add_password_digest_to_users password_digest:string
    rails generate migration add_password_digest_to_users password_digest:string

    # Remove/ Reset Database
    bundle exec rake db:migrate:reset
  8. manters2000 revised this gist Dec 28, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -15,3 +15,6 @@ bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox # any modification will be rolled back
    bundle exec rake test:models # test for models

    rails generate migration add_index_to_users_email
    rails generate migration add_password_digest_to_users password_digest:string
  9. manters2000 revised this gist Dec 28, 2015. No changes.
  10. manters2000 revised this gist Dec 28, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,4 @@ rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox # any modification will be rolled back
    bundle exec rake test db:models # test for models
    bundle exec rake test:models # test for models
  11. manters2000 revised this gist Dec 28, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,4 @@ rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox # any modification will be rolled back
    bundle exec rake test db:models # test for models
  12. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,4 @@ rails generate controller Users new
    rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox
    rails console --sandbox # any modification will be rolled back
  13. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -13,3 +13,4 @@ rails generate controller Users new
    rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
    rails console --sandbox
  14. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -12,3 +12,4 @@ rails generate integration_test site_layout # generate integration test like for
    rails generate controller Users new
    rails generate model User name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:rollback # undo db migration
  15. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -11,3 +11,4 @@ bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
    rails generate model User name:string email:string
    bundle exec rake db:migrate
  16. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ bundle exec guard init
    bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
    rails generate model User
    rails generate model User name:string email:string
  17. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ bundle exec guard init
    bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
    rails generate model Users new
    rails generate model User
  18. manters2000 revised this gist Dec 27, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -10,3 +10,4 @@ bundle exec guard init
    bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
    rails generate model Users new
  19. manters2000 revised this gist Dec 23, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -9,3 +9,4 @@ bundle exec rake test
    bundle exec guard init
    bundle exec guard
    rails generate integration_test site_layout # generate integration test like for 'site layout'
    rails generate controller Users new
  20. manters2000 revised this gist Dec 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@ rails console
    bundle exec rake test
    bundle exec guard init
    bundle exec guard
    rails generate integration_test # generate integration test like for 'site layout'
    rails generate integration_test site_layout # generate integration test like for 'site layout'
  21. manters2000 revised this gist Dec 23, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,5 @@ bundle exec rake db:migrate
    rails console
    bundle exec rake test
    bundle exec guard init
    bundle exec guard
    bundle exec guard
    rails generate integration_test # generate integration test like for 'site layout'
  22. manters2000 revised this gist Dec 19, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,5 @@ rails generate Scaffold name:string email:string
    bundle exec rake db:migrate
    rails console
    bundle exec rake test
    bundle exec guard init
    bundle exec guard
  23. manters2000 revised this gist Dec 19, 2015. No changes.
  24. manters2000 revised this gist Dec 19, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,5 @@ rails new app
    rails server
    rails generate Scaffold name:string email:string
    bundle exec rake db:migrate
    rails console
    rails console
    bundle exec rake test
  25. manters2000 revised this gist Dec 19, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,5 @@ Common Rails Commands
    rails new app
    rails server
    rails generate Scaffold name:string email:string
    bundle exec rake db:migrate
    bundle exec rake db:migrate
    rails console
  26. manters2000 revised this gist Dec 19, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ Common Rails Commands
    rails new app
    rails server
    rails generate Scaffold name:string email:string
    bundle exec
    bundle exec rake db:migrate
  27. manters2000 revised this gist Dec 19, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rails-commands
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,5 @@ Common Rails Commands

    rails new app
    rails server
    rails generate Scaffold name:string email:string
    rails generate Scaffold name:string email:string
    bundle exec
  28. manters2000 created this gist Dec 19, 2015.
    5 changes: 5 additions & 0 deletions rails-commands
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Common Rails Commands

    rails new app
    rails server
    rails generate Scaffold name:string email:string