Skip to content
Snippets Groups Projects
Commit acc807cd authored by Ruben Davila's avatar Ruben Davila
Browse files

Add preferred_language column to users

parent 1ebcc96e
No related branches found
No related tags found
1 merge request!10669Internationalise Cycle Analytics page
# 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
Loading
@@ -11,7 +11,7 @@
Loading
@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
Loading
@@ -1304,6 +1304,7 @@ ActiveRecord::Schema.define(version: 20170408033905) do
Loading
@@ -1304,6 +1304,7 @@ ActiveRecord::Schema.define(version: 20170408033905) do
t.boolean "notified_of_own_activity" t.boolean "notified_of_own_activity"
t.boolean "require_two_factor_authentication_from_group", default: false, null: false t.boolean "require_two_factor_authentication_from_group", default: false, null: false
t.integer "two_factor_grace_period", default: 48, null: false t.integer "two_factor_grace_period", default: 48, null: false
t.string "preferred_language"
end end
   
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree add_index "users", ["admin"], name: "index_users_on_admin", using: :btree
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment