Skip to content

Instantly share code, notes, and snippets.

View edave's full-sized avatar

David Pitman edave

  • Seattle, WA
  • 19:14 (UTC -07:00)
View GitHub Profile
@edave
edave / config.rb
Created May 10, 2011 02:14 — forked from outoftime/config.rb
Support for Heroku pgbackups in Backup library
require './lib/backup/database/heroku_pgbackups.rb'
Backup::Model.new(:heroku, 'Heroku hosted data') do
database Backup::Database::HerokuPgbackups do |db|
db.name = 'my-heroku-app-name'
end
# Followed by other databases, storage, compression, etc.
end
include AASM
aasm_column :current_state
aasm_state :active
aasm_state :free_trial
aasm_state :disabled #this is for accounts that have exceed free trial and have not paid
aasm_state :payment_failed
#aasm_state :free_acct