summaryrefslogtreecommitdiff
path: root/doc/update/restore_after_failure.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-03 03:08:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-03 03:08:31 +0000
commit612a849a6cba1765bc41d30d4e931195dcdf64cf (patch)
treee4062e4c9852496b731a7de9016553b64a7a433d /doc/update/restore_after_failure.md
parentbd8fb5668ae739a83d55ec5ca4a04344eef2167e (diff)
downloadgitlab-ce-612a849a6cba1765bc41d30d4e931195dcdf64cf.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/update/restore_after_failure.md')
-rw-r--r--doc/update/restore_after_failure.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/update/restore_after_failure.md b/doc/update/restore_after_failure.md
index f254373e1c8..99329fdceb3 100644
--- a/doc/update/restore_after_failure.md
+++ b/doc/update/restore_after_failure.md
@@ -28,7 +28,7 @@ may need to manually correct the problem next time you upgrade.
Example error:
-```
+```plaintext
== 20151103134857 CreateLfsObjects: migrating =================================
-- create_table(:lfs_objects)
rake aborted!
@@ -48,7 +48,7 @@ need to do.
Pass the version to a database rake task to manually mark the migration as
complete.
-```
+```shell
# Source install
sudo -u git -H bundle exec rake gitlab:db:mark_migration_complete[20151103134857] RAILS_ENV=production
@@ -62,7 +62,7 @@ migrations are marked complete.
### GitLab < 8.6
-```
+```shell
# Source install
sudo -u git -H bundle exec rails console -e production
@@ -72,7 +72,7 @@ sudo gitlab-rails console
At the Rails console, type the following commands:
-```
+```ruby
ActiveRecord::Base.connection.execute("INSERT INTO schema_migrations (version) VALUES('20151103134857')")
exit
```