On Sun, Sep 7, 2008 at 2:58 PM, Jon Leighton <[EMAIL PROTECTED]> wrote:
>
> Apologies if this is blatantly obvious and I am wasting your time -
> I'm quite an infrequent Rails contributor...
>
> Basically I am looking for an easy way to load the schema definitions
> from activerecord/test/schema into my databases. In the
> RUNNING_UNIT_TESTS file it says "When you have the database online,
> you can import the fixture tables with the test/schema/*.sql files."
> This seems to be outdated as all the files in test/schema are now .rb
> schema files.
>
> I can't see a rake task to perform this - maybe there should be one?

There are a few:

rake build_frontbase_databases     # Build the FrontBase test databases
rake build_mysql_databases         # Build the MySQL test databases
rake build_postgresql_databases    # Build the PostgreSQL test databases
rake drop_mysql_databases          # Drop the MySQL test databases
rake drop_postgresql_databases     # Drop the PostgreSQL test databases
rake rebuild_frontbase_databases   # Rebuild the FrontBase test databases
rake rebuild_mysql_databases       # Rebuild the MySQL test databases
rake rebuild_postgresql_databases  # Rebuild the PostgreSQL test databases

I guess the advice in that file should be updated to reflect the rake
tasks we have now.

> I'd be happy to create a patch to make this a bit easier for others in
> the future.
>
> Cheers,
> Jon
>
> >
>



-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to