Skip to content

Commit

Permalink
[#330] improved code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Stepanov committed Dec 5, 2022
1 parent 80f0c7a commit 02c7ff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class UffizziCore::Migrations::AccountService
class << self
def remove_draft_accounts
UffizziCore::Account.where(state: 'draft').find_each(&:destroy)
UffizziCore::Account.where(state: 'draft').destroy_all
end
end
end

0 comments on commit 02c7ff4

Please sign in to comment.