Skip to content

Instantly share code, notes, and snippets.

class TimestampsWithTimeZone < ActiveRecord::Migration
def change
res = execute <<-SQL.strip_heredoc
SELECT table_name from INFORMATION_SCHEMA.views WHERE table_schema = ANY (current_schemas(false));
SQL
view_names = res.to_a.map(&:first).map(&:to_a).map(&:second)

Keybase proof

I hereby claim:

  • I am DrTom on github.
  • I am drtom (https://keybase.io/drtom) on keybase.
  • I have a public key whose fingerprint is D180 BE89 E69F 6399 711D 1590 E293 459C B10B 0442

To claim this, I am signing this object:

require 'builder'
require 'execjs'
require 'open3'
require 'tilt'
require (File.dirname __FILE__) + "/lib/pandoc_helper"
require (File.dirname __FILE__) + "/lib/showdown_helper"
require (File.dirname __FILE__) + "/lib/posts_helper"