debian-mirror-gitlab/db/migrate/20180109183319_change_default_value_for_pages_https_only.rb

14 lines
292 B
Ruby
Raw Normal View History

2019-01-03 12:48:30 +05:30
class ChangeDefaultValueForPagesHttpsOnly < ActiveRecord::Migration
2018-05-09 12:01:36 +05:30
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