20191118173522_add_snippet_size_limit_to_application_settings.rb 330 Bytes
Newer Older
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