summaryrefslogtreecommitdiff
path: root/db/migrate/20151215132013_add_pages_size_to_application_settings.rb
blob: f3a663f805bd8ed78bbae7e508970fe8cb241c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class AddPagesSizeToApplicationSettings < ActiveRecord::Migration
  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