Class: BeforeDbDrop

Inherits:
Object
  • Object
show all
Defined in:
lib/healthcare/infra/before_db_drop.rb

Class Method Summary collapse

Class Method Details

.execute(customer_code) ⇒ Object



2
3
4
5
# File 'lib/healthcare/infra/before_db_drop.rb', line 2

def self.execute(customer_code)
  ::Apartment::Tenant.drop(customer_code)
  ::Apartment::Tenant.create(customer_code)
end