Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20191118173522_add_snippet_size_limit_to_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6b30febbd6d30bc9f290a4f6fd492753e48441e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddSnippetSizeLimitToApplicationSettings < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def up
    add_column :application_settings, :snippet_size_limit, :bigint, default: 50.megabytes, null: false
  end

  def down
    remove_column :application_settings, :snippet_size_limit
  end
end