summaryrefslogtreecommitdiff
path: root/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20190619175843_remove_import_columns_from_projects.rb')
-rw-r--r--db/post_migrate/20190619175843_remove_import_columns_from_projects.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb b/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb
new file mode 100644
index 00000000000..85f776ac99c
--- /dev/null
+++ b/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class RemoveImportColumnsFromProjects < ActiveRecord::Migration[5.1]
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ remove_column :projects, :import_status, :string
+ remove_column :projects, :import_jid, :string
+ remove_column :projects, :import_error, :text
+ end
+end