Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-09-05 15:15:16 +0300
committerAndreas Brandl <abrandl@gitlab.com>2019-09-05 15:15:16 +0300
commit43d33ef82421314b1ae0fb3bbe48b0def3084adb (patch)
treeb94942c2f0de28c63ffe112c633023db143f0528 /doc
parent1c6aa98c37f3cb4221819044294020923c14f57d (diff)
Refactor new undo_* methods
- Move code for creating a new column from old into a function so that it can be reused. - Also add comments above the methods.
Diffstat (limited to 'doc')
-rw-r--r--doc/development/what_requires_downtime.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/what_requires_downtime.md b/doc/development/what_requires_downtime.md
index f4cee410066..00371057d3c 100644
--- a/doc/development/what_requires_downtime.md
+++ b/doc/development/what_requires_downtime.md
@@ -88,7 +88,7 @@ class RenameUsersUpdatedAtToUpdatedAtTimestamp < ActiveRecord::Migration[4.2]
end
def down
- cleanup_concurrent_column_rename :users, :updated_at_timestamp, :updated_at
+ undo_rename_column_concurrently :users, :updated_at, :updated_at_timestamp
end
end
```
@@ -118,7 +118,7 @@ class CleanupUsersUpdatedAtRename < ActiveRecord::Migration[4.2]
end
def down
- rename_column_concurrently :users, :updated_at_timestamp, :updated_at
+ undo_cleanup_concurrent_column_rename :users, :updated_at, :updated_at_timestamp
end
end
```