How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

Note 1

Heroku doesn’t allow users from using rake db:resetrake db:drop and rake db:create command. They only allow heroku pg:reset and rake db:migrate commands.

More info: https://devcenter.heroku.com/articles/rake

Note 2

If you have more than 1 remote, append --remote [your_remote_name] like this:

heroku run rake db:migrate --remote dev (dev is example remote here)

https://gist.github.com/zulhfreelancer/ea140d8ef9292fa9165e#how-to-reset-pg-database-on-heroku

Error This release is not compliant with the Google Play 64-bit requirement The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 102. Include 64-bit and 32-bit native code in your app. Use the Android App Bundle publishing format to automatically ensure that each device architecture receives only the native code it needs. This avoids increasing the overall size of your app

https://github.com/flutter/flutter/issues/31922#issuecomment-512195731
https://developer.android.com/distribute/best-practices/develop/64-bit#check

Android FullScreen

File styles.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when Flutter draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
        <item name="android:windowFullscreen">true</item>
    </style>
</resources>

Sites de consulta para Bolsa de Valores

http://www.tesouro.fazenda.gov.br/
http://www.cvm.gov.br/
http://www.portaldoinvestidor.gov.br
http://www.fundamentus.com.br
http://www.bmfbovespa.com.br
http://www.mpf.mp.br
http://www.tororadar.com.br
http://www.fitchratings.com.br
http://www.moodys.com
http://www.standardandpoors.com
http://www.bcb.gov.br
http://www.bradescocorretora.com.br
http://www.cnc.gov.br
http://www.anbima.com.br
http://www.infomoney.com.br
http://www.clear.com.br
http://www.econoinfo.com.br

Full Stack Developer, DevOps, CSM e LKU.