adjust templates, add timezone and locale
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
# Table name: accounts
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# locale :string not null
|
||||
# name :string not null
|
||||
# timezone :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
@@ -15,4 +17,7 @@ class Account < ApplicationRecord
|
||||
has_many :templates, dependent: :destroy
|
||||
has_many :active_users, -> { active }, dependent: :destroy,
|
||||
inverse_of: :account, class_name: 'User'
|
||||
|
||||
attribute :timezone, :string, default: 'UTC'
|
||||
attribute :locale, :string, default: 'en-US'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user