This should fix any 500 at notifications-page. Thanks @MrZYX an Chandler

This commit is contained in:
Dennis Schubert 2011-05-07 23:36:10 +02:00
parent 8edb6ad649
commit 3a29bef99f
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
class RemoveTypeNullNotifications < ActiveRecord::Migration
def self.up
execute <<SQL
DELETE FROM notifications
WHERE type IS NULL
SQL
end
def self.down
raise ActiveRecord::IrreversibleMigration.new
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110421120744) do
ActiveRecord::Schema.define(:version => 20110507212759) do
create_table "aspect_memberships", :force => true do |t|
t.integer "aspect_id", :null => false