summaryrefslogtreecommitdiff
path: root/db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-06 14:41:27 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-06 14:41:27 +0800
commit4a030326605e2ab2ce7b520d14c6ac3ad020d58b (patch)
treecaaf9dbf231c5f499266d246669e9590a51bc2b8 /db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb
parentec3a50f1f2065f185106fd19fcbb64aac38b6f2d (diff)
downloadgitlab-ce-4a030326605e2ab2ce7b520d14c6ac3ad020d58b.tar.gz
Fix rolling back for MySQL
Diffstat (limited to 'db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb')
-rw-r--r--db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb b/db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb
index c9dd5be9799..1e7b02ecf0e 100644
--- a/db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb
+++ b/db/migrate/20170312114529_add_auto_canceled_by_id_foreign_key_to_pipeline.rb
@@ -1,26 +1,8 @@
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
class AddAutoCanceledByIdForeignKeyToPipeline < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
- # Set this constant to true if this migration requires downtime.
DOWNTIME = false
- # When a migration requires downtime you **must** uncomment the following
- # constant and define a short and easy to understand explanation as to why the
- # migration requires downtime.
- # DOWNTIME_REASON = ''
-
- # When using the methods "add_concurrent_index" or "add_column_with_default"
- # you must disable the use of transactions as these methods can not run in an
- # existing transaction. When using "add_concurrent_index" make sure that this
- # method is the _only_ method called in the migration, any other changes
- # should go in a separate migration. This ensures that upon failure _only_ the
- # index creation fails and can be retried or reverted easily.
- #
- # To disable transactions uncomment the following line and remove these
- # comments:
disable_ddl_transaction!
def up