Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created July 26, 2011 15:43
Show Gist options
  • Select an option

  • Save tylerflint/1107058 to your computer and use it in GitHub Desktop.

Select an option

Save tylerflint/1107058 to your computer and use it in GitHub Desktop.
creating a dummy deploy point
SimpleConfig.create(:key => 'app_uid_increment', :value => 3000)
user = User.where(:username => 'username').first
app = App.where(:name => 'app-name').first
deploy = app.deploys.create(:state => 'COMPLETE', :commit => '123', :user => user)
deploy_event = app.deploy_events.create(:deploy_id => deploy.id)
app.active_deploy_event_id = deploy_event.id
app.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment