summaryrefslogtreecommitdiff
path: root/db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb
blob: bab5fe827d0fbd63be0bb153bcef2675ee523fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddElasticsearchIndexedFileSizeLimitKbToApplicationSettings < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def change
    add_column :application_settings,
      :elasticsearch_indexed_file_size_limit_kb,
      :integer,
      null: false,
      default: 1024 # 1 MiB (units in KiB)
  end
end