summaryrefslogtreecommitdiff
path: root/db/migrate/20180109183319_change_default_value_for_pages_https_only.rb
blob: 558eb60ac3f4fe0ce5e47ec9e954503ca61db5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class ChangeDefaultValueForPagesHttpsOnly < ActiveRecord::Migration[4.2]
  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