Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| Verifying my Blockstack ID is secured with the address 1JRag47EzD413oMdKLNhZWFsdafP5MMKwd https://explorer.blockstack.org/address/1JRag47EzD413oMdKLNhZWFsdafP5MMKwd |
| # Hash.diff is deprecated in Rails 5 | |
| # this method does not handle deep hashes (it could be made by recursion though) | |
| class MyModel < ApplicationRecord | |
| def diff(contract) | |
| differences = {} | |
| self.attributes.each do |k,v| | |
| if contract[k] != v | |
| differences[k] = {v => contract[k]} | |
| end |
| /* | |
| This gist shows a modification of the basic Oauth2 Passport strategy, to be suitable for Slack platform | |
| Module dependencies. | |
| */ | |
| var util = require('util') | |
| var OAuth2Strategy = require('passport-oauth2').Strategy | |
| /** | |
| * `Strategy` constructor. |