summaryrefslogtreecommitdiff
path: root/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb
blob: 550ad94f4abae021ac5119fd3efc30148ae918ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class RemoveKodingFromApplicationSettings < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    remove_column :application_settings, :koding_enabled
    remove_column :application_settings, :koding_url
  end

  def down
    add_column :application_settings, :koding_enabled, :boolean # rubocop:disable Migration/SaferBooleanColumn
    add_column :application_settings, :koding_url, :string
  end
end