Project

General

Profile

Refactor #14581

Fix migrations for Rails 4.2

Added by David Davis over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin (foreman_docker)
Target version:
-
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

PG::Error: ERROR:  constraint "containers_docker_image_id_fk" of relation "containers" does not exist
: ALTER TABLE "containers" DROP CONSTRAINT "containers_docker_image_id_fk"/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements
.rb:155:in `exec'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/schema_statements.rb:815:in `remove_foreign_key'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/migration.rb:665:in `block in method_missing'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/migration.rb:634:in `block in say_with_time'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/migration.rb:634:in `say_with_time'
/home/vagrant/.rvm/gems/ruby-2.2.4@foreman/gems/activerecord-4.2.6/lib/active_record/migration.rb:654:in `method_missing'
/home/vagrant/foreman-docker/db/migrate/20141209182008_remove_docker_tables.rb:23:in `up'

Related issues

Related to Foreman - Feature #13244: Upgrade Ruby on Rails to 4.2Closed2016-01-15

Associated revisions

Revision 5988625d (diff)
Added by David Davis over 6 years ago

Fixes #14581 - Fixing migration for Rails 4.2

Revision 5988625d (diff)
Added by David Davis over 6 years ago

Fixes #14581 - Fixing migration for Rails 4.2

History

#1 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/157 added

#2 Updated by David Davis over 6 years ago

#3 Updated by David Davis over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF