diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-12-06 16:46:12 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-12-06 16:46:12 +0000 |
commit | d8e7e84d66feddb147efb46a6a829cdf6cf89282 (patch) | |
tree | 83de234be0dd5aa26aa84e4956eb19fb52ea66c1 /doc | |
parent | 3a953f287b3437760076089bd83410e0430c8e64 (diff) | |
download | gitlab-ce-d8e7e84d66feddb147efb46a6a829cdf6cf89282.tar.gz |
Add section about enabling feature flag in development
Diffstat (limited to 'doc')
-rw-r--r-- | doc/development/feature_flags.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/development/feature_flags.md b/doc/development/feature_flags.md index 1019a1fd0e2..b6161cd6163 100644 --- a/doc/development/feature_flags.md +++ b/doc/development/feature_flags.md @@ -113,7 +113,15 @@ feature flag. You can stub a feature flag as follows: stub_feature_flags(my_feature_flag: false) ``` -## Enabling a feature flag +## Enabling a feature flag (in development) + +In the rails console (`rails c`), enter the following command to enable your feature flag + +```ruby +Feature.enable(:feature_flag_name) +``` + +## Enabling a feature flag (in production) Check how to [roll out changes using feature flags](rolling_out_changes_using_feature_flags.md). |