> All I get from rake db;create:all is, consistent with database.yml:
> empty tables if they do not already exist
> announcements/warnings if the tables already exist (without recreating
> them so that populated tables maintain whatever definitions/data that
> they had)

Hi Richard - it's possible I misunderstand the question, but judging
from the title of your post, could the problem be that you are
creating the database but aren't running the migrations to create the
tables?

  rake db:create:all

creates the development, test and production databases on the server,
akin to the executing SQL DDL like "CREATE DATABASE xxx." This
wouldn't create any tables.

To actually create the tables defined in your migrations (or create
indexes, or alter the tables, or any of the other stuff you define in
migrations), you would run:

  rake db:migrate

which executes any migrations that haven't already been run already in
the current default environment database (say, development if you are
working in development), akin to executing SQL like "CREATE TABLE xxx"
or "ALTER TABLE", etc. This of course assumes you have generated some
migrations (it sounds like you have).

-Steve

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to