summaryrefslogtreecommitdiff
path: root/db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb')
-rw-r--r--db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb b/db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb
new file mode 100644
index 00000000000..bab5fe827d0
--- /dev/null
+++ b/db/migrate/20200720053909_add_elasticsearch_indexed_file_size_limit_kb_to_application_settings.rb
@@ -0,0 +1,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