chore: Allow super admin to suspend an account (#5174)
This commit is contained in:
6
db/migrate/20220802133722_add_status_to_accounts.rb
Normal file
6
db/migrate/20220802133722_add_status_to_accounts.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddStatusToAccounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :accounts, :status, :integer, default: 0
|
||||
add_index :accounts, :status
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2022_07_20_123615) do
|
||||
ActiveRecord::Schema.define(version: 2022_08_02_133722) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
@@ -54,6 +54,8 @@ ActiveRecord::Schema.define(version: 2022_07_20_123615) do
|
||||
t.integer "auto_resolve_duration"
|
||||
t.jsonb "limits", default: {}
|
||||
t.jsonb "custom_attributes", default: {}
|
||||
t.integer "status", default: 0
|
||||
t.index ["status"], name: "index_accounts_on_status"
|
||||
end
|
||||
|
||||
create_table "action_mailbox_inbound_emails", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user