diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-02-26 20:31:20 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-02-26 20:31:20 +0900 |
commit | 41a83bd303bf2734446668777d36f2a556c20670 (patch) | |
tree | 65d7dc9fd8b1eee2ea14aaf19bc188691fa3b8f9 | |
parent | 562243b1f3bbee11c22034a9e1c80da1b1424417 (diff) | |
download | gitlab-ce-persist-source-sha-and-target-sha-for-pipelines-test.tar.gz |
-rw-r--r-- | app/models/ci/pipeline.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 9bd9cc8c8b3..083c4e13728 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -12,7 +12,6 @@ module Ci include AtomicInternalId include EnumWithNil include HasRef - include ShaAttribute belongs_to :project, inverse_of: :all_pipelines belongs_to :user @@ -64,9 +63,6 @@ module Ci validate :valid_commit_sha, unless: :importing? validates :source, exclusion: { in: %w(unknown), unless: :importing? }, on: :create - sha_attribute :source_sha - sha_attribute :target_sha - after_create :keep_around_commits, unless: :importing? # We use `Ci::PipelineEnums.sources` here so that EE can more easily extend |