summaryrefslogtreecommitdiff
path: root/db/post_migrate/20181013005024_remove_koding_from_application_settings.rb
blob: b6e5473e89630aeb7d717376e8831b8d9179da68 (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 # rubocop:disable Migration/AddLimitToStringColumns
  end
end