feat(i18n): add locale to user
This commit is contained in:
parent
072a26394b
commit
f1ff6da81b
3 changed files with 8 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
# failed_attempts :integer default(0), not null
|
# failed_attempts :integer default(0), not null
|
||||||
# last_sign_in_at :datetime
|
# last_sign_in_at :datetime
|
||||||
# last_sign_in_ip :string
|
# last_sign_in_ip :string
|
||||||
|
# locale :string
|
||||||
# locked_at :datetime
|
# locked_at :datetime
|
||||||
# loged_in_with_france_connect :string default(NULL)
|
# loged_in_with_france_connect :string default(NULL)
|
||||||
# remember_created_at :datetime
|
# remember_created_at :datetime
|
||||||
|
|
5
db/migrate/20210826161956_add_locale_to_users.rb
Normal file
5
db/migrate/20210826161956_add_locale_to_users.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddLocaleToUsers < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :users, :locale, :string
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,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: 2021_08_18_083349) do
|
ActiveRecord::Schema.define(version: 2021_08_26_161956) 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"
|
||||||
|
@ -753,6 +753,7 @@ ActiveRecord::Schema.define(version: 2021_08_18_083349) do
|
||||||
t.bigint "instructeur_id"
|
t.bigint "instructeur_id"
|
||||||
t.bigint "administrateur_id"
|
t.bigint "administrateur_id"
|
||||||
t.bigint "expert_id"
|
t.bigint "expert_id"
|
||||||
|
t.string "locale"
|
||||||
t.index ["administrateur_id"], name: "index_users_on_administrateur_id"
|
t.index ["administrateur_id"], name: "index_users_on_administrateur_id"
|
||||||
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
||||||
t.index ["email"], name: "index_users_on_email", unique: true
|
t.index ["email"], name: "index_users_on_email", unique: true
|
||||||
|
|
Loading…
Reference in a new issue