English 中文(简体)
为什么我使用db:migrate VERSION=XXX重复版本错误?
原标题:Why am I getting duplicate version error using db:migrate VERSION=XXX?

I m处理申请,申请从Rub.1.8.6升级至Rub.1.8.7。 我制作了一些称为999_whatever_Function.rb的移民文字,按顺序排列。 以往各行各有<代码>001至430的物项,我增列了<编码>450<>>的物项。 当我试图使用时

rake db:migrate VERSION=450

It aborts with this error

C:Rubyprojectsdb_upgrade>rake db:migrate VERSION=450 --trace

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate

rake aborted!

**Multiple migrations have the version number 3500**

c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/migration.rb:507:in `migrations 

我没有在文字上重复编号,但我很想知道,第1.8.7版是否要求有不同类型的缩略语(YYYMMDDtime)?

问题回答

我看到,你说没有重复移徙,但会引发这一错误。 双重检查了移民的滞留地点。 是否有两点从3 500起开始?

而且,你正在 con弄Ruby和铁路。 鲁比为1.8.7,而不是铁路。 它像你一样经营铁路。





相关问题
Copy data from Access to SQL

I am in the process of migrating an existing Access database to a SQL database with a web front-end. I have successfully copied the database to SQL using the SQL Server Migration tool and am working ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

Switching to WPF. Is it time?

I m considering switching from MFC to WPF. My first concern is that there are too many users who don t have .NET with WPF installed yet. Can anybody point to a source containing the WPF penetration ...

rake db:migrate running all migrations correctly

I m fairly new to Ruby on Rails here. I have 2 migrate files that were provided. The first one, prefixed with 001, creates a table and some columns for that table. The next migrate file, prefixed ...

Migrate Java Applet to what/where?

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It s a tool to create custom labels, so we need drag-n-drop and other ...

热门标签