debian-mirror-gitlab/db/migrate/20200701093859_add_import_export_limits_to_application_settings.rb

16 lines
737 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
class AddImportExportLimitsToApplicationSettings < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :application_settings, :project_import_limit, :integer, default: 6, null: false
add_column :application_settings, :project_export_limit, :integer, default: 6, null: false
add_column :application_settings, :project_download_export_limit, :integer, default: 1, null: false
add_column :application_settings, :group_import_limit, :integer, default: 6, null: false
add_column :application_settings, :group_export_limit, :integer, default: 6, null: false
add_column :application_settings, :group_download_export_limit, :integer, default: 1, null: false
end
end