debian-mirror-gitlab/db/migrate/20190607085356_add_source_to_pages_domains.rb

22 lines
566 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
2019-09-30 21:07:59 +05:30
class AddSourceToPagesDomains < ActiveRecord::Migration[5.1]
2017-09-10 17:25:29 +05:30
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
disable_ddl_transaction!
def up
2019-09-30 21:07:59 +05:30
add_column_with_default(:pages_domains, :certificate_source, :smallint, default: 0)
2017-09-10 17:25:29 +05:30
end
def down
2019-09-30 21:07:59 +05:30
remove_column(:pages_domains, :certificate_source)
2017-09-10 17:25:29 +05:30
end
end