ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-rails
ruby-rails
Re: [Rails] Re: migrating just production database
by Rick Olson other posts by this author
Aug 30 2005 4:48AM messages near this date
[Rails] Re: migrating just production database | Re: [Rails] Re: migrating just production database
On 8/28/05, Joe Van Dyk <joevandyk@[...].com>  wrote:
>  On 8/28/05, Joe Van Dyk <joevandyk@[...].com> wrote:
>  > Hi,
>  >
>  > Is it possible to do a 'rake migrate' on just the production database?
>  >  I don't have the development one installed and it's complaining.
>  >
>  
>  I'm also getting the following error:
>  
>  joevd@bidwell$ rake environment RAILS_ENV=production migrate
>  
>  rake aborted!
>  undefined method `[]' for nil:NilClass
>  ./Rakefile:192

Your schema info table is probably empty.  There's already a patch for
it, however.  For now, create a row and put whatever version the
production database is up to.

Also, all you really need is:  rake migrate RAILS_ENV=production


-- 
rick
http://techno-weenie.net
_______________________________________________
Rails mailing list
Rails@[...].org
http://lists.rubyonrails.org/mailman/listinfo/rails
Thread:
Joe Van Dyk
Joe Van Dyk
Rick Olson
Jamis Buck

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved