Read about our upcoming Code of Conduct on this issue

20180109183319_change_default_value_for_pages_https_only.rb 292 Bytes
Newer Older
Rob Watson's avatar
Rob Watson committed
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