diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-14 18:00:37 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-15 15:31:51 +0800 |
commit | d2d30cff552e08c4b7ec2b5e23acced8eb29cbcb (patch) | |
tree | 7d7c8055b57aee85426cd150c6f42dc1b7c0a675 /db | |
parent | 1452729304393978ec93b712130dff6687db01b9 (diff) | |
download | gitlab-ce-d2d30cff552e08c4b7ec2b5e23acced8eb29cbcb.tar.gz |
Initial implementation for default artifacts expiration
TODO: Add tests and screenshots
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170214084746_add_default_artifacts_expiration_to_application_settings.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20170214084746_add_default_artifacts_expiration_to_application_settings.rb b/db/migrate/20170214084746_add_default_artifacts_expiration_to_application_settings.rb new file mode 100644 index 00000000000..728d581251c --- /dev/null +++ b/db/migrate/20170214084746_add_default_artifacts_expiration_to_application_settings.rb @@ -0,0 +1,11 @@ +class AddDefaultArtifactsExpirationToApplicationSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :application_settings, + :default_artifacts_expiration, + :integer, default: 0, null: false + end +end |