Class: DeliveryCenter::Deploy
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- DeliveryCenter::Deploy
- Defined in:
- lib/delivery_center/models/deploy.rb
Instance Method Summary collapse
Instance Method Details
#mark_current! ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/delivery_center/models/deploy.rb', line 5 def mark_current! self.class.transaction do self.class.where(application_id: application_id).update_all(current: false) self.current = true self.save! end end |