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

20210205104425_add_new_post_eoa_plans.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d1a5afbd314864601a1b9325b30edff6f69d0566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class AddNewPostEoaPlans < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    execute "INSERT INTO plans (name, title, created_at, updated_at) VALUES ('premium', 'Premium (Formerly Silver)', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"
    execute "INSERT INTO plans (name, title, created_at, updated_at) VALUES ('ultimate', 'Ultimate (Formerly Gold)', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"
  end

  def down
    execute "DELETE FROM plans WHERE name IN ('premium', 'ultimate')"
  end
end