diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-04-12 23:04:26 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-04-12 23:04:26 -0500 |
commit | acc807cd30a4b0005b552d67583b20538474a1f2 (patch) | |
tree | 3d0afbda48e35752133ad817375ac4e12a8588a1 | |
parent | 1ebcc96e3a14c5bee675df918cdecbe1a7d04b63 (diff) | |
download | gitlab-ce-acc807cd30a4b0005b552d67583b20538474a1f2.tar.gz |
Add preferred_language column to users
-rw-r--r-- | db/migrate/20170413035209_add_preferred_language_to_users.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 16 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index 5689f7331dc..03ce1257088 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170408033905) do +ActiveRecord::Schema.define(version: 20170413035209) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1304,6 +1304,7 @@ ActiveRecord::Schema.define(version: 20170408033905) do t.boolean "notified_of_own_activity" t.boolean "require_two_factor_authentication_from_group", default: false, null: false t.integer "two_factor_grace_period", default: 48, null: false + t.string "preferred_language" end add_index "users", ["admin"], name: "index_users_on_admin", using: :btree |