Search code examples
ruby-on-railsdatabasecommand-linemigrateappfog

App Fog Rails Migrate Database


How am I supposed to migrate Rails application database in App Fog?

For example, on Heroku after the first deployment you have to run:

$ heroku run rake db:migrate

Is there a similar command or the database is deployed automatically on App Fog?

P.S. I didn't found documentation for this. Does it configure the database automatically by generating the database.yml file like on Heroku?


Solution

  • There is actually some documentation on here.

    Basically, you create a Caldecott tunnel with af tunnel, then run the migration locally.