My company uses Postgres, but while developing my Rails app I’ve used
mysql on my local machine. I would love to demonstrate the coolness of
Rails to my coworkers by recreating my schema on the central database in
as few steps as possible. I’ve gotten the feeling that this can be
done, something with Rake which I have not yet played with. Can
somebody offer a pointer? Is it a “migrate” that I want to do, or some
sort of dump and load? I don’t really care about the data, just the
schema.
run:
rake migrate
inside the application directory on the server,
or:
rake deploy
if you have capistrano configured already. Capistrano
will issue the remote rake migrate for you during a
default deploy operation.
–
– Tom M.