20180723135214_add_web_ide_client_side_preview_enabled_to_application_settings.rb 549 Bytes
Newer Older
Phil Hughes's avatar
Phil Hughes committed
1 2
# frozen_string_literal: true

3
class AddWebIdeClientSidePreviewEnabledToApplicationSettings < ActiveRecord::Migration[4.2]
Phil Hughes's avatar
Phil Hughes committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:application_settings, :web_ide_clientside_preview_enabled,
                            :boolean,
                            default: false,
                            allow_null: false)
  end

  def down
    remove_column(:application_settings, :web_ide_clientside_preview_enabled)
  end
end