This should fix any 500 at notifications-page. Thanks @MrZYX an Chandler
This commit is contained in:
parent
8edb6ad649
commit
3a29bef99f
2 changed files with 14 additions and 1 deletions
13
db/migrate/20110507212759_remove_type_null_notifications.rb
Normal file
13
db/migrate/20110507212759_remove_type_null_notifications.rb
Normal 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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue