Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
Re: [yast-devel] Larger change on webclient side, run "rake db:migrate"
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Tue, 14 Jul 2009 18:06:55 +0200
  • Message-id: <4A5CAD1F.9090005@xxxxxxx>
Klaus Kaempf schrieb:
Hi,

if you 'git pull' on webservice, you'll most probably have to run a
"rake db:migrate" afterwards.

Sorry for the inconvenience.

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

Hm, I am getting the db:migrate frame although I have run "rake db:reset"

Processing HostsController#index (for 127.0.0.1 at 2009-07-14 17:58:35) [GET]
Parameters: {"action"=>"index", "controller"=>"hosts"}
Host Load (0.0ms) SQLite3::SQLException: no such table: hosts: SELECT * FROM "hosts"
Redirected to http://0.0.0.0:3000/migrate

db:reset takes care about schema.rb which has been removed.
Without removing schema.rb db:migrate does not take care about the migrations files.

Is here a "chicken <->egg" problem ? :-)

Greetings
Stefan

--
*******************************************************************************
Stefan Schubert
SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany
e-mail: schubi@xxxxxxx
-------------------------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References