On 5 May 2011 21:53, Bryan Crossland <[email protected]> wrote:
> ...
> You're missing why I said you can do one or the other. Running db:setup will
> create the database if it does not exist just like db:create will do. You
> don't need to check for the database because those commands do it for you.
> If those commands find there is not database it will create one for you. You
> will have a database to seed data into.

I may be wrong but I think the OP's problem is that he wishes to *not*
run the seed if the database already exists.  If so then he can handle
that by testing the db in the seed code itself as I suggested in
earlier post.

Colin

-- 
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