20151215132013_add_pages_size_to_application_settings.rb 369 Bytes
Newer Older
1
class AddPagesSizeToApplicationSettings < ActiveRecord::Migration[4.2]
2 3 4 5 6
  include Gitlab::Database::MigrationHelpers
  disable_ddl_transaction!

  DOWNTIME = false

Kamil Trzcinski's avatar
Kamil Trzcinski committed
7
  def up
8 9 10 11 12
    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)
Kamil Trzcinski's avatar
Kamil Trzcinski committed
13 14
  end
end