Class: UpgradeDeployPins
- Inherits:
-
Object
- Object
- UpgradeDeployPins
- Defined in:
- lib/generators/deploy_pin/upgrade/templates/upgrade_deploy_pins.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/generators/deploy_pin/upgrade/templates/upgrade_deploy_pins.rb', line 4 def change add_column :deploy_pins, :progress, :integer, default: 0, if_not_exists: true add_column :deploy_pins, :completed_at, :datetime, default: nil, if_not_exists: true # set completed_at to created_at for all completed deploy_pins DeployPin::Record.update_all('completed_at = created_at') end |