This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FlatArray | |
instance_methods.each do |m| | |
undef_method(m) unless m =~ /(^__|^nil\?|^send$|^object_id$)/ | |
end | |
def initialize(array) | |
@target = array | |
end | |
def respond_to?(symbol, include_priv=false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku addons:add pgbackups --remote staging | |
heroku addons:add pgbackups --remote production | |
heroku pgbackups:capture --remote production | |
heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'heroku' | |
require 'taps/operation' | |
class Database | |
def self.pull(*args) | |
new.pull(*args) | |
end | |
def initialize(uri=ENV['DATABASE_URL']) | |
@uri = uri |