Update repos hooks in migration

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-03 17:10:41 +03:00
parent e8f1331fa4
commit 6f423b987f
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
class MigrateToNewShell < ActiveRecord::Migration
def change
gitlab_shell_path = Gitlab.config.gitlab_shell.path
if system("sh #{gitlab_shell_path}/support/rewrite-hooks.sh")
puts 'Repositories updated with new hooks'
else
raise 'Failed to rewrite gitlab-shell hooks in repositories'
end
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140730111702) do
ActiveRecord::Schema.define(version: 20140903115954) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"