diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 07:04:26 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 07:04:26 +0300 |
commit | acc807cd30a4b0005b552d67583b20538474a1f2 (patch) | |
tree | 3d0afbda48e35752133ad817375ac4e12a8588a1 /db/migrate/20170413035209_add_preferred_language_to_users.rb | |
parent | 1ebcc96e3a14c5bee675df918cdecbe1a7d04b63 (diff) |
Add preferred_language column to users
Diffstat (limited to 'db/migrate/20170413035209_add_preferred_language_to_users.rb')
-rw-r--r-- | db/migrate/20170413035209_add_preferred_language_to_users.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20170413035209_add_preferred_language_to_users.rb b/db/migrate/20170413035209_add_preferred_language_to_users.rb new file mode 100644 index 00000000000..5dc128dbaea --- /dev/null +++ b/db/migrate/20170413035209_add_preferred_language_to_users.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddPreferredLanguageToUsers < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_column_with_default :users, :preferred_language, :string, default: 'en' + end +end |