chore: Allow super admin to suspend an account (#5174)

This commit is contained in:
Pranav Raj S
2022-08-03 11:40:03 +05:30
committed by GitHub
parent 4152883f38
commit e0cebfaa1a
20 changed files with 259 additions and 23 deletions

View 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

View File

@@ -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|