diff options
author | Fabio Pitino <pitinofabio@gmail.com> | 2019-04-30 13:10:39 +0100 |
---|---|---|
committer | Fabio Pitino <pitinofabio@gmail.com> | 2019-05-02 09:20:47 +0100 |
commit | 2fcf80de3f153c928245446460daf2bf6bdfa7f1 (patch) | |
tree | 20e8dae93356d7fbc8282d29ab623b06a0dffd36 /app | |
parent | acb55198b4a05a0b4ac2662bf68cfeb3d744ca01 (diff) | |
download | gitlab-ce-2fcf80de3f153c928245446460daf2bf6bdfa7f1.tar.gz |
Strip whitespace for PipelineSchedule#cronstrip-attr-cron-in-pipeline-schedule
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index 1454b2dfb39..c0a0ca9acf6 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -5,6 +5,7 @@ module Ci extend Gitlab::Ci::Model include Importable include IgnorableColumn + include StripAttribute ignore_column :deleted_at @@ -22,6 +23,8 @@ module Ci before_save :set_next_run_at + strip_attributes :cron + scope :active, -> { where(active: true) } scope :inactive, -> { where(active: false) } |