Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: f2db8e725c5170e6c4d89a57be41fdbb2be04489
https://github.com/openSUSE/open-build-service/commit/f2db8e725c5170e6c4d89a...
Author: Björn Geuken
Date: 2017-06-30 (Fri, 30 Jun 2017)
Changed paths:
M src/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb
Log Message:
-----------
[api] Update notifications migration
Drop pre-existing notifications. Existing notifications would fail because
of incompatible payload. Since this is for a feature that just got introduced
we can drop them.
===
== 20170619111734 AlterNotificationsToUsePolymorphic: migrating ===============
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
undefined method `primary_key' for Integer:Class
/srv/www/obs/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb:7:in `block (2 levels) in change'
/srv/www/obs/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb:6:in `each'
/srv/www/obs/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb:6:in `block in change'
/srv/www/obs/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb:5:in `change'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Commit: e00b434008a4571c80fbfdac37d03a80872e9599
https://github.com/openSUSE/open-build-service/commit/e00b434008a4571c80fbfd...
Author: Björn Geuken
Date: 2017-07-03 (Mon, 03 Jul 2017)
Changed paths:
M src/api/db/migrate/20170619111734_alter_notifications_to_use_polymorphic.rb
Log Message:
-----------
Merge pull request #3333 from bgeuken/drop_existing_notifications
[api] Update notifications migration
Compare: https://github.com/openSUSE/open-build-service/compare/de34f75a04ca...e00b43...