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
path: root/db
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-05-03 07:36:36 +0300
committerRuben Davila <rdavila84@gmail.com>2017-05-03 07:36:36 +0300
commit6d5364cfb0e39f49afac9b465f37bd19185c3755 (patch)
tree1bdb7ff4e44307f561efcda47eef7f0f775258fe /db
parentbbfbcebdf69261bac6aa142f430719955e8e86b9 (diff)
First round of updates from the code review.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170413035209_add_preferred_language_to_users.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/db/migrate/20170413035209_add_preferred_language_to_users.rb b/db/migrate/20170413035209_add_preferred_language_to_users.rb
index 6fe91656eeb..92f1d6f2436 100644
--- a/db/migrate/20170413035209_add_preferred_language_to_users.rb
+++ b/db/migrate/20170413035209_add_preferred_language_to_users.rb
@@ -6,10 +6,8 @@ class AddPreferredLanguageToUsers < ActiveRecord::Migration
DOWNTIME = false
- disable_ddl_transaction!
-
def up
- add_column_with_default :users, :preferred_language, :string, default: 'en'
+ add_column :users, :preferred_language, :string
end
def down