Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190519094008_add_timezone_name_to_user_preferences.rb')
-rw-r--r--db/migrate/20190519094008_add_timezone_name_to_user_preferences.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20190519094008_add_timezone_name_to_user_preferences.rb b/db/migrate/20190519094008_add_timezone_name_to_user_preferences.rb
new file mode 100644
index 00000000000..9c0b1510cd3
--- /dev/null
+++ b/db/migrate/20190519094008_add_timezone_name_to_user_preferences.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddTimezoneNameToUserPreferences < ActiveRecord::Migration[5.1]
+ include Gitlab::Database::MigrationHelpers
+
+ disable_ddl_transaction!
+
+ DOWNTIME = false
+
+ def up
+ add_column(:user_preferences, :timezone_name, :string)
+ end
+
+ def down
+ remove_column(:user_preferences, :timezone_name)
+ end
+end