Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20211029102822_add_open_source_plan.rb')
-rw-r--r--db/post_migrate/20211029102822_add_open_source_plan.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20211029102822_add_open_source_plan.rb b/db/post_migrate/20211029102822_add_open_source_plan.rb
index 00266640f03..bb65637ffca 100644
--- a/db/post_migrate/20211029102822_add_open_source_plan.rb
+++ b/db/post_migrate/20211029102822_add_open_source_plan.rb
@@ -24,7 +24,7 @@ class AddOpenSourcePlan < Gitlab::Database::Migration[1.0]
end
def up
- return unless Gitlab.dev_env_or_com?
+ return unless Gitlab.com?
opensource = Plan.create!(name: 'opensource', title: 'Open Source Program')
@@ -32,7 +32,7 @@ class AddOpenSourcePlan < Gitlab::Database::Migration[1.0]
end
def down
- return unless Gitlab.dev_env_or_com?
+ return unless Gitlab.com?
Plan.where(name: 'opensource').delete_all
end