Merge branch 'approvers_fix' into 'master'

Remove invalid approvers records

https://gitlab.com/gitlab-org/gitlab-ee/issues/1

First part of fix

See merge request !467
This commit is contained in:
Valery Sizov
2015-08-04 09:49:43 +00:00
2 changed files with 9 additions and 1 deletions
@@ -0,0 +1,8 @@
class RemoveInvalidApprovers < ActiveRecord::Migration
def up
execute("DELETE FROM approvers WHERE user_id = 0")
end
def down
end
end
+1 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150717155058) do
ActiveRecord::Schema.define(version: 20150731200022) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"