Another question about migrations. When I type: ==========rake migration VERSION=1 ========== The value in the schema table change to ''1'' but none of the down commands are issued to drop the respective tables. Am I doing something wrong here? Thanks :-) John Kopanas
On 3/21/06, John Kopanas <john@protoseinc.com> wrote:> Another question about migrations. > > When I type: > > ==========> rake migration VERSION=1 > ==========> > The value in the schema table change to ''1'' but none of the down > commands are issued to drop the respective tables. Am I doing > something wrong here?Are the drop statements in your migration files for version 2+? If they''re in your 001 file, then you need to use VERSION=0. -- James
rake migrate VERSION=1 notice it''s ''migrate'', not ''migration'' On 3/21/06, John Kopanas <john@protoseinc.com> wrote:> Another question about migrations. > > When I type: > > ==========> rake migration VERSION=1 > ==========> > The value in the schema table change to ''1'' but none of the down > commands are issued to drop the respective tables. Am I doing > something wrong here? > > Thanks :-) > > John Kopanas > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
For some reason it is working now. Maybe it was related to my previous problem. Thanks. On 21-Mar-06, at 1:47 PM, James Ludlow wrote:> On 3/21/06, John Kopanas <john@protoseinc.com> wrote: >> Another question about migrations. >> >> When I type: >> >> ==========>> rake migration VERSION=1 >> ==========>> >> The value in the schema table change to ''1'' but none of the down >> commands are issued to drop the respective tables. Am I doing >> something wrong here? > > Are the drop statements in your migration files for version 2+? If > they''re in your 001 file, then you need to use VERSION=0. > > -- James > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsJohn Kopanas