Update repos hooks in migration
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e8f1331fa4
commit
6f423b987f
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue