diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-04 15:31:15 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-04 15:31:15 +0200 |
commit | a17c90b2a7331a7427813684b04095b55c4b3cc1 (patch) | |
tree | ad76404a74e856a37bd5a01d95ea61f0155053d0 /app/models/ci/stage.rb | |
parent | f9228f6bf46f1d1caa4c62b80b8bd6ec883d33ae (diff) | |
download | gitlab-ce-a17c90b2a7331a7427813684b04095b55c4b3cc1.tar.gz |
Use enumerated status in persisted stage class
Diffstat (limited to 'app/models/ci/stage.rb')
-rw-r--r-- | app/models/ci/stage.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index 59570924c8d..0c7f8c7f485 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -1,6 +1,9 @@ module Ci class Stage < ActiveRecord::Base extend Ci::Model + include HasStatus + + enumerated_status! belongs_to :project belongs_to :pipeline |