ruby on rails - Why am I getting duplicate version error using db:migrate VERSION=XXX? -
i'm working application upgraded ruby 1.8.6 ruby 1.8.7. created number of migration scripts named 999_whatever_function.rb
, ordered sequentially. whole set previous runs have items 001
until 430
, , added items 450
. when try use
rake db:migrate version=450
it aborts error
c:\ruby\projects\db_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 version number 3500** c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/migration.rb:507:in `migrations'
i have no duplicate numbering on scripts i'm wondering if version 1.8.7 requires different type of version notation (yyyymmddtime)?
i see there no duplicate migrations, that's trigger error. double-check prefixes of migrations in db/migrate. there 2 begin 3500?
also, conflating ruby , rails. ruby @ version 1.8.7, not rails. looks running rails 2.3.4.
Comments
Post a Comment