{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10032","repository_url":"https://api.github.com/repos/gitlabhq/gitlabhq","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10032/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10032/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10032/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/10032","id":133380921,"number":10032,"title":"update gitlab from 7.6 to 7.7.2 : ActionView::Template::Error (undefined method `developers_can_push' ","user":{"login":"vmintam","id":1217797,"avatar_url":"https://avatars.githubusercontent.com/u/1217797?v=3","gravatar_id":"","url":"https://api.github.com/users/vmintam","html_url":"https://github.com/vmintam","followers_url":"https://api.github.com/users/vmintam/followers","following_url":"https://api.github.com/users/vmintam/following{/other_user}","gists_url":"https://api.github.com/users/vmintam/gists{/gist_id}","starred_url":"https://api.github.com/users/vmintam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmintam/subscriptions","organizations_url":"https://api.github.com/users/vmintam/orgs","repos_url":"https://api.github.com/users/vmintam/repos","events_url":"https://api.github.com/users/vmintam/events{/privacy}","received_events_url":"https://api.github.com/users/vmintam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-13T01:04:36Z","updated_at":"2016-02-13T12:06:50Z","closed_at":null,"body":"Dear guys,\r\n\r\n current, i'm using GitLab Community Edition version 7.6 (with PostgreSQL DB).\r\n I have just upgrade to gitlab 7.7.2, but something error.\r\n\r\nin web GUI, when i choose **settings in projects, click to protected_branches --> 500 error.**\r\nin git client, when i push to master branch, i catch error : \r\n\r\n**remote: GitLab: API is not accessible\r\nTo git@xxx.xx:my-projects/test.git\r\n ! [remote rejected] master -> master (pre-receive hook declined)**\r\n\r\n\r\nwhen i check log in my server, i see : \r\n\r\n**Processing by Projects::ProtectedBranchesController#index as HTML\r\n  Parameters: {\"project_id\"=>\"vmsclients/vms_ott_android_v2\"}\r\nCompleted 500 Internal Server Error in 27ms\r\n\r\nActionView::Template::Error (undefined method `developers_can_push' for #<ProtectedBranch:0x007f79f2a28b40>):\r\n    27:         Developers can push\r\n    28:       .col-sm-10\r\n    29:         .checkbox\r\n    30:           = f.check_box :developers_can_push**\r\n\r\n\r\n**I have checked info and status, everything fine.\r\nbundle exec rake gitlab:check RAILS_ENV=production\r\nbundle exec rake db:migrate:status RAILS_ENV=production**\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/183655072","html_url":"https://github.com/gitlabhq/gitlabhq/issues/10032#issuecomment-183655072","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10032","id":183655072,"user":{"login":"vmintam","id":1217797,"avatar_url":"https://avatars.githubusercontent.com/u/1217797?v=3","gravatar_id":"","url":"https://api.github.com/users/vmintam","html_url":"https://github.com/vmintam","followers_url":"https://api.github.com/users/vmintam/followers","following_url":"https://api.github.com/users/vmintam/following{/other_user}","gists_url":"https://api.github.com/users/vmintam/gists{/gist_id}","starred_url":"https://api.github.com/users/vmintam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmintam/subscriptions","organizations_url":"https://api.github.com/users/vmintam/orgs","repos_url":"https://api.github.com/users/vmintam/repos","events_url":"https://api.github.com/users/vmintam/events{/privacy}","received_events_url":"https://api.github.com/users/vmintam/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T12:06:50Z","updated_at":"2016-02-13T12:06:50Z","body":"Hi Stanhu,\r\n\r\n thanks for reply!\r\n\r\n but i use **none gitlab-rails**. I have updated from this link: \r\n**https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/7.6-to-7.7.md\r\n**\r\nwhen i access to postgreSQL, i see: \r\n\r\n```\r\ngitlabhq_production=# \\d protected_branches\r\n                                     Table \"public.protected_branches\"\r\n   Column   |            Type             |                            Modifiers                 \r\n           \r\n------------+-----------------------------+------------------------------------------------------\r\n-----------\r\n id         | integer                     | not null default nextval('protected_branches_id_seq':\r\n:regclass)\r\n project_id | integer                     | not null\r\n name       | character varying(255)      | not null\r\n created_at | timestamp without time zone | \r\n updated_at | timestamp without time zone | \r\nIndexes:\r\n    \"protected_branches_pkey\" PRIMARY KEY, btree (id)\r\n    \"index_protected_branches_on_project_id\" btree (project_id)\r\ngitlabhq_production=# \\d protected_branches\r\n                                     Table \"public.protected_branches\"\r\n   Column   |            Type             |                            Modifiers                 \r\n           \r\n------------+-----------------------------+------------------------------------------------------\r\n-----------\r\n id         | integer                     | not null default nextval('protected_branches_id_seq':\r\n:regclass)\r\n project_id | integer                     | not null\r\n name       | character varying(255)      | not null\r\n created_at | timestamp without time zone | \r\n updated_at | timestamp without time zone | \r\nIndexes:\r\n    \"protected_branches_pkey\" PRIMARY KEY, btree (id)\r\n    \"index_protected_branches_on_project_id\" btree (project_id)\r\n```\r\n\r\n\r\nlike you mentioned, _developers_can_push_ column is not there.\r\n\r\nbut, how to I reapply the migration to VERSION=20141226080412 ?\r\n\r\n\r\n"}}