diff options
-rw-r--r-- | app/models/ci/stage.rb | 2 | ||||
-rw-r--r-- | db/post_migrate/20170711145558_migrate_stages_statuses.rb | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index cd2f1dd3509..7819bc3cd2c 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -17,8 +17,6 @@ module Ci validates :pipeline, presence: true, unless: :importing? validates :name, presence: true, unless: :importing? - ## TODO, should we extract these events to `Ci::Eventable`? - # state_machine :status, initial: :created do event :enqueue do transition created: :pending diff --git a/db/post_migrate/20170711145558_migrate_stages_statuses.rb b/db/post_migrate/20170711145558_migrate_stages_statuses.rb index 1641e550480..5a24fb1307f 100644 --- a/db/post_migrate/20170711145558_migrate_stages_statuses.rb +++ b/db/post_migrate/20170711145558_migrate_stages_statuses.rb @@ -28,8 +28,6 @@ class MigrateStagesStatuses < ActiveRecord::Migration def down disable_statement_timeout - execute <<-SQL.strip_heredoc - UPDATE ci_stages SET status = null - SQL + update_column_in_batches(:ci_stages, :status, nil) end end |