summaryrefslogtreecommitdiff
path: root/db/migrate/20151215132013_add_pages_size_to_application_settings.rb
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-07 11:31:44 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-07 11:31:44 +0000
commit14bf5c10097a788b9971b7660c6104475fdc48fb (patch)
tree7ad67a85c61dec0a01602a4415eaeb435ae396f4 /db/migrate/20151215132013_add_pages_size_to_application_settings.rb
parenta7420b77bd9b7038af3702d3665faab317048d3a (diff)
parenta965edb89d3c260394ffc987832a469e7740415d (diff)
downloadgitlab-ce-14bf5c10097a788b9971b7660c6104475fdc48fb.tar.gz
Merge branch 'master' into feature/gb/paginated-environments-api
* master: (301 commits) added missed commit in rebase update Grape routes to work with current version of Grape adds changelog fixes cursor issue on pipeline pagination Use random group name to prevent conflicts List all groups/projects for admins on explore pages Fix indentation More backport Fix filtered search user autocomplete for gitlab instances that are hosted on a subdirectory Fixed variables_controller_spec.rb test Backport of the frontend view, including tests Updated the #create action to render the show view in case of a form error Improved code styling on the variables_controller_spec Added tests for the variables controller #update action Added a variable_controller_spec test to test for flash messages on the #create action Modified redirection logic in the variables cont. Added redirections to the index actions for the variables and triggers controllers Added a flash message to the creation of triggers Fixed tests, renamed files and methods Changed the controller/route name to 'ci/cd' and renamed the corresponding files ...
Diffstat (limited to 'db/migrate/20151215132013_add_pages_size_to_application_settings.rb')
-rw-r--r--db/migrate/20151215132013_add_pages_size_to_application_settings.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20151215132013_add_pages_size_to_application_settings.rb b/db/migrate/20151215132013_add_pages_size_to_application_settings.rb
new file mode 100644
index 00000000000..f3a663f805b
--- /dev/null
+++ b/db/migrate/20151215132013_add_pages_size_to_application_settings.rb
@@ -0,0 +1,14 @@
+class AddPagesSizeToApplicationSettings < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+ disable_ddl_transaction!
+
+ DOWNTIME = false
+
+ def up
+ add_column_with_default :application_settings, :max_pages_size, :integer, default: 100, allow_null: false
+ end
+
+ def down
+ remove_column(:application_settings, :max_pages_size)
+ end
+end