Class | Heroku::Command::Db |
In: |
lib/heroku/command/db.rb
|
Parent: | BaseWithApp |
manage the database for an app
db:pull [DATABASE_URL]
pull local data up to your app
if DATABASE_URL is not specified it will be guessed from config/database.yml
-c, —chunksize SIZE # specify the number of rows to send in each batch -d, —debug # enable debugging output -e, —exclude TABLES # exclude the specified tables from the pull -f, —filter REGEX # only pull certain tables -r, —resume FILE # resume transfer described by a .dat file -t, —tables TABLES # only pull the specified tables
db:push [DATABASE_URL]
push local data up to your app
if DATABASE_URL is not specified it will be guessed from config/database.yml
-c, —chunksize SIZE # specify the number of rows to send in each batch -d, —debug # enable debugging output -e, —exclude TABLES # exclude the specified tables from the push -f, —filter REGEX # only push certain tables -r, —resume FILE # resume transfer described by a .dat file -t, —tables TABLES # only push the specified tables