grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Gitlab::Database::MigrationHelpers#add_concurrent_foreign_key
Adds a foreign key with only minimal locking on the tables involved.
This method only requires minimal locking when using PostgreSQL. When
using MySQL this method will use Rails' default `add_foreign_key`.
source - The source table containing the foreign key.
target - The target table the key points to.
column - The name of the column to create the foreign key on.
on_delete - The action to perform when associated data is removed,
defaults to "CASCADE".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-add_concurrent_foreign_key-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Database::MigrationHelpers#add_concurrent_foreign_key"
# 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-add_concurrent_foreign_key-for-pr
hub pull-request
# Celebrate!