Project

General

Profile

Actions

Bug #25138

closed

ActiveRecord::DuplicateMigrationVersionError duplicate version number 20150616080015

Added by Andrew Kofink over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The following two migrations have duplicate version numbers, causing a migration error.

foreman_remote_execution/db/migrate/20150616080015_create_template_input.rb
foreman/db/migrate/20150616080015_create_core_template_input.rb

$ rake db:migrate
/home/vagrant/nfs/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/home/vagrant/nfs/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
2018-10-08T12:24:10 [D|app|] Registering 4 assets for plugin foreman-tasks precompilation
2018-10-08T12:24:10 [D|app|] Registering 7 assets for plugin foreman_remote_execution precompilation
2018-10-08T12:24:10 [D|app|] Registering 4 assets for plugin foreman_docker precompilation
2018-10-08T12:24:10 [D|app|] Registering 114 assets for plugin bastion precompilation
2018-10-08T12:24:10 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.                                                                                           
2018-10-08T12:24:10 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.                                                                                               
2018-10-08T12:24:10 [D|app|] Registering 100 assets for plugin katello precompilation
2018-10-08T12:24:10 [D|app|] Registering 2 assets for plugin foreman_ansible precompilation
2018-10-08T12:24:10 [W|app|] ignoring associations organization_ids, location_ids audit definition for Container, the resource is not audited                                                                     
2018-10-08T12:24:11 [W|app|] DEPRECATION WARNING: `secrets.secret_token` is deprecated in favor of `secret_key_base` and will be removed in Rails 6.0. (called from <main> at /home/vagrant/nfs/foreman/config/environment.rb:5)
2018-10-08T12:24:11 [W|app|] DEPRECATION WARNING: Using a dynamic :controller segment in a route is deprecated and will be removed in Rails 6.0. (called from block in <main> at /home/vagrant/nfs/foreman/config/routes.rb:17)
rake aborted!
ActiveRecord::DuplicateMigrationVersionError:

Multiple migrations have the version number 20150616080015.

/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1319:in `validate'                                                                                                      
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1185:in `initialize'                                                                                                    
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1036:in `new'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1036:in `up'
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/migration.rb:1011:in `migrate'                                                                                                       
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/tasks/database_tasks.rb:172:in `migrate'                                                                                             
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.1/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'                                                                           
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
/home/vagrant/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Related issues 1 (0 open1 closed)

Is duplicate of Foreman Remote Execution - Feature #25122: Reuse template inputs from coreClosedMarek HulánActions
Actions #1

Updated by Andrew Kofink over 5 years ago

  • Subject changed from ActiveRecord::DuplicateMigrationVersionError to ActiveRecord::DuplicateMigrationVersionError duplicate version number 20150616080015
  • Description updated (diff)
Actions #2

Updated by Adam Ruzicka over 5 years ago

  • Is duplicate of Feature #25122: Reuse template inputs from core added
Actions #3

Updated by Adam Ruzicka over 5 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF