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.
On 8/28/05, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
On Aug 28, 2005, at 2:36 PM, Joe Van Dyk wrote:> On 8/28/05, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:192What if you just do: rake RAILS_ENV=production migrate - Jamis
On 8/28/05, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 8/28/05, Joe Van Dyk <joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:192Your 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