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

20180109183319_change_default_value_for_pages_https_only.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c242e1b0d24c102defbe479c5eb23d7a5996ba75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class ChangeDefaultValueForPagesHttpsOnly < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    change_column_default :projects, :pages_https_only, true
  end

  def down
    change_column_default :projects, :pages_https_only, nil
  end
end