grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Gitlab::Database::MigrationHelpers#rename_column_concurrently
Renames a column without requiring downtime.
Concurrent renames work by using database triggers to ensure both the
old and new column are in sync. However, this method will _not_ remove
the triggers or the old column automatically; this needs to be done
manually in a post-deployment migration. This can be done using the
method `cleanup_concurrent_column_rename`.
table - The name of the database table containing the column.
old - The old column name.
new - The new column name.
type - The type of the new column. If no type is given the old column's
type is used.Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Database--MigrationHelpers-rename_column_concurrently-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Database::MigrationHelpers#rename_column_concurrently"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Database--MigrationHelpers-rename_column_concurrently-for-pr
hub pull-request
# Celebrate!