diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-16 18:20:11 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 17:55:09 +0300 |
commit | 94f7595b9a8edcb4ac8480995a067eb4fa3dec7e (patch) | |
tree | b0f3819a95108a55feaa0a1c358022683a6bc432 /app/models | |
parent | e929897873267b0815baf28dfa6b19d49d695554 (diff) |
Define last_pipeline in PipelineScheduleEntity
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/pipeline_schedule.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/ci/pipeline_schedule.rb b/app/models/ci/pipeline_schedule.rb index adac895ab7d..45d8cd34359 100644 --- a/app/models/ci/pipeline_schedule.rb +++ b/app/models/ci/pipeline_schedule.rb @@ -44,10 +44,6 @@ module Ci self.next_run_at = Gitlab::Ci::CronParser.new(cron, cron_timezone).next_time_from(Time.now) end - def last_pipeline - self.pipelines&.last - end - def schedule_next_run! save! # with set_next_run_at rescue ActiveRecord::RecordInvalid |