diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2023-06-10 03:29:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 03:29:37 +0200 |
commit | 4c9406bdb0938367615a12083199705304d29e27 (patch) | |
tree | e404109c920a4882e0c279c95594d20c007c6bbe /db | |
parent | 16dd3f08c1e5396d5f9ff3f13417901bc4e4b8b9 (diff) |
Add time zone preference (#25342)
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20230605085711_add_time_zone_to_users.rb | 7 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20230605085711_add_time_zone_to_users.rb b/db/migrate/20230605085711_add_time_zone_to_users.rb new file mode 100644 index 00000000000..fc6c0b091cf --- /dev/null +++ b/db/migrate/20230605085711_add_time_zone_to_users.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddTimeZoneToUsers < ActiveRecord::Migration[6.1] + def change + add_column :users, :time_zone, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 28d8d839023..9866b101495 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_06_05_085710) do +ActiveRecord::Schema.define(version: 2023_06_05_085711) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1088,6 +1088,7 @@ ActiveRecord::Schema.define(version: 2023_06_05_085710) do t.boolean "skip_sign_in_token" t.bigint "role_id" t.text "settings" + t.string "time_zone" t.index ["account_id"], name: "index_users_on_account_id" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["created_by_application_id"], name: "index_users_on_created_by_application_id", where: "(created_by_application_id IS NOT NULL)" |