Skip to content

Instantly share code, notes, and snippets.

@mitchellhenke
Created October 22, 2014 17:54
Show Gist options
  • Save mitchellhenke/cf6ba4bfb69e9cdad0c1 to your computer and use it in GitHub Desktop.
Save mitchellhenke/cf6ba4bfb69e9cdad0c1 to your computer and use it in GitHub Desktop.
after_connect = proc do |connection|
connection.query("UPDATE items set text='testing' where id = 34;")
end
Sequel::Model.db = Sequel.connect(ENV['DATABASE_URL'], after_connect: after_connect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment