Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jmarcosJava/7cd9a2e5bb257dcfa7ecccccf5fa1665 to your computer and use it in GitHub Desktop.

Select an option

Save jmarcosJava/7cd9a2e5bb257dcfa7ecccccf5fa1665 to your computer and use it in GitHub Desktop.

Revisions

  1. @Godoy Godoy revised this gist Dec 18, 2014. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,7 @@ $ rake db:rollback

    $ rake db:migrate VERSION=0 #defaz todas as migrations, deixa o banco "limpo"

    $ rake db:migrate:reset #reseta todo o banco, perdendo todos os registros, e já executa novamente as todas as migrations
    $ rake db:migrate:reset #reseta todo o banco, perdendo todos os registros, e já executa novamente as todas as migrations

    $ bundle exec rake assets:clobber(Removes all compiled assets)
    $ bundle exec rake assets:precompile (Precompiled assets again)
  2. @Godoy Godoy revised this gist Apr 13, 2013. No changes.
  3. @Godoy Godoy revised this gist Apr 13, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,6 @@ $ rails destroy model Noticia
    $ rake db:migrate
    $ rake db:rollback

    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos
    $ rake db:migrate VERSION=0 #defaz todas as migrations, deixa o banco "limpo"

    $ rake db:migrate:reset #reseta todo o banco, perdendo todos os registros, e já executa novamente as todas as migrations
  4. @Godoy Godoy revised this gist Feb 25, 2013. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,4 @@ $ rails destroy model Noticia
    $ rake db:migrate
    $ rake db:rollback

    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos

    #reset postgree database in heroku
    $ heroku pg:reset DATABASE
    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos
  5. @Godoy Godoy revised this gist Feb 25, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,7 @@ $ rails destroy model Noticia
    $ rake db:migrate
    $ rake db:rollback

    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos
    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos

    #reset postgree database in heroku
    $ heroku pg:reset DATABASE
  6. @Godoy Godoy created this gist Jan 15, 2013.
    10 changes: 10 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $ rails generate controller Noticias titulo
    $ rails destroy controller Noticias titulo

    $ rails generate model Noticia titulo:string
    $ rails destroy model Noticia

    $ rake db:migrate
    $ rake db:rollback

    $ rake db:migrate VERSION=0 #volta para o inicio dos tempos