2018-12-23 12:14:25 +05:30
|
|
|
class AddPagesSizeToApplicationSettings < ActiveRecord::Migration[4.2]
|
2017-08-17 22:00:37 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default :application_settings, :max_pages_size, :integer, default: 100, allow_null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:application_settings, :max_pages_size)
|
|
|
|
end
|
|
|
|
end
|