dbhero 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +21 -0
  4. data/app/assets/javascripts/dbhero/application.js +45 -0
  5. data/app/assets/javascripts/dbhero/dataclips.js +42 -0
  6. data/app/assets/stylesheets/dbhero/application.css.scss +88 -0
  7. data/app/controllers/dbhero/application_controller.rb +30 -0
  8. data/app/controllers/dbhero/dataclips_controller.rb +84 -0
  9. data/app/helpers/dbhero/application_helper.rb +4 -0
  10. data/app/helpers/dbhero/dataclips_helper.rb +4 -0
  11. data/app/models/dbhero/dataclip.rb +50 -0
  12. data/app/views/dbhero/dataclips/_clip_table.html.slim +38 -0
  13. data/app/views/dbhero/dataclips/_form.html.slim +32 -0
  14. data/app/views/dbhero/dataclips/edit.html.slim +6 -0
  15. data/app/views/dbhero/dataclips/index.html.slim +25 -0
  16. data/app/views/dbhero/dataclips/new.html.slim +2 -0
  17. data/app/views/dbhero/dataclips/show.html.slim +18 -0
  18. data/app/views/layouts/dbhero/application.html.slim +24 -0
  19. data/config/routes.rb +6 -0
  20. data/lib/dbhero.rb +7 -0
  21. data/lib/dbhero/configuration.rb +39 -0
  22. data/lib/dbhero/engine.rb +9 -0
  23. data/lib/dbhero/gdrive_exporter.rb +56 -0
  24. data/lib/dbhero/router_constraint.rb +43 -0
  25. data/lib/dbhero/version.rb +3 -0
  26. data/lib/generators/dbhero/install/install_generator.rb +29 -0
  27. data/lib/generators/dbhero/install/templates/dbhero.rb +26 -0
  28. data/lib/generators/dbhero/install/templates/migrations/create_dbhero_dataclips.rb +17 -0
  29. data/lib/tasks/dbhero_tasks.rake +4 -0
  30. data/spec/controllers/dbhero/dataclips_controller_spec.rb +293 -0
  31. data/spec/dummy/README.rdoc +28 -0
  32. data/spec/dummy/Rakefile +6 -0
  33. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  34. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  35. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  36. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  37. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  38. data/spec/dummy/bin/bundle +3 -0
  39. data/spec/dummy/bin/rails +4 -0
  40. data/spec/dummy/bin/rake +4 -0
  41. data/spec/dummy/config.ru +4 -0
  42. data/spec/dummy/config/application.rb +27 -0
  43. data/spec/dummy/config/boot.rb +5 -0
  44. data/spec/dummy/config/database.yml +85 -0
  45. data/spec/dummy/config/environment.rb +5 -0
  46. data/spec/dummy/config/environments/development.rb +37 -0
  47. data/spec/dummy/config/environments/production.rb +78 -0
  48. data/spec/dummy/config/environments/test.rb +39 -0
  49. data/spec/dummy/config/initializers/assets.rb +8 -0
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy/config/initializers/dbhero.rb +26 -0
  53. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/spec/dummy/config/initializers/inflections.rb +16 -0
  55. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  56. data/spec/dummy/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/config/locales/en.yml +23 -0
  59. data/spec/dummy/config/routes.rb +4 -0
  60. data/spec/dummy/config/secrets.yml +22 -0
  61. data/spec/dummy/db/migrate/20150323172444_create_dbhero_dataclips.rb +17 -0
  62. data/spec/dummy/db/schema.rb +32 -0
  63. data/spec/dummy/log/development.log +27 -0
  64. data/spec/dummy/log/test.log +3758 -0
  65. data/spec/dummy/public/404.html +67 -0
  66. data/spec/dummy/public/422.html +67 -0
  67. data/spec/dummy/public/500.html +66 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/factories.rb +8 -0
  70. data/spec/models/dbhero/dataclip_spec.rb +119 -0
  71. data/spec/rails_helper.rb +57 -0
  72. data/spec/spec_helper.rb +90 -0
  73. metadata +312 -0
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Dbhero::Engine => "/dbhero", as: 'dbhero'
4
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: c9bccff487d3637543da9433f1c70584a39d2c28a776e9bbbc1870ce556481bda5d4d7d932fd25b25fd327e59ec22261e9bf3378d5bee352e7a90a8fee39b641
15
+
16
+ test:
17
+ secret_key_base: 3c0781205f2ef24221ce87b3dd27654e6723e4aed70b7ca3aac6458dd62c8b936fc4ec66f7727ea970e5e673122ae8f8089a1856e03d3303fac2a122416dc2ce
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,17 @@
1
+ class CreateDbheroDataclips < ActiveRecord::Migration
2
+ def change
3
+ create_table :dbhero_dataclips do |t|
4
+ t.text :description, null: false
5
+ t.text :raw_query, null: false
6
+ t.text :token, null: false
7
+ t.text :user
8
+ t.boolean :private, default: false, null: false
9
+
10
+ t.timestamps null: false
11
+ end
12
+
13
+ add_index :dbhero_dataclips, :token, unique: true
14
+ add_index :dbhero_dataclips, :user
15
+ end
16
+ end
17
+
@@ -0,0 +1,32 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150323172444) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "dbhero_dataclips", force: :cascade do |t|
20
+ t.text "description", null: false
21
+ t.text "raw_query", null: false
22
+ t.text "token", null: false
23
+ t.text "user"
24
+ t.boolean "private", default: false, null: false
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ end
28
+
29
+ add_index "dbhero_dataclips", ["token"], name: "index_dbhero_dataclips_on_token", unique: true, using: :btree
30
+ add_index "dbhero_dataclips", ["user"], name: "index_dbhero_dataclips_on_user", using: :btree
31
+
32
+ end
@@ -0,0 +1,27 @@
1
+  (28.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateDbheroDataclips (20150323172319)
5
+  (0.2ms) BEGIN
6
+  (0.1ms) ROLLBACK
7
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+ Migrating to CreateDbheroDataclips (20150323172444)
9
+  (0.2ms) BEGIN
10
+  (24.4ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
11
+  (1.4ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" ("token")
12
+  (1.2ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" ("user")
13
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150323172444"]]
14
+  (1.7ms) COMMIT
15
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
+  (4.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
17
+ FROM pg_constraint c
18
+ JOIN pg_class t1 ON c.conrelid = t1.oid
19
+ JOIN pg_class t2 ON c.confrelid = t2.oid
20
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
21
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
22
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
23
+ WHERE c.contype = 'f'
24
+ AND t1.relname = 'dbhero_dataclips'
25
+ AND t3.nspname = ANY (current_schemas(false))
26
+ ORDER BY c.conname
27
+ 
@@ -0,0 +1,3758 @@
1
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (123.4ms) DROP DATABASE IF EXISTS "dummy_test"
3
+  (351.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
4
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
5
+  (9.7ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
6
+  (1.8ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
7
+  (1.2ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
8
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
9
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+  (0.4ms) SELECT version FROM "schema_migrations"
11
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
12
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+  (0.2ms) BEGIN
14
+ Processing by Dbhero::DataclipsController#index as HTML
15
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
16
+  (0.2ms) ROLLBACK
17
+  (0.1ms) BEGIN
18
+ Processing by Dbhero::DataclipsController#index as HTML
19
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
20
+ Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.0ms)
21
+  (0.2ms) ROLLBACK
22
+  (0.1ms) BEGIN
23
+ Processing by Dbhero::DataclipsController#index as HTML
24
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
25
+ Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
26
+  (0.2ms) ROLLBACK
27
+  (0.1ms) BEGIN
28
+ Processing by Dbhero::DataclipsController#index as HTML
29
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
30
+  (0.2ms) ROLLBACK
31
+  (0.1ms) BEGIN
32
+ Processing by Dbhero::DataclipsController#index as HTML
33
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
34
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
35
+  (0.2ms) ROLLBACK
36
+  (0.1ms) BEGIN
37
+ Processing by Dbhero::DataclipsController#new as HTML
38
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
39
+  (0.3ms) ROLLBACK
40
+  (0.1ms) BEGIN
41
+ Processing by Dbhero::DataclipsController#new as HTML
42
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
43
+ Completed 200 OK in 18ms (Views: 3.6ms | ActiveRecord: 7.5ms)
44
+  (0.2ms) ROLLBACK
45
+  (0.1ms) BEGIN
46
+ Processing by Dbhero::DataclipsController#new as HTML
47
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
48
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
49
+  (0.2ms) ROLLBACK
50
+  (0.1ms) BEGIN
51
+ Processing by Dbhero::DataclipsController#new as HTML
52
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
53
+  (0.2ms) ROLLBACK
54
+  (0.1ms) BEGIN
55
+ Processing by Dbhero::DataclipsController#new as HTML
56
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
57
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
58
+  (0.2ms) ROLLBACK
59
+  (0.1ms) BEGIN
60
+ Processing by Dbhero::DataclipsController#create as HTML
61
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
62
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
63
+  (0.2ms) ROLLBACK
64
+  (0.1ms) BEGIN
65
+ Processing by Dbhero::DataclipsController#create as HTML
66
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
67
+  (0.2ms) SAVEPOINT active_record_1
68
+ SQL (1.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:00.177000"], ["updated_at", "2015-03-23 20:58:00.177000"], ["token", "db60bcb7-1663-49c8-9b98-00ddcf2e816d"]]
69
+  (0.2ms) RELEASE SAVEPOINT active_record_1
70
+ Redirected to http://test.host/dbhero/dataclips/db60bcb7-1663-49c8-9b98-00ddcf2e816d/edit
71
+ Completed 302 Found in 21ms (ActiveRecord: 1.7ms)
72
+  (0.4ms) ROLLBACK
73
+  (0.1ms) BEGIN
74
+ Processing by Dbhero::DataclipsController#create as HTML
75
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
76
+  (0.2ms) SAVEPOINT active_record_1
77
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:00.198833"], ["updated_at", "2015-03-23 20:58:00.198833"], ["token", "75fbbe28-1898-46f7-b692-d7b2ec05adb3"]]
78
+  (0.1ms) RELEASE SAVEPOINT active_record_1
79
+ Redirected to http://test.host/dbhero/dataclips/75fbbe28-1898-46f7-b692-d7b2ec05adb3/edit
80
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
81
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
82
+  (0.2ms) ROLLBACK
83
+  (0.1ms) BEGIN
84
+ Processing by Dbhero::DataclipsController#create as HTML
85
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
86
+  (0.1ms) SAVEPOINT active_record_1
87
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:00.216297"], ["updated_at", "2015-03-23 20:58:00.216297"], ["token", "bd7a501a-305d-4b73-8da8-eb9540d1e617"]]
88
+  (0.2ms) RELEASE SAVEPOINT active_record_1
89
+ Redirected to http://test.host/dbhero/dataclips/bd7a501a-305d-4b73-8da8-eb9540d1e617/edit
90
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
91
+  (0.4ms) ROLLBACK
92
+  (0.1ms) BEGIN
93
+ Processing by Dbhero::DataclipsController#create as HTML
94
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
95
+  (0.1ms) SAVEPOINT active_record_1
96
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:00.224901"], ["updated_at", "2015-03-23 20:58:00.224901"], ["token", "20a3bd6b-1431-4d8d-bcaf-ea94be2eafa0"]]
97
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98
+ Redirected to http://test.host/dbhero/dataclips/20a3bd6b-1431-4d8d-bcaf-ea94be2eafa0/edit
99
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
100
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
101
+  (0.2ms) ROLLBACK
102
+  (0.2ms) BEGIN
103
+ Processing by Dbhero::DataclipsController#create as HTML
104
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
105
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
106
+  (0.2ms) ROLLBACK
107
+  (0.1ms) BEGIN
108
+ Processing by Dbhero::DataclipsController#create as HTML
109
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
110
+  (0.1ms) SAVEPOINT active_record_1
111
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.239284"], ["updated_at", "2015-03-23 20:58:00.239284"], ["token", "c1055406-e9e2-475c-9572-71301402a2d8"]]
112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
113
+ Redirected to http://test.host/dbhero/dataclips/c1055406-e9e2-475c-9572-71301402a2d8/edit
114
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
115
+  (0.1ms) ROLLBACK
116
+  (0.2ms) BEGIN
117
+ Processing by Dbhero::DataclipsController#create as HTML
118
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
119
+  (0.2ms) SAVEPOINT active_record_1
120
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.246930"], ["updated_at", "2015-03-23 20:58:00.246930"], ["token", "13d68c4c-81bd-4d44-8254-239e63e4a4ce"]]
121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
122
+ Redirected to http://test.host/dbhero/dataclips/13d68c4c-81bd-4d44-8254-239e63e4a4ce/edit
123
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
124
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
125
+  (0.1ms) ROLLBACK
126
+  (0.1ms) BEGIN
127
+  (0.1ms) SAVEPOINT active_record_1
128
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.253559"], ["updated_at", "2015-03-23 20:58:00.253559"], ["token", "21076ed2-4f87-4bf1-a015-e398851d8db5"]]
129
+  (0.3ms) RELEASE SAVEPOINT active_record_1
130
+ Processing by Dbhero::DataclipsController#edit as HTML
131
+ Parameters: {"id"=>"21076ed2-4f87-4bf1-a015-e398851d8db5"}
132
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
133
+  (0.4ms) ROLLBACK
134
+  (0.1ms) BEGIN
135
+  (0.1ms) SAVEPOINT active_record_1
136
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.261333"], ["updated_at", "2015-03-23 20:58:00.261333"], ["token", "cabe9866-ca5c-4bd2-9878-1ccf665a5f74"]]
137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138
+ Processing by Dbhero::DataclipsController#edit as HTML
139
+ Parameters: {"id"=>"cabe9866-ca5c-4bd2-9878-1ccf665a5f74"}
140
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "cabe9866-ca5c-4bd2-9878-1ccf665a5f74"]]
141
+  (0.6ms) SAVEPOINT active_record_1
142
+  (0.7ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
143
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
144
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
145
+ ^
146
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
147
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
148
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
149
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.4ms)
150
+ Completed 200 OK in 13ms (Views: 6.3ms | ActiveRecord: 1.9ms)
151
+  (0.2ms) ROLLBACK
152
+  (0.2ms) BEGIN
153
+  (0.2ms) SAVEPOINT active_record_1
154
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.283510"], ["updated_at", "2015-03-23 20:58:00.283510"], ["token", "29207f92-99f8-478d-b81f-aeb389019c8b"]]
155
+  (0.2ms) RELEASE SAVEPOINT active_record_1
156
+ Processing by Dbhero::DataclipsController#edit as HTML
157
+ Parameters: {"id"=>"29207f92-99f8-478d-b81f-aeb389019c8b"}
158
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "29207f92-99f8-478d-b81f-aeb389019c8b"]]
159
+  (0.2ms) SAVEPOINT active_record_1
160
+  (0.7ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
161
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
162
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
163
+ ^
164
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
165
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
166
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
167
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
168
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 1.7ms)
169
+  (0.6ms) ROLLBACK
170
+  (0.2ms) BEGIN
171
+  (0.2ms) SAVEPOINT active_record_1
172
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.303812"], ["updated_at", "2015-03-23 20:58:00.303812"], ["token", "c00a9658-fa25-41d7-a91d-acc0a9c60359"]]
173
+  (0.2ms) RELEASE SAVEPOINT active_record_1
174
+ Processing by Dbhero::DataclipsController#edit as HTML
175
+ Parameters: {"id"=>"c00a9658-fa25-41d7-a91d-acc0a9c60359"}
176
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
177
+  (0.2ms) ROLLBACK
178
+  (0.1ms) BEGIN
179
+  (0.2ms) SAVEPOINT active_record_1
180
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.313523"], ["updated_at", "2015-03-23 20:58:00.313523"], ["token", "4dd38482-f172-43dd-8907-5e11dc06b6b2"]]
181
+  (0.2ms) RELEASE SAVEPOINT active_record_1
182
+ Processing by Dbhero::DataclipsController#edit as HTML
183
+ Parameters: {"id"=>"4dd38482-f172-43dd-8907-5e11dc06b6b2"}
184
+ Dbhero::Dataclip Load (0.8ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "4dd38482-f172-43dd-8907-5e11dc06b6b2"]]
185
+  (0.3ms) SAVEPOINT active_record_1
186
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
187
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
188
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
189
+ ^
190
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
191
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
192
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
193
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.4ms)
194
+ Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 1.8ms)
195
+  (0.2ms) ROLLBACK
196
+  (0.1ms) BEGIN
197
+ Processing by Dbhero::DataclipsController#create as HTML
198
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
199
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
200
+  (0.2ms) ROLLBACK
201
+  (0.2ms) BEGIN
202
+  (0.7ms) SAVEPOINT active_record_1
203
+ SQL (3.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.336540"], ["updated_at", "2015-03-23 20:58:00.336540"], ["token", "116d720a-3723-4a81-9342-f53868dc240a"]]
204
+  (0.2ms) RELEASE SAVEPOINT active_record_1
205
+ Processing by Dbhero::DataclipsController#update as HTML
206
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"116d720a-3723-4a81-9342-f53868dc240a"}
207
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "116d720a-3723-4a81-9342-f53868dc240a"]]
208
+  (0.2ms) SAVEPOINT active_record_1
209
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.346712"], ["id", 12]]
210
+  (0.3ms) RELEASE SAVEPOINT active_record_1
211
+ Redirected to http://test.host/dbhero/dataclips/116d720a-3723-4a81-9342-f53868dc240a/edit
212
+ Completed 302 Found in 18ms (ActiveRecord: 1.6ms)
213
+  (0.3ms) ROLLBACK
214
+  (0.1ms) BEGIN
215
+  (0.2ms) SAVEPOINT active_record_1
216
+ SQL (3.8ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.365974"], ["updated_at", "2015-03-23 20:58:00.365974"], ["token", "12dc8f6e-c11b-48d6-abb2-6a79f627a9fe"]]
217
+  (0.2ms) RELEASE SAVEPOINT active_record_1
218
+ Processing by Dbhero::DataclipsController#update as HTML
219
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"12dc8f6e-c11b-48d6-abb2-6a79f627a9fe"}
220
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "12dc8f6e-c11b-48d6-abb2-6a79f627a9fe"]]
221
+  (0.1ms) SAVEPOINT active_record_1
222
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.375922"], ["id", 13]]
223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
224
+ Redirected to http://test.host/dbhero/dataclips/12dc8f6e-c11b-48d6-abb2-6a79f627a9fe/edit
225
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
226
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
227
+  (0.1ms) ROLLBACK
228
+  (0.1ms) BEGIN
229
+  (0.5ms) SAVEPOINT active_record_1
230
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.384047"], ["updated_at", "2015-03-23 20:58:00.384047"], ["token", "5a5718db-3b92-4fd4-9a4d-1fbd79f201d2"]]
231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
232
+ Processing by Dbhero::DataclipsController#update as HTML
233
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"5a5718db-3b92-4fd4-9a4d-1fbd79f201d2"}
234
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "5a5718db-3b92-4fd4-9a4d-1fbd79f201d2"]]
235
+  (0.2ms) SAVEPOINT active_record_1
236
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.389830"], ["id", 14]]
237
+  (0.5ms) RELEASE SAVEPOINT active_record_1
238
+ Redirected to http://test.host/dbhero/dataclips/5a5718db-3b92-4fd4-9a4d-1fbd79f201d2/edit
239
+ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)
240
+  (0.2ms) ROLLBACK
241
+  (0.2ms) BEGIN
242
+  (0.3ms) SAVEPOINT active_record_1
243
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.399822"], ["updated_at", "2015-03-23 20:58:00.399822"], ["token", "b862f14d-f3f2-4e6b-a877-7af93e6e09da"]]
244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
245
+ Processing by Dbhero::DataclipsController#update as HTML
246
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"b862f14d-f3f2-4e6b-a877-7af93e6e09da"}
247
+ Dbhero::Dataclip Load (1.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "b862f14d-f3f2-4e6b-a877-7af93e6e09da"]]
248
+  (0.2ms) SAVEPOINT active_record_1
249
+ SQL (0.6ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.407694"], ["id", 15]]
250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
251
+ Redirected to http://test.host/dbhero/dataclips/b862f14d-f3f2-4e6b-a877-7af93e6e09da/edit
252
+ Completed 302 Found in 10ms (ActiveRecord: 2.3ms)
253
+ Dbhero::Dataclip Load (0.8ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
254
+  (0.9ms) ROLLBACK
255
+  (0.2ms) BEGIN
256
+  (0.2ms) SAVEPOINT active_record_1
257
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.423279"], ["updated_at", "2015-03-23 20:58:00.423279"], ["token", "70583a13-9593-44c7-80c3-e7e113c68274"]]
258
+  (0.3ms) RELEASE SAVEPOINT active_record_1
259
+ Processing by Dbhero::DataclipsController#update as HTML
260
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"70583a13-9593-44c7-80c3-e7e113c68274"}
261
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
262
+  (2.9ms) ROLLBACK
263
+  (0.2ms) BEGIN
264
+  (0.2ms) SAVEPOINT active_record_1
265
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.439831"], ["updated_at", "2015-03-23 20:58:00.439831"], ["token", "849ccc5a-c20f-4328-8e44-dbe84059d73b"]]
266
+  (0.2ms) RELEASE SAVEPOINT active_record_1
267
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
268
+  (0.2ms) ROLLBACK
269
+  (0.1ms) BEGIN
270
+  (0.8ms) SAVEPOINT active_record_1
271
+ SQL (1.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.450357"], ["updated_at", "2015-03-23 20:58:00.450357"], ["token", "1603165b-31eb-491d-9f57-223c61e6407b"]]
272
+  (0.2ms) RELEASE SAVEPOINT active_record_1
273
+ Processing by Dbhero::DataclipsController#update as HTML
274
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"1603165b-31eb-491d-9f57-223c61e6407b"}
275
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "1603165b-31eb-491d-9f57-223c61e6407b"]]
276
+  (0.2ms) SAVEPOINT active_record_1
277
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.458386"], ["id", 18]]
278
+  (0.2ms) RELEASE SAVEPOINT active_record_1
279
+ Redirected to http://test.host/dbhero/dataclips/1603165b-31eb-491d-9f57-223c61e6407b/edit
280
+ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)
281
+  (1.2ms) ROLLBACK
282
+  (0.1ms) BEGIN
283
+  (0.2ms) SAVEPOINT active_record_1
284
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:00.467800"], ["updated_at", "2015-03-23 20:58:00.467800"], ["token", "0d1f79cc-8ad1-404d-b953-eac8f4a18074"]]
285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
286
+ Processing by Dbhero::DataclipsController#update as HTML
287
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0d1f79cc-8ad1-404d-b953-eac8f4a18074"}
288
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "0d1f79cc-8ad1-404d-b953-eac8f4a18074"]]
289
+  (0.2ms) SAVEPOINT active_record_1
290
+ SQL (1.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:00.474030"], ["id", 19]]
291
+  (0.2ms) RELEASE SAVEPOINT active_record_1
292
+ Redirected to http://test.host/dbhero/dataclips/0d1f79cc-8ad1-404d-b953-eac8f4a18074/edit
293
+ Completed 302 Found in 6ms (ActiveRecord: 2.0ms)
294
+ Dbhero::Dataclip Load (2.1ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
295
+  (0.2ms) ROLLBACK
296
+  (0.1ms) BEGIN
297
+  (0.2ms) ROLLBACK
298
+  (0.1ms) BEGIN
299
+  (0.2ms) ROLLBACK
300
+  (0.1ms) BEGIN
301
+  (0.1ms) ROLLBACK
302
+  (0.1ms) BEGIN
303
+  (0.1ms) SAVEPOINT active_record_1
304
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.504315"], ["updated_at", "2015-03-23 20:58:00.504315"], ["token", "534b3191-7af9-4f5f-8755-2ed10fb7f7d6"]]
305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
306
+  (0.1ms) ROLLBACK
307
+  (0.1ms) BEGIN
308
+  (0.1ms) SAVEPOINT active_record_1
309
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 20:58:00.507187"], ["created_at", "2015-03-23 20:58:00.509595"], ["token", "7e3d579c-85df-47fe-a2a1-a7c9ef848a67"]]
310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
311
+  (0.1ms) SAVEPOINT active_record_1
312
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 20:58:00.512002"], ["created_at", "2015-03-23 20:58:00.512748"], ["token", "e43f9247-686a-4986-8696-2d5996a63b35"]]
313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
314
+  (0.1ms) SAVEPOINT active_record_1
315
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 20:58:00.514163"], ["created_at", "2015-03-23 20:58:00.514941"], ["token", "a1204901-1b87-48cb-88e0-00d14c9823b3"]]
316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
317
+  (0.2ms) ROLLBACK
318
+  (0.1ms) BEGIN
319
+  (0.1ms) SAVEPOINT active_record_1
320
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.519400"], ["updated_at", "2015-03-23 20:58:00.519400"], ["token", "a701e541-1cca-47d1-b731-b146483c8bf3"]]
321
+  (0.2ms) RELEASE SAVEPOINT active_record_1
322
+  (0.2ms) ROLLBACK
323
+  (0.1ms) BEGIN
324
+  (0.1ms) SAVEPOINT active_record_1
325
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.524442"], ["updated_at", "2015-03-23 20:58:00.524442"], ["token", "9e8684b7-04cc-4d6e-b3f0-0d535d9f8772"]]
326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
327
+  (0.1ms) ROLLBACK
328
+  (0.1ms) BEGIN
329
+  (0.1ms) SAVEPOINT active_record_1
330
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.527889"], ["updated_at", "2015-03-23 20:58:00.527889"], ["token", "0b64f27a-e255-4954-ab64-8e1ae4ccfa2f"]]
331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
332
+  (0.1ms) ROLLBACK
333
+  (0.1ms) BEGIN
334
+  (0.1ms) SAVEPOINT active_record_1
335
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:00.531761"], ["updated_at", "2015-03-23 20:58:00.531761"], ["token", "2bd1fd03-e0f8-425c-b0f5-e1d6f1598a29"]]
336
+  (0.2ms) RELEASE SAVEPOINT active_record_1
337
+  (0.1ms) SAVEPOINT active_record_1
338
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
339
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
340
+  (0.1ms) ROLLBACK
341
+  (0.1ms) BEGIN
342
+  (0.1ms) SAVEPOINT active_record_1
343
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 20:58:00.536805"], ["updated_at", "2015-03-23 20:58:00.536805"], ["token", "40cb2035-9f4c-446c-9d6c-07f72e85eaea"]]
344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
345
+  (0.1ms) SAVEPOINT active_record_1
346
+  (0.3ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
347
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
348
+  (0.1ms) ROLLBACK
349
+  (0.1ms) BEGIN
350
+  (0.1ms) SAVEPOINT active_record_1
351
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:00.541096"], ["updated_at", "2015-03-23 20:58:00.541096"], ["token", "df450411-350b-4e6a-ae66-5425e8ab855a"]]
352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
353
+  (0.1ms) SAVEPOINT active_record_1
354
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
355
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
356
+  (0.4ms) ROLLBACK
357
+  (0.1ms) BEGIN
358
+  (0.1ms) SAVEPOINT active_record_1
359
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:00.547223"], ["updated_at", "2015-03-23 20:58:00.547223"], ["token", "64ca35fb-27d4-47e0-ab23-358262bfd3a8"]]
360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
361
+  (0.1ms) SAVEPOINT active_record_1
362
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
363
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
364
+  (0.2ms) ROLLBACK
365
+  (0.1ms) BEGIN
366
+  (0.1ms) SAVEPOINT active_record_1
367
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.551608"], ["updated_at", "2015-03-23 20:58:00.551608"], ["token", "fdea7d61-b693-4cdf-a127-48c2da0f784f"]]
368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
369
+  (0.1ms) SAVEPOINT active_record_1
370
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.553747"], ["updated_at", "2015-03-23 20:58:00.553747"], ["token", "d6823c51-df66-4e7a-abfd-24290c13d9b1"]]
371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
372
+  (0.1ms) SAVEPOINT active_record_1
373
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.555747"], ["updated_at", "2015-03-23 20:58:00.555747"], ["token", "d9fa3482-8648-4ccc-9cf5-0f52ba4369e5"]]
374
+  (0.3ms) RELEASE SAVEPOINT active_record_1
375
+  (0.1ms) SAVEPOINT active_record_1
376
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.559417"], ["updated_at", "2015-03-23 20:58:00.559417"], ["token", "8dca8343-128b-47da-adab-db36233cdada"]]
377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
378
+  (0.1ms) SAVEPOINT active_record_1
379
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.561410"], ["updated_at", "2015-03-23 20:58:00.561410"], ["token", "585283df-9c54-4e7a-9556-761712a776aa"]]
380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
381
+  (0.1ms) SAVEPOINT active_record_1
382
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 20:58:00.563359"], ["updated_at", "2015-03-23 20:58:00.563359"], ["token", "35f45912-194d-46ef-af55-2ae756dab81d"]]
383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
384
+  (0.1ms) SAVEPOINT active_record_1
385
+  (3.6ms) TRUNCATE table dbhero_dataclips
386
+  (1.5ms) ROLLBACK TO SAVEPOINT active_record_1
387
+  (1.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
388
+  (0.2ms) ROLLBACK
389
+  (0.1ms) BEGIN
390
+  (0.1ms) SAVEPOINT active_record_1
391
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.575467"], ["updated_at", "2015-03-23 20:58:00.575467"], ["token", "48146982-ba6e-4c6b-92cc-40b112fd52b3"]]
392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
393
+  (0.1ms) SAVEPOINT active_record_1
394
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.577690"], ["updated_at", "2015-03-23 20:58:00.577690"], ["token", "b01c8852-f296-4ba2-9c06-bfe30a7034f1"]]
395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
396
+  (0.3ms) SAVEPOINT active_record_1
397
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.580166"], ["updated_at", "2015-03-23 20:58:00.580166"], ["token", "24d02854-3e05-4eaa-ace9-3c0e98802811"]]
398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
399
+  (0.1ms) SAVEPOINT active_record_1
400
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.582694"], ["updated_at", "2015-03-23 20:58:00.582694"], ["token", "c05641aa-7fdc-422b-98da-bd857b340e4a"]]
401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
402
+  (0.1ms) SAVEPOINT active_record_1
403
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:00.584925"], ["updated_at", "2015-03-23 20:58:00.584925"], ["token", "4af4e89b-6bad-442b-afe5-1d5b59a20d5f"]]
404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
405
+  (0.2ms) SAVEPOINT active_record_1
406
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 20:58:00.587226"], ["updated_at", "2015-03-23 20:58:00.587226"], ["token", "9974d2dd-f503-403c-9db3-a0f9fecd483e"]]
407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
408
+  (0.1ms) SAVEPOINT active_record_1
409
+  (0.3ms) TRUNCATE table dbhero_dataclips; commit;
410
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
411
+ : TRUNCATE table dbhero_dataclips; commit;
412
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
413
+  (0.3ms) SELECT COUNT(*) FROM "dbhero_dataclips"
414
+  (0.1ms) ROLLBACK
415
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
416
+  (120.6ms) DROP DATABASE IF EXISTS "dummy_test"
417
+  (363.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
418
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
419
+  (14.4ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
420
+  (2.5ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
421
+  (1.8ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
422
+  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
423
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
424
+  (0.8ms) SELECT version FROM "schema_migrations"
425
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
426
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
427
+  (0.2ms) BEGIN
428
+ Processing by Dbhero::DataclipsController#index as HTML
429
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
430
+  (0.2ms) ROLLBACK
431
+  (0.1ms) BEGIN
432
+ Processing by Dbhero::DataclipsController#index as HTML
433
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.6ms)
434
+ Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.0ms)
435
+  (0.2ms) ROLLBACK
436
+  (0.2ms) BEGIN
437
+ Processing by Dbhero::DataclipsController#index as HTML
438
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
439
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms)
440
+  (0.2ms) ROLLBACK
441
+  (0.2ms) BEGIN
442
+ Processing by Dbhero::DataclipsController#index as HTML
443
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
444
+  (0.3ms) ROLLBACK
445
+  (0.2ms) BEGIN
446
+ Processing by Dbhero::DataclipsController#index as HTML
447
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.5ms)
448
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms)
449
+  (0.7ms) ROLLBACK
450
+  (0.2ms) BEGIN
451
+ Processing by Dbhero::DataclipsController#new as HTML
452
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
453
+  (0.2ms) ROLLBACK
454
+  (0.1ms) BEGIN
455
+ Processing by Dbhero::DataclipsController#new as HTML
456
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.4ms)
457
+ Completed 200 OK in 30ms (Views: 6.0ms | ActiveRecord: 10.8ms)
458
+  (0.3ms) ROLLBACK
459
+  (0.2ms) BEGIN
460
+ Processing by Dbhero::DataclipsController#new as HTML
461
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
462
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
463
+  (0.5ms) ROLLBACK
464
+  (0.1ms) BEGIN
465
+ Processing by Dbhero::DataclipsController#new as HTML
466
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
467
+  (0.2ms) ROLLBACK
468
+  (0.2ms) BEGIN
469
+ Processing by Dbhero::DataclipsController#new as HTML
470
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.5ms)
471
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
472
+  (0.2ms) ROLLBACK
473
+  (0.1ms) BEGIN
474
+ Processing by Dbhero::DataclipsController#create as HTML
475
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
476
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
477
+  (0.3ms) ROLLBACK
478
+  (0.2ms) BEGIN
479
+ Processing by Dbhero::DataclipsController#create as HTML
480
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
481
+  (0.2ms) SAVEPOINT active_record_1
482
+ SQL (1.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:15.089970"], ["updated_at", "2015-03-23 20:58:15.089970"], ["token", "c7cb8cdd-3549-4343-8863-4626e81f9e96"]]
483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
484
+ Redirected to http://test.host/dbhero/dataclips/c7cb8cdd-3549-4343-8863-4626e81f9e96/edit
485
+ Completed 302 Found in 31ms (ActiveRecord: 2.7ms)
486
+  (0.3ms) ROLLBACK
487
+  (0.2ms) BEGIN
488
+ Processing by Dbhero::DataclipsController#create as HTML
489
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
490
+  (0.2ms) SAVEPOINT active_record_1
491
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:15.123528"], ["updated_at", "2015-03-23 20:58:15.123528"], ["token", "1e5c98fe-20a7-4a44-ba65-7e86121daa8c"]]
492
+  (0.3ms) RELEASE SAVEPOINT active_record_1
493
+ Redirected to http://test.host/dbhero/dataclips/1e5c98fe-20a7-4a44-ba65-7e86121daa8c/edit
494
+ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
495
+ Dbhero::Dataclip Load (0.8ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
496
+  (0.3ms) ROLLBACK
497
+  (0.2ms) BEGIN
498
+ Processing by Dbhero::DataclipsController#create as HTML
499
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
500
+  (0.2ms) SAVEPOINT active_record_1
501
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:15.151801"], ["updated_at", "2015-03-23 20:58:15.151801"], ["token", "9cd5cc8b-8851-4990-b362-4de7f1ca2921"]]
502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
503
+ Redirected to http://test.host/dbhero/dataclips/9cd5cc8b-8851-4990-b362-4de7f1ca2921/edit
504
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
505
+  (0.2ms) ROLLBACK
506
+  (0.1ms) BEGIN
507
+ Processing by Dbhero::DataclipsController#create as HTML
508
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
509
+  (0.2ms) SAVEPOINT active_record_1
510
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:15.164614"], ["updated_at", "2015-03-23 20:58:15.164614"], ["token", "36b0d9d5-e727-4fca-9633-69dc39d1567e"]]
511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
512
+ Redirected to http://test.host/dbhero/dataclips/36b0d9d5-e727-4fca-9633-69dc39d1567e/edit
513
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
514
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
515
+  (0.2ms) ROLLBACK
516
+  (0.1ms) BEGIN
517
+ Processing by Dbhero::DataclipsController#create as HTML
518
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
519
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
520
+  (0.2ms) ROLLBACK
521
+  (0.1ms) BEGIN
522
+ Processing by Dbhero::DataclipsController#create as HTML
523
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
524
+  (0.1ms) SAVEPOINT active_record_1
525
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.180275"], ["updated_at", "2015-03-23 20:58:15.180275"], ["token", "7e981c81-e477-4c99-9bfe-37297c826239"]]
526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
527
+ Redirected to http://test.host/dbhero/dataclips/7e981c81-e477-4c99-9bfe-37297c826239/edit
528
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
529
+  (0.1ms) ROLLBACK
530
+  (0.2ms) BEGIN
531
+ Processing by Dbhero::DataclipsController#create as HTML
532
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
533
+  (0.1ms) SAVEPOINT active_record_1
534
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.188257"], ["updated_at", "2015-03-23 20:58:15.188257"], ["token", "e6d877f5-5648-46d0-8985-1e8a36c0285a"]]
535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
536
+ Redirected to http://test.host/dbhero/dataclips/e6d877f5-5648-46d0-8985-1e8a36c0285a/edit
537
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
538
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
539
+  (0.1ms) ROLLBACK
540
+  (0.1ms) BEGIN
541
+  (0.1ms) SAVEPOINT active_record_1
542
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.194758"], ["updated_at", "2015-03-23 20:58:15.194758"], ["token", "01566445-6e61-4621-bac6-6fa263ae8b5d"]]
543
+  (0.2ms) RELEASE SAVEPOINT active_record_1
544
+ Processing by Dbhero::DataclipsController#edit as HTML
545
+ Parameters: {"id"=>"01566445-6e61-4621-bac6-6fa263ae8b5d"}
546
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
547
+  (0.2ms) ROLLBACK
548
+  (0.1ms) BEGIN
549
+  (0.1ms) SAVEPOINT active_record_1
550
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.201681"], ["updated_at", "2015-03-23 20:58:15.201681"], ["token", "e0da4c48-11b0-4e56-b117-08ec111b555b"]]
551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
552
+ Processing by Dbhero::DataclipsController#edit as HTML
553
+ Parameters: {"id"=>"e0da4c48-11b0-4e56-b117-08ec111b555b"}
554
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "e0da4c48-11b0-4e56-b117-08ec111b555b"]]
555
+  (0.1ms) SAVEPOINT active_record_1
556
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
557
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
558
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
559
+ ^
560
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
561
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
562
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
563
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
564
+ Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 1.0ms)
565
+  (0.2ms) ROLLBACK
566
+  (0.1ms) BEGIN
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.215504"], ["updated_at", "2015-03-23 20:58:15.215504"], ["token", "c0740445-1a46-45ac-bb61-5761eda0868d"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+ Processing by Dbhero::DataclipsController#edit as HTML
571
+ Parameters: {"id"=>"c0740445-1a46-45ac-bb61-5761eda0868d"}
572
+ Dbhero::Dataclip Load (0.9ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c0740445-1a46-45ac-bb61-5761eda0868d"]]
573
+  (0.2ms) SAVEPOINT active_record_1
574
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
575
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
576
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
577
+ ^
578
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
579
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
580
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
581
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
582
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 1.7ms)
583
+  (0.2ms) ROLLBACK
584
+  (0.1ms) BEGIN
585
+  (0.1ms) SAVEPOINT active_record_1
586
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.226512"], ["updated_at", "2015-03-23 20:58:15.226512"], ["token", "7af2aae0-56ef-43a0-9e0b-e2948ebea69b"]]
587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
588
+ Processing by Dbhero::DataclipsController#edit as HTML
589
+ Parameters: {"id"=>"7af2aae0-56ef-43a0-9e0b-e2948ebea69b"}
590
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
591
+  (0.2ms) ROLLBACK
592
+  (0.1ms) BEGIN
593
+  (0.1ms) SAVEPOINT active_record_1
594
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.233826"], ["updated_at", "2015-03-23 20:58:15.233826"], ["token", "f1fba432-70b9-4774-b8c6-291473f43705"]]
595
+  (0.2ms) RELEASE SAVEPOINT active_record_1
596
+ Processing by Dbhero::DataclipsController#edit as HTML
597
+ Parameters: {"id"=>"f1fba432-70b9-4774-b8c6-291473f43705"}
598
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f1fba432-70b9-4774-b8c6-291473f43705"]]
599
+  (0.1ms) SAVEPOINT active_record_1
600
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
601
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
602
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
603
+ ^
604
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
605
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
606
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
607
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
608
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 1.0ms)
609
+  (0.2ms) ROLLBACK
610
+  (0.1ms) BEGIN
611
+ Processing by Dbhero::DataclipsController#create as HTML
612
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
613
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
614
+  (0.2ms) ROLLBACK
615
+  (0.1ms) BEGIN
616
+  (0.1ms) SAVEPOINT active_record_1
617
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.247979"], ["updated_at", "2015-03-23 20:58:15.247979"], ["token", "b1fa60e6-ef9b-4d0b-8a21-68443d420d48"]]
618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
619
+ Processing by Dbhero::DataclipsController#update as HTML
620
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"b1fa60e6-ef9b-4d0b-8a21-68443d420d48"}
621
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "b1fa60e6-ef9b-4d0b-8a21-68443d420d48"]]
622
+  (0.1ms) SAVEPOINT active_record_1
623
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.252656"], ["id", 12]]
624
+  (0.2ms) RELEASE SAVEPOINT active_record_1
625
+ Redirected to http://test.host/dbhero/dataclips/b1fa60e6-ef9b-4d0b-8a21-68443d420d48/edit
626
+ Completed 302 Found in 11ms (ActiveRecord: 1.1ms)
627
+  (0.2ms) ROLLBACK
628
+  (0.1ms) BEGIN
629
+  (0.1ms) SAVEPOINT active_record_1
630
+ SQL (1.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.265052"], ["updated_at", "2015-03-23 20:58:15.265052"], ["token", "8a07d9a3-10fe-456c-9dfb-3daad2b803ed"]]
631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
632
+ Processing by Dbhero::DataclipsController#update as HTML
633
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"8a07d9a3-10fe-456c-9dfb-3daad2b803ed"}
634
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "8a07d9a3-10fe-456c-9dfb-3daad2b803ed"]]
635
+  (0.1ms) SAVEPOINT active_record_1
636
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.271636"], ["id", 13]]
637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
638
+ Redirected to http://test.host/dbhero/dataclips/8a07d9a3-10fe-456c-9dfb-3daad2b803ed/edit
639
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
640
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
641
+  (0.3ms) ROLLBACK
642
+  (0.1ms) BEGIN
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.279179"], ["updated_at", "2015-03-23 20:58:15.279179"], ["token", "0a1016e7-c138-4b4b-98fd-1bd40c262d70"]]
645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
646
+ Processing by Dbhero::DataclipsController#update as HTML
647
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0a1016e7-c138-4b4b-98fd-1bd40c262d70"}
648
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "0a1016e7-c138-4b4b-98fd-1bd40c262d70"]]
649
+  (0.1ms) SAVEPOINT active_record_1
650
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.283826"], ["id", 14]]
651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
652
+ Redirected to http://test.host/dbhero/dataclips/0a1016e7-c138-4b4b-98fd-1bd40c262d70/edit
653
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
654
+  (0.2ms) ROLLBACK
655
+  (0.1ms) BEGIN
656
+  (0.2ms) SAVEPOINT active_record_1
657
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.291131"], ["updated_at", "2015-03-23 20:58:15.291131"], ["token", "9f50b77e-3d01-4ae9-812e-a47107061fa0"]]
658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
659
+ Processing by Dbhero::DataclipsController#update as HTML
660
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"9f50b77e-3d01-4ae9-812e-a47107061fa0"}
661
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "9f50b77e-3d01-4ae9-812e-a47107061fa0"]]
662
+  (0.1ms) SAVEPOINT active_record_1
663
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.295386"], ["id", 15]]
664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
665
+ Redirected to http://test.host/dbhero/dataclips/9f50b77e-3d01-4ae9-812e-a47107061fa0/edit
666
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
667
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
668
+  (0.1ms) ROLLBACK
669
+  (0.1ms) BEGIN
670
+  (0.2ms) SAVEPOINT active_record_1
671
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.303107"], ["updated_at", "2015-03-23 20:58:15.303107"], ["token", "dbdfb07d-c942-4277-994f-e594590bd1fe"]]
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+ Processing by Dbhero::DataclipsController#update as HTML
674
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"dbdfb07d-c942-4277-994f-e594590bd1fe"}
675
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
676
+  (0.2ms) ROLLBACK
677
+  (0.1ms) BEGIN
678
+  (0.2ms) SAVEPOINT active_record_1
679
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.311098"], ["updated_at", "2015-03-23 20:58:15.311098"], ["token", "4caabef9-b443-4805-b129-0d23283c398b"]]
680
+  (0.2ms) RELEASE SAVEPOINT active_record_1
681
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
682
+  (0.2ms) ROLLBACK
683
+  (0.1ms) BEGIN
684
+  (0.1ms) SAVEPOINT active_record_1
685
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.318594"], ["updated_at", "2015-03-23 20:58:15.318594"], ["token", "37f5e141-5aab-4a62-bebe-96587644989c"]]
686
+  (0.2ms) RELEASE SAVEPOINT active_record_1
687
+ Processing by Dbhero::DataclipsController#update as HTML
688
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"37f5e141-5aab-4a62-bebe-96587644989c"}
689
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "37f5e141-5aab-4a62-bebe-96587644989c"]]
690
+  (0.5ms) SAVEPOINT active_record_1
691
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.325095"], ["id", 18]]
692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
693
+ Redirected to http://test.host/dbhero/dataclips/37f5e141-5aab-4a62-bebe-96587644989c/edit
694
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
695
+  (0.2ms) ROLLBACK
696
+  (0.1ms) BEGIN
697
+  (0.1ms) SAVEPOINT active_record_1
698
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:15.330414"], ["updated_at", "2015-03-23 20:58:15.330414"], ["token", "c6696b6e-4f51-49d7-b4ca-f1137a50b38b"]]
699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
700
+ Processing by Dbhero::DataclipsController#update as HTML
701
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"c6696b6e-4f51-49d7-b4ca-f1137a50b38b"}
702
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c6696b6e-4f51-49d7-b4ca-f1137a50b38b"]]
703
+  (0.1ms) SAVEPOINT active_record_1
704
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:15.334296"], ["id", 19]]
705
+  (0.2ms) RELEASE SAVEPOINT active_record_1
706
+ Redirected to http://test.host/dbhero/dataclips/c6696b6e-4f51-49d7-b4ca-f1137a50b38b/edit
707
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
708
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
709
+  (0.1ms) ROLLBACK
710
+  (0.1ms) BEGIN
711
+  (0.2ms) ROLLBACK
712
+  (0.1ms) BEGIN
713
+  (0.2ms) ROLLBACK
714
+  (0.1ms) BEGIN
715
+  (0.3ms) ROLLBACK
716
+  (0.1ms) BEGIN
717
+  (0.1ms) SAVEPOINT active_record_1
718
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.360934"], ["updated_at", "2015-03-23 20:58:15.360934"], ["token", "aa7db5de-7154-4c21-92d0-93a5a23a6bdd"]]
719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
720
+  (0.1ms) ROLLBACK
721
+  (0.1ms) BEGIN
722
+  (0.1ms) SAVEPOINT active_record_1
723
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 20:58:15.363658"], ["created_at", "2015-03-23 20:58:15.364678"], ["token", "41dcc6db-2b0f-4441-8b19-ca391fea06c1"]]
724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
725
+  (0.1ms) SAVEPOINT active_record_1
726
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 20:58:15.366354"], ["created_at", "2015-03-23 20:58:15.367091"], ["token", "26a505da-9978-426a-b9c4-4e267db17491"]]
727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
728
+  (0.1ms) SAVEPOINT active_record_1
729
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 20:58:15.368463"], ["created_at", "2015-03-23 20:58:15.369187"], ["token", "8882fcb2-1cd9-41a4-b865-a11f1e06368d"]]
730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
731
+ Dbhero::Dataclip Load (1.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
732
+  (0.2ms) ROLLBACK
733
+  (0.1ms) BEGIN
734
+  (0.1ms) SAVEPOINT active_record_1
735
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.376633"], ["updated_at", "2015-03-23 20:58:15.376633"], ["token", "a5ceec1b-8d3e-44eb-85a7-49391ba2a035"]]
736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
737
+  (0.1ms) ROLLBACK
738
+  (0.1ms) BEGIN
739
+  (0.1ms) SAVEPOINT active_record_1
740
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.380005"], ["updated_at", "2015-03-23 20:58:15.380005"], ["token", "9b3068ea-a4af-42af-95b8-eaffbd1865a8"]]
741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
742
+  (0.1ms) ROLLBACK
743
+  (0.1ms) BEGIN
744
+  (0.1ms) SAVEPOINT active_record_1
745
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.384368"], ["updated_at", "2015-03-23 20:58:15.384368"], ["token", "0107fbbd-b872-4078-ab41-38a612828ea4"]]
746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
747
+  (0.1ms) ROLLBACK
748
+  (0.1ms) BEGIN
749
+  (0.1ms) SAVEPOINT active_record_1
750
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:15.387559"], ["updated_at", "2015-03-23 20:58:15.387559"], ["token", "4e52335d-ac66-458f-b2c1-862379192200"]]
751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
752
+  (0.1ms) SAVEPOINT active_record_1
753
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
754
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
755
+  (0.1ms) ROLLBACK
756
+  (0.1ms) BEGIN
757
+  (0.1ms) SAVEPOINT active_record_1
758
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 20:58:15.391538"], ["updated_at", "2015-03-23 20:58:15.391538"], ["token", "33693cb5-7715-43a3-9288-a7c4bef06bbb"]]
759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
760
+  (0.1ms) SAVEPOINT active_record_1
761
+  (0.7ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
762
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
763
+  (0.1ms) ROLLBACK
764
+  (0.1ms) BEGIN
765
+  (0.1ms) SAVEPOINT active_record_1
766
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:15.396725"], ["updated_at", "2015-03-23 20:58:15.396725"], ["token", "a7d9f1fc-3e01-4c72-84f3-a6b97a91d5d1"]]
767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
768
+  (0.1ms) SAVEPOINT active_record_1
769
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
770
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
771
+  (0.1ms) ROLLBACK
772
+  (0.1ms) BEGIN
773
+  (0.1ms) SAVEPOINT active_record_1
774
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:15.401995"], ["updated_at", "2015-03-23 20:58:15.401995"], ["token", "d498cd5f-088e-4290-bf02-dabba6213ecc"]]
775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
776
+  (0.1ms) SAVEPOINT active_record_1
777
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
778
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
779
+  (0.1ms) ROLLBACK
780
+  (0.1ms) BEGIN
781
+  (0.1ms) SAVEPOINT active_record_1
782
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.407078"], ["updated_at", "2015-03-23 20:58:15.407078"], ["token", "519bf05c-8e22-4151-a220-a15ac96e62f5"]]
783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
784
+  (0.1ms) SAVEPOINT active_record_1
785
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.409080"], ["updated_at", "2015-03-23 20:58:15.409080"], ["token", "1b243b17-503d-49d5-8210-26bf9b610e47"]]
786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
787
+  (0.1ms) SAVEPOINT active_record_1
788
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.411038"], ["updated_at", "2015-03-23 20:58:15.411038"], ["token", "6998342f-7972-4398-9e0e-28f21ebd22b6"]]
789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
790
+  (0.1ms) SAVEPOINT active_record_1
791
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.413222"], ["updated_at", "2015-03-23 20:58:15.413222"], ["token", "b4f6bcc0-8fd8-491f-82d9-76fc836195e3"]]
792
+  (0.2ms) RELEASE SAVEPOINT active_record_1
793
+  (0.2ms) SAVEPOINT active_record_1
794
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.415971"], ["updated_at", "2015-03-23 20:58:15.415971"], ["token", "cd4beb97-34bd-4767-8805-832100cdbaba"]]
795
+  (0.4ms) RELEASE SAVEPOINT active_record_1
796
+  (0.1ms) SAVEPOINT active_record_1
797
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 20:58:15.419619"], ["updated_at", "2015-03-23 20:58:15.419619"], ["token", "96ff1453-9ec9-4d22-a229-a6541a11157b"]]
798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
799
+  (0.1ms) SAVEPOINT active_record_1
800
+  (3.6ms) TRUNCATE table dbhero_dataclips
801
+  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1
802
+  (1.3ms) SELECT COUNT(*) FROM "dbhero_dataclips"
803
+  (0.2ms) ROLLBACK
804
+  (0.1ms) BEGIN
805
+  (0.1ms) SAVEPOINT active_record_1
806
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.432127"], ["updated_at", "2015-03-23 20:58:15.432127"], ["token", "44b0fedc-9641-4870-884d-c14cf35a233f"]]
807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
808
+  (0.1ms) SAVEPOINT active_record_1
809
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.435055"], ["updated_at", "2015-03-23 20:58:15.435055"], ["token", "4b4f1857-6e9d-47c1-b073-a2cf94b6cfd4"]]
810
+  (0.2ms) RELEASE SAVEPOINT active_record_1
811
+  (0.2ms) SAVEPOINT active_record_1
812
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.437731"], ["updated_at", "2015-03-23 20:58:15.437731"], ["token", "68942587-935e-4c86-9ea3-f8b43cde74d8"]]
813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
814
+  (0.2ms) SAVEPOINT active_record_1
815
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.440782"], ["updated_at", "2015-03-23 20:58:15.440782"], ["token", "0adc96dc-ae70-4454-a4d0-0084d854629d"]]
816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
817
+  (0.1ms) SAVEPOINT active_record_1
818
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:15.443329"], ["updated_at", "2015-03-23 20:58:15.443329"], ["token", "c94a6d6a-5ad1-4686-a535-ee2c0d4fe5de"]]
819
+  (0.2ms) RELEASE SAVEPOINT active_record_1
820
+  (0.1ms) SAVEPOINT active_record_1
821
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 20:58:15.445450"], ["updated_at", "2015-03-23 20:58:15.445450"], ["token", "14c84d00-abf6-4a76-a3ac-34d92fcf1fb3"]]
822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
823
+  (0.1ms) SAVEPOINT active_record_1
824
+  (0.3ms) TRUNCATE table dbhero_dataclips; commit;
825
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
826
+ : TRUNCATE table dbhero_dataclips; commit;
827
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
828
+  (0.5ms) SELECT COUNT(*) FROM "dbhero_dataclips"
829
+  (0.2ms) ROLLBACK
830
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
831
+  (130.8ms) DROP DATABASE IF EXISTS "dummy_test"
832
+  (369.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
833
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
834
+  (10.1ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
835
+  (1.8ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
836
+  (1.5ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
837
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
838
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
839
+  (0.9ms) SELECT version FROM "schema_migrations"
840
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
841
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
842
+  (0.2ms) BEGIN
843
+ Processing by Dbhero::DataclipsController#index as HTML
844
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
845
+  (0.2ms) ROLLBACK
846
+  (0.1ms) BEGIN
847
+ Processing by Dbhero::DataclipsController#index as HTML
848
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
849
+ Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.0ms)
850
+  (0.2ms) ROLLBACK
851
+  (0.1ms) BEGIN
852
+ Processing by Dbhero::DataclipsController#index as HTML
853
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
854
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
855
+  (0.6ms) ROLLBACK
856
+  (0.1ms) BEGIN
857
+ Processing by Dbhero::DataclipsController#index as HTML
858
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
859
+  (0.2ms) ROLLBACK
860
+  (0.1ms) BEGIN
861
+ Processing by Dbhero::DataclipsController#index as HTML
862
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
863
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
864
+  (0.2ms) ROLLBACK
865
+  (0.1ms) BEGIN
866
+ Processing by Dbhero::DataclipsController#new as HTML
867
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
868
+  (0.2ms) ROLLBACK
869
+  (0.1ms) BEGIN
870
+ Processing by Dbhero::DataclipsController#new as HTML
871
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
872
+ Completed 200 OK in 24ms (Views: 4.5ms | ActiveRecord: 8.8ms)
873
+  (0.3ms) ROLLBACK
874
+  (0.1ms) BEGIN
875
+ Processing by Dbhero::DataclipsController#new as HTML
876
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
877
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
878
+  (0.2ms) ROLLBACK
879
+  (0.1ms) BEGIN
880
+ Processing by Dbhero::DataclipsController#new as HTML
881
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
882
+  (0.6ms) ROLLBACK
883
+  (0.1ms) BEGIN
884
+ Processing by Dbhero::DataclipsController#new as HTML
885
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.4ms)
886
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
887
+  (0.2ms) ROLLBACK
888
+  (0.1ms) BEGIN
889
+ Processing by Dbhero::DataclipsController#create as HTML
890
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
891
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
892
+  (0.5ms) ROLLBACK
893
+  (0.1ms) BEGIN
894
+ Processing by Dbhero::DataclipsController#create as HTML
895
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
896
+  (0.2ms) SAVEPOINT active_record_1
897
+ SQL (1.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:56.306253"], ["updated_at", "2015-03-23 20:58:56.306253"], ["token", "7ac575f7-54db-45a9-bd10-5b69188dbdbb"]]
898
+  (0.2ms) RELEASE SAVEPOINT active_record_1
899
+ Redirected to http://test.host/dbhero/dataclips/7ac575f7-54db-45a9-bd10-5b69188dbdbb/edit
900
+ Completed 302 Found in 24ms (ActiveRecord: 1.9ms)
901
+  (0.4ms) ROLLBACK
902
+  (0.1ms) BEGIN
903
+ Processing by Dbhero::DataclipsController#create as HTML
904
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
905
+  (0.2ms) SAVEPOINT active_record_1
906
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:56.333525"], ["updated_at", "2015-03-23 20:58:56.333525"], ["token", "25259753-4043-4df6-8b83-bf85de71db4a"]]
907
+  (0.2ms) RELEASE SAVEPOINT active_record_1
908
+ Redirected to http://test.host/dbhero/dataclips/25259753-4043-4df6-8b83-bf85de71db4a/edit
909
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
910
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
911
+  (0.2ms) ROLLBACK
912
+  (0.1ms) BEGIN
913
+ Processing by Dbhero::DataclipsController#create as HTML
914
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
915
+  (0.2ms) SAVEPOINT active_record_1
916
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:56.355292"], ["updated_at", "2015-03-23 20:58:56.355292"], ["token", "a3c588f2-bf72-43ca-9f82-a1cff32035bc"]]
917
+  (0.2ms) RELEASE SAVEPOINT active_record_1
918
+ Redirected to http://test.host/dbhero/dataclips/a3c588f2-bf72-43ca-9f82-a1cff32035bc/edit
919
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
920
+  (0.2ms) ROLLBACK
921
+  (0.1ms) BEGIN
922
+ Processing by Dbhero::DataclipsController#create as HTML
923
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
924
+  (0.5ms) SAVEPOINT active_record_1
925
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 20:58:56.366334"], ["updated_at", "2015-03-23 20:58:56.366334"], ["token", "7796c215-644b-4a05-b5a2-264a1969262e"]]
926
+  (0.2ms) RELEASE SAVEPOINT active_record_1
927
+ Redirected to http://test.host/dbhero/dataclips/7796c215-644b-4a05-b5a2-264a1969262e/edit
928
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
929
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
930
+  (0.3ms) ROLLBACK
931
+  (0.1ms) BEGIN
932
+ Processing by Dbhero::DataclipsController#create as HTML
933
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
934
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
935
+  (0.2ms) ROLLBACK
936
+  (0.1ms) BEGIN
937
+ Processing by Dbhero::DataclipsController#create as HTML
938
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
939
+  (0.2ms) SAVEPOINT active_record_1
940
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.384817"], ["updated_at", "2015-03-23 20:58:56.384817"], ["token", "6072e1bb-4041-4d5c-b31c-5cb7065333c5"]]
941
+  (0.2ms) RELEASE SAVEPOINT active_record_1
942
+ Redirected to http://test.host/dbhero/dataclips/6072e1bb-4041-4d5c-b31c-5cb7065333c5/edit
943
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
944
+  (0.2ms) ROLLBACK
945
+  (0.1ms) BEGIN
946
+ Processing by Dbhero::DataclipsController#create as HTML
947
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
948
+  (0.2ms) SAVEPOINT active_record_1
949
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.395384"], ["updated_at", "2015-03-23 20:58:56.395384"], ["token", "e48bd674-61a9-49b6-b1f1-d99c31694ff7"]]
950
+  (0.2ms) RELEASE SAVEPOINT active_record_1
951
+ Redirected to http://test.host/dbhero/dataclips/e48bd674-61a9-49b6-b1f1-d99c31694ff7/edit
952
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
953
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
954
+  (0.2ms) ROLLBACK
955
+  (0.1ms) BEGIN
956
+  (0.2ms) SAVEPOINT active_record_1
957
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.405029"], ["updated_at", "2015-03-23 20:58:56.405029"], ["token", "b8124f7c-51d8-4050-ae38-fb21b6a79899"]]
958
+  (0.2ms) RELEASE SAVEPOINT active_record_1
959
+ Processing by Dbhero::DataclipsController#edit as HTML
960
+ Parameters: {"id"=>"b8124f7c-51d8-4050-ae38-fb21b6a79899"}
961
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
962
+  (0.3ms) ROLLBACK
963
+  (0.2ms) BEGIN
964
+  (0.2ms) SAVEPOINT active_record_1
965
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.416282"], ["updated_at", "2015-03-23 20:58:56.416282"], ["token", "e1c7ef77-031a-4305-aab2-582fa73debcb"]]
966
+  (0.2ms) RELEASE SAVEPOINT active_record_1
967
+ Processing by Dbhero::DataclipsController#edit as HTML
968
+ Parameters: {"id"=>"e1c7ef77-031a-4305-aab2-582fa73debcb"}
969
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "e1c7ef77-031a-4305-aab2-582fa73debcb"]]
970
+  (0.2ms) SAVEPOINT active_record_1
971
+  (0.8ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
972
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
973
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
974
+ ^
975
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
976
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
977
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
978
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
979
+ Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.7ms)
980
+  (0.2ms) ROLLBACK
981
+  (0.1ms) BEGIN
982
+  (0.2ms) SAVEPOINT active_record_1
983
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.437410"], ["updated_at", "2015-03-23 20:58:56.437410"], ["token", "ec03506f-b77e-4495-bb3e-a83306a6cc46"]]
984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
985
+ Processing by Dbhero::DataclipsController#edit as HTML
986
+ Parameters: {"id"=>"ec03506f-b77e-4495-bb3e-a83306a6cc46"}
987
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "ec03506f-b77e-4495-bb3e-a83306a6cc46"]]
988
+  (0.2ms) SAVEPOINT active_record_1
989
+  (1.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
990
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
991
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
992
+ ^
993
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
994
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
995
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
996
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.4ms)
997
+ Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 2.3ms)
998
+  (0.3ms) ROLLBACK
999
+  (0.1ms) BEGIN
1000
+  (0.2ms) SAVEPOINT active_record_1
1001
+ SQL (0.7ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.455001"], ["updated_at", "2015-03-23 20:58:56.455001"], ["token", "47fb4c35-3b12-4931-b10d-6135c094c666"]]
1002
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1003
+ Processing by Dbhero::DataclipsController#edit as HTML
1004
+ Parameters: {"id"=>"47fb4c35-3b12-4931-b10d-6135c094c666"}
1005
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1006
+  (0.4ms) ROLLBACK
1007
+  (0.2ms) BEGIN
1008
+  (0.2ms) SAVEPOINT active_record_1
1009
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.467560"], ["updated_at", "2015-03-23 20:58:56.467560"], ["token", "5dc49f39-be91-4c93-89d5-96fbb587ca77"]]
1010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1011
+ Processing by Dbhero::DataclipsController#edit as HTML
1012
+ Parameters: {"id"=>"5dc49f39-be91-4c93-89d5-96fbb587ca77"}
1013
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "5dc49f39-be91-4c93-89d5-96fbb587ca77"]]
1014
+  (0.2ms) SAVEPOINT active_record_1
1015
+  (0.7ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1016
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1017
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1018
+ ^
1019
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1020
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1021
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
1022
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
1023
+ Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 1.5ms)
1024
+  (0.3ms) ROLLBACK
1025
+  (0.1ms) BEGIN
1026
+ Processing by Dbhero::DataclipsController#create as HTML
1027
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1028
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1029
+  (0.2ms) ROLLBACK
1030
+  (0.1ms) BEGIN
1031
+  (0.2ms) SAVEPOINT active_record_1
1032
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.485833"], ["updated_at", "2015-03-23 20:58:56.485833"], ["token", "c2943d11-10a1-464d-a273-05048403b7bd"]]
1033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1034
+ Processing by Dbhero::DataclipsController#update as HTML
1035
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"c2943d11-10a1-464d-a273-05048403b7bd"}
1036
+ Dbhero::Dataclip Load (0.7ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c2943d11-10a1-464d-a273-05048403b7bd"]]
1037
+  (0.3ms) SAVEPOINT active_record_1
1038
+ SQL (0.6ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.491605"], ["id", 12]]
1039
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1040
+ Redirected to http://test.host/dbhero/dataclips/c2943d11-10a1-464d-a273-05048403b7bd/edit
1041
+ Completed 302 Found in 14ms (ActiveRecord: 1.8ms)
1042
+  (0.2ms) ROLLBACK
1043
+  (0.1ms) BEGIN
1044
+  (0.2ms) SAVEPOINT active_record_1
1045
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.507395"], ["updated_at", "2015-03-23 20:58:56.507395"], ["token", "fb7f263c-1495-436b-9f5f-418977f8ec0d"]]
1046
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1047
+ Processing by Dbhero::DataclipsController#update as HTML
1048
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"fb7f263c-1495-436b-9f5f-418977f8ec0d"}
1049
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "fb7f263c-1495-436b-9f5f-418977f8ec0d"]]
1050
+  (0.2ms) SAVEPOINT active_record_1
1051
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.512973"], ["id", 13]]
1052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1053
+ Redirected to http://test.host/dbhero/dataclips/fb7f263c-1495-436b-9f5f-418977f8ec0d/edit
1054
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
1055
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1056
+  (0.2ms) ROLLBACK
1057
+  (0.1ms) BEGIN
1058
+  (0.2ms) SAVEPOINT active_record_1
1059
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.521324"], ["updated_at", "2015-03-23 20:58:56.521324"], ["token", "3152c0c4-c0cf-40a7-a583-257faa2ca075"]]
1060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1061
+ Processing by Dbhero::DataclipsController#update as HTML
1062
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"3152c0c4-c0cf-40a7-a583-257faa2ca075"}
1063
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "3152c0c4-c0cf-40a7-a583-257faa2ca075"]]
1064
+  (0.1ms) SAVEPOINT active_record_1
1065
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.526873"], ["id", 14]]
1066
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1067
+ Redirected to http://test.host/dbhero/dataclips/3152c0c4-c0cf-40a7-a583-257faa2ca075/edit
1068
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
1069
+  (0.2ms) ROLLBACK
1070
+  (0.1ms) BEGIN
1071
+  (0.1ms) SAVEPOINT active_record_1
1072
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.534056"], ["updated_at", "2015-03-23 20:58:56.534056"], ["token", "c92ce684-99f1-4c5e-9217-7f9078774b84"]]
1073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1074
+ Processing by Dbhero::DataclipsController#update as HTML
1075
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"c92ce684-99f1-4c5e-9217-7f9078774b84"}
1076
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c92ce684-99f1-4c5e-9217-7f9078774b84"]]
1077
+  (0.2ms) SAVEPOINT active_record_1
1078
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.540129"], ["id", 15]]
1079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1080
+ Redirected to http://test.host/dbhero/dataclips/c92ce684-99f1-4c5e-9217-7f9078774b84/edit
1081
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
1082
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1083
+  (0.2ms) ROLLBACK
1084
+  (0.2ms) BEGIN
1085
+  (0.5ms) SAVEPOINT active_record_1
1086
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.550715"], ["updated_at", "2015-03-23 20:58:56.550715"], ["token", "6d5429a6-3e56-4f8a-a3d5-fc0611a55ee0"]]
1087
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1088
+ Processing by Dbhero::DataclipsController#update as HTML
1089
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"6d5429a6-3e56-4f8a-a3d5-fc0611a55ee0"}
1090
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1091
+  (0.2ms) ROLLBACK
1092
+  (0.1ms) BEGIN
1093
+  (0.2ms) SAVEPOINT active_record_1
1094
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.561208"], ["updated_at", "2015-03-23 20:58:56.561208"], ["token", "4e4c3e2a-d7b2-424c-9e1b-5bc6ba6adc89"]]
1095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1096
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
1097
+  (0.1ms) ROLLBACK
1098
+  (0.1ms) BEGIN
1099
+  (0.2ms) SAVEPOINT active_record_1
1100
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.569000"], ["updated_at", "2015-03-23 20:58:56.569000"], ["token", "4ef0e7bc-114c-407a-88a9-9e5380b4ccd0"]]
1101
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1102
+ Processing by Dbhero::DataclipsController#update as HTML
1103
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"4ef0e7bc-114c-407a-88a9-9e5380b4ccd0"}
1104
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "4ef0e7bc-114c-407a-88a9-9e5380b4ccd0"]]
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.574571"], ["id", 18]]
1107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1108
+ Redirected to http://test.host/dbhero/dataclips/4ef0e7bc-114c-407a-88a9-9e5380b4ccd0/edit
1109
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1110
+  (0.2ms) ROLLBACK
1111
+  (0.1ms) BEGIN
1112
+  (0.2ms) SAVEPOINT active_record_1
1113
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 20:58:56.580776"], ["updated_at", "2015-03-23 20:58:56.580776"], ["token", "27305402-42bc-4f27-a47c-576245d4deb3"]]
1114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1115
+ Processing by Dbhero::DataclipsController#update as HTML
1116
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"27305402-42bc-4f27-a47c-576245d4deb3"}
1117
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "27305402-42bc-4f27-a47c-576245d4deb3"]]
1118
+  (0.2ms) SAVEPOINT active_record_1
1119
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 20:58:56.586423"], ["id", 19]]
1120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1121
+ Redirected to http://test.host/dbhero/dataclips/27305402-42bc-4f27-a47c-576245d4deb3/edit
1122
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
1123
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1124
+  (0.2ms) ROLLBACK
1125
+  (0.1ms) BEGIN
1126
+  (0.3ms) ROLLBACK
1127
+  (0.1ms) BEGIN
1128
+  (0.2ms) ROLLBACK
1129
+  (0.1ms) BEGIN
1130
+  (0.1ms) ROLLBACK
1131
+  (0.1ms) BEGIN
1132
+  (0.1ms) SAVEPOINT active_record_1
1133
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.614813"], ["updated_at", "2015-03-23 20:58:56.614813"], ["token", "5e4c93d8-74f4-42a3-8bec-a3bdc0745533"]]
1134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.1ms) ROLLBACK
1136
+  (0.1ms) BEGIN
1137
+  (0.1ms) SAVEPOINT active_record_1
1138
+ SQL (0.8ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 20:58:56.617730"], ["created_at", "2015-03-23 20:58:56.618786"], ["token", "6c6354d9-020a-4eaf-8a97-31c51eed164a"]]
1139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1140
+  (0.1ms) SAVEPOINT active_record_1
1141
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 20:58:56.621631"], ["created_at", "2015-03-23 20:58:56.622556"], ["token", "e91c3cce-9125-4f7c-8f7f-0bca99a3b470"]]
1142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1143
+  (0.1ms) SAVEPOINT active_record_1
1144
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 20:58:56.624071"], ["created_at", "2015-03-23 20:58:56.624870"], ["token", "a02c8896-0453-460f-89ee-859370e46250"]]
1145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1146
+ Dbhero::Dataclip Load (0.9ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
1147
+  (0.2ms) ROLLBACK
1148
+  (0.1ms) BEGIN
1149
+  (0.1ms) SAVEPOINT active_record_1
1150
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.631256"], ["updated_at", "2015-03-23 20:58:56.631256"], ["token", "b4916123-54b0-4bc9-8e87-eed9b3065ce5"]]
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1152
+  (0.1ms) ROLLBACK
1153
+  (0.1ms) BEGIN
1154
+  (0.1ms) SAVEPOINT active_record_1
1155
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.636023"], ["updated_at", "2015-03-23 20:58:56.636023"], ["token", "965d15d4-ea96-4ebe-ab8b-74a118d1a117"]]
1156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1157
+  (0.1ms) ROLLBACK
1158
+  (0.1ms) BEGIN
1159
+  (0.1ms) SAVEPOINT active_record_1
1160
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.639622"], ["updated_at", "2015-03-23 20:58:56.639622"], ["token", "7c24b934-065d-474a-a1b1-9a7603ed093f"]]
1161
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1162
+  (0.2ms) ROLLBACK
1163
+  (0.3ms) BEGIN
1164
+  (0.2ms) SAVEPOINT active_record_1
1165
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:56.645197"], ["updated_at", "2015-03-23 20:58:56.645197"], ["token", "0be3c48a-aa6e-4212-9eee-ee6fb1cbc848"]]
1166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1167
+  (0.1ms) SAVEPOINT active_record_1
1168
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1169
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1170
+  (0.1ms) ROLLBACK
1171
+  (0.1ms) BEGIN
1172
+  (0.1ms) SAVEPOINT active_record_1
1173
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 20:58:56.649882"], ["updated_at", "2015-03-23 20:58:56.649882"], ["token", "c8c0e8f8-2cb5-4b89-bba2-e8e3aeaf0f19"]]
1174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1175
+  (0.1ms) SAVEPOINT active_record_1
1176
+  (0.3ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
1177
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1178
+  (0.1ms) ROLLBACK
1179
+  (0.1ms) BEGIN
1180
+  (0.1ms) SAVEPOINT active_record_1
1181
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:56.654455"], ["updated_at", "2015-03-23 20:58:56.654455"], ["token", "b5f76be8-6db3-48dc-afde-ae912f59db57"]]
1182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1183
+  (0.1ms) SAVEPOINT active_record_1
1184
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1185
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1186
+  (0.2ms) ROLLBACK
1187
+  (0.1ms) BEGIN
1188
+  (0.1ms) SAVEPOINT active_record_1
1189
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 20:58:56.661236"], ["updated_at", "2015-03-23 20:58:56.661236"], ["token", "c96610a2-6080-4407-b17f-62c69056fe75"]]
1190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1191
+  (0.1ms) SAVEPOINT active_record_1
1192
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1193
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1194
+  (0.1ms) ROLLBACK
1195
+  (0.1ms) BEGIN
1196
+  (0.1ms) SAVEPOINT active_record_1
1197
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.666164"], ["updated_at", "2015-03-23 20:58:56.666164"], ["token", "e19d1114-145d-429c-bc76-fd72e8bb0db7"]]
1198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1199
+  (0.1ms) SAVEPOINT active_record_1
1200
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.669440"], ["updated_at", "2015-03-23 20:58:56.669440"], ["token", "198d990a-490f-42ad-a17a-6942686703f7"]]
1201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1202
+  (0.1ms) SAVEPOINT active_record_1
1203
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.671563"], ["updated_at", "2015-03-23 20:58:56.671563"], ["token", "1f471b38-8410-48e8-9b98-89b24a89c75b"]]
1204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1205
+  (0.1ms) SAVEPOINT active_record_1
1206
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.673812"], ["updated_at", "2015-03-23 20:58:56.673812"], ["token", "59ed151f-189d-4a76-aa40-8119b306c5be"]]
1207
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1208
+  (0.1ms) SAVEPOINT active_record_1
1209
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.676424"], ["updated_at", "2015-03-23 20:58:56.676424"], ["token", "0277ecec-7f2f-4fe2-8bcf-5b71f8fc83d9"]]
1210
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1211
+  (0.1ms) SAVEPOINT active_record_1
1212
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 20:58:56.680075"], ["updated_at", "2015-03-23 20:58:56.680075"], ["token", "1c1a23ab-6187-46c8-9626-fa2ead78b9d4"]]
1213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1214
+  (0.1ms) SAVEPOINT active_record_1
1215
+  (3.8ms) TRUNCATE table dbhero_dataclips
1216
+  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1
1217
+  (0.6ms) SELECT COUNT(*) FROM "dbhero_dataclips"
1218
+  (0.2ms) ROLLBACK
1219
+  (0.1ms) BEGIN
1220
+  (0.1ms) SAVEPOINT active_record_1
1221
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.692308"], ["updated_at", "2015-03-23 20:58:56.692308"], ["token", "5c256a97-3f8b-4e23-a1ca-e0aa60601d05"]]
1222
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1223
+  (0.2ms) SAVEPOINT active_record_1
1224
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.695619"], ["updated_at", "2015-03-23 20:58:56.695619"], ["token", "bd81638f-f855-48ee-999e-e40f1303cb2f"]]
1225
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.1ms) SAVEPOINT active_record_1
1227
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.698255"], ["updated_at", "2015-03-23 20:58:56.698255"], ["token", "dac02f88-17e9-4dde-b950-53e2b3fbaffa"]]
1228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1229
+  (0.1ms) SAVEPOINT active_record_1
1230
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.700950"], ["updated_at", "2015-03-23 20:58:56.700950"], ["token", "57baaa43-ce75-4d4a-a6c1-2bcd8dd2ea47"]]
1231
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1232
+  (0.1ms) SAVEPOINT active_record_1
1233
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 20:58:56.704238"], ["updated_at", "2015-03-23 20:58:56.704238"], ["token", "e1bfce6d-b860-42a2-bfff-5f59ee1291d9"]]
1234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.1ms) SAVEPOINT active_record_1
1236
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 20:58:56.706533"], ["updated_at", "2015-03-23 20:58:56.706533"], ["token", "a7ad62c1-2a3e-4e06-bc15-cc282b46b75e"]]
1237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1238
+  (0.1ms) SAVEPOINT active_record_1
1239
+  (0.3ms) TRUNCATE table dbhero_dataclips; commit;
1240
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
1241
+ : TRUNCATE table dbhero_dataclips; commit;
1242
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1243
+  (0.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
1244
+  (0.1ms) ROLLBACK
1245
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
1246
+  (130.4ms) DROP DATABASE IF EXISTS "dummy_test"
1247
+  (365.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1248
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1249
+  (10.5ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1250
+  (1.8ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
1251
+  (1.5ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
1252
+  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1253
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1254
+  (0.5ms) SELECT version FROM "schema_migrations"
1255
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
1256
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1257
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
1258
+  (127.2ms) DROP DATABASE IF EXISTS "dummy_test"
1259
+  (349.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1260
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1261
+  (10.9ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1262
+  (1.7ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
1263
+  (1.4ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
1264
+  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1265
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1266
+  (0.5ms) SELECT version FROM "schema_migrations"
1267
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
1268
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1269
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1270
+  (119.8ms) DROP DATABASE IF EXISTS "dummy_test"
1271
+  (343.4ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1272
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1273
+  (9.2ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1274
+  (2.4ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
1275
+  (1.3ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
1276
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1277
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1278
+  (1.1ms) SELECT version FROM "schema_migrations"
1279
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
1280
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1281
+  (0.2ms) BEGIN
1282
+ Processing by Dbhero::DataclipsController#index as HTML
1283
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1284
+  (0.2ms) ROLLBACK
1285
+  (0.1ms) BEGIN
1286
+ Processing by Dbhero::DataclipsController#index as HTML
1287
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
1288
+ Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.0ms)
1289
+  (0.3ms) ROLLBACK
1290
+  (0.1ms) BEGIN
1291
+ Processing by Dbhero::DataclipsController#index as HTML
1292
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
1293
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1294
+  (0.1ms) ROLLBACK
1295
+  (0.1ms) BEGIN
1296
+ Processing by Dbhero::DataclipsController#index as HTML
1297
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1298
+  (0.2ms) ROLLBACK
1299
+  (0.1ms) BEGIN
1300
+ Processing by Dbhero::DataclipsController#index as HTML
1301
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
1302
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1303
+  (0.2ms) ROLLBACK
1304
+  (0.1ms) BEGIN
1305
+ Processing by Dbhero::DataclipsController#new as HTML
1306
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1307
+  (0.2ms) ROLLBACK
1308
+  (0.1ms) BEGIN
1309
+ Processing by Dbhero::DataclipsController#new as HTML
1310
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
1311
+ Completed 200 OK in 19ms (Views: 4.1ms | ActiveRecord: 7.9ms)
1312
+  (0.2ms) ROLLBACK
1313
+  (0.1ms) BEGIN
1314
+ Processing by Dbhero::DataclipsController#new as HTML
1315
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
1316
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1317
+  (0.2ms) ROLLBACK
1318
+  (0.1ms) BEGIN
1319
+ Processing by Dbhero::DataclipsController#new as HTML
1320
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1321
+  (0.2ms) ROLLBACK
1322
+  (0.1ms) BEGIN
1323
+ Processing by Dbhero::DataclipsController#new as HTML
1324
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
1325
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1326
+  (0.1ms) ROLLBACK
1327
+  (0.1ms) BEGIN
1328
+ Processing by Dbhero::DataclipsController#create as HTML
1329
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1330
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1331
+  (0.1ms) ROLLBACK
1332
+  (0.1ms) BEGIN
1333
+ Processing by Dbhero::DataclipsController#create as HTML
1334
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1335
+  (0.2ms) SAVEPOINT active_record_1
1336
+ SQL (1.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:28:43.693804"], ["updated_at", "2015-03-23 22:28:43.693804"], ["token", "43bbe381-0d82-49a6-b6d3-aa5176949f1e"]]
1337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1338
+ Redirected to http://test.host/dbhero/dataclips/43bbe381-0d82-49a6-b6d3-aa5176949f1e/edit
1339
+ Completed 302 Found in 20ms (ActiveRecord: 1.8ms)
1340
+  (0.3ms) ROLLBACK
1341
+  (0.1ms) BEGIN
1342
+ Processing by Dbhero::DataclipsController#create as HTML
1343
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1344
+  (0.2ms) SAVEPOINT active_record_1
1345
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:28:43.714326"], ["updated_at", "2015-03-23 22:28:43.714326"], ["token", "36788f5d-3db5-43d4-8914-b3bcb41ddb78"]]
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1347
+ Redirected to http://test.host/dbhero/dataclips/36788f5d-3db5-43d4-8914-b3bcb41ddb78/edit
1348
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
1349
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
1350
+  (0.3ms) ROLLBACK
1351
+  (0.1ms) BEGIN
1352
+ Processing by Dbhero::DataclipsController#create as HTML
1353
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1354
+  (0.2ms) SAVEPOINT active_record_1
1355
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:28:43.732704"], ["updated_at", "2015-03-23 22:28:43.732704"], ["token", "7e96eb69-2681-462e-9328-42c9abf6e184"]]
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+ Redirected to http://test.host/dbhero/dataclips/7e96eb69-2681-462e-9328-42c9abf6e184/edit
1358
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1359
+  (0.1ms) ROLLBACK
1360
+  (0.1ms) BEGIN
1361
+ Processing by Dbhero::DataclipsController#create as HTML
1362
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1363
+  (0.1ms) SAVEPOINT active_record_1
1364
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:28:43.740151"], ["updated_at", "2015-03-23 22:28:43.740151"], ["token", "ebb09359-bd7a-4476-a51c-5258a5a7e30e"]]
1365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1366
+ Redirected to http://test.host/dbhero/dataclips/ebb09359-bd7a-4476-a51c-5258a5a7e30e/edit
1367
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
1368
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
1369
+  (0.2ms) ROLLBACK
1370
+  (0.1ms) BEGIN
1371
+ Processing by Dbhero::DataclipsController#create as HTML
1372
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1373
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1374
+  (0.2ms) ROLLBACK
1375
+  (0.2ms) BEGIN
1376
+ Processing by Dbhero::DataclipsController#create as HTML
1377
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
1378
+  (0.2ms) SAVEPOINT active_record_1
1379
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.755444"], ["updated_at", "2015-03-23 22:28:43.755444"], ["token", "fe477008-1755-4a1d-ad32-4551f3949cb3"]]
1380
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1381
+ Redirected to http://test.host/dbhero/dataclips/fe477008-1755-4a1d-ad32-4551f3949cb3/edit
1382
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1383
+  (0.2ms) ROLLBACK
1384
+  (0.1ms) BEGIN
1385
+ Processing by Dbhero::DataclipsController#create as HTML
1386
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
1387
+  (0.1ms) SAVEPOINT active_record_1
1388
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.763872"], ["updated_at", "2015-03-23 22:28:43.763872"], ["token", "cb69a856-8463-4f41-88d2-a1a3f8c668b6"]]
1389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1390
+ Redirected to http://test.host/dbhero/dataclips/cb69a856-8463-4f41-88d2-a1a3f8c668b6/edit
1391
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1392
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
1393
+  (0.2ms) ROLLBACK
1394
+  (0.1ms) BEGIN
1395
+  (0.5ms) SAVEPOINT active_record_1
1396
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.771530"], ["updated_at", "2015-03-23 22:28:43.771530"], ["token", "d2f56a3f-ca8c-42ed-8cd4-4b8fe0c07232"]]
1397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1398
+ Processing by Dbhero::DataclipsController#edit as HTML
1399
+ Parameters: {"id"=>"d2f56a3f-ca8c-42ed-8cd4-4b8fe0c07232"}
1400
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1401
+  (0.2ms) ROLLBACK
1402
+  (0.1ms) BEGIN
1403
+  (0.1ms) SAVEPOINT active_record_1
1404
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.777278"], ["updated_at", "2015-03-23 22:28:43.777278"], ["token", "4e66951c-8441-4092-953a-6fdaef803db4"]]
1405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1406
+ Processing by Dbhero::DataclipsController#edit as HTML
1407
+ Parameters: {"id"=>"4e66951c-8441-4092-953a-6fdaef803db4"}
1408
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "4e66951c-8441-4092-953a-6fdaef803db4"]]
1409
+  (0.1ms) SAVEPOINT active_record_1
1410
+  (1.1ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1411
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1412
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1413
+ ^
1414
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1415
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1416
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1417
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.5ms)
1418
+ Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 1.6ms)
1419
+  (0.2ms) ROLLBACK
1420
+  (0.1ms) BEGIN
1421
+  (0.2ms) SAVEPOINT active_record_1
1422
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.791615"], ["updated_at", "2015-03-23 22:28:43.791615"], ["token", "c820d00c-d482-499c-98ce-f0f4a88097d4"]]
1423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1424
+ Processing by Dbhero::DataclipsController#edit as HTML
1425
+ Parameters: {"id"=>"c820d00c-d482-499c-98ce-f0f4a88097d4"}
1426
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c820d00c-d482-499c-98ce-f0f4a88097d4"]]
1427
+  (0.1ms) SAVEPOINT active_record_1
1428
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1429
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1430
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1431
+ ^
1432
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1433
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1434
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1435
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
1436
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 1.0ms)
1437
+  (0.2ms) ROLLBACK
1438
+  (0.1ms) BEGIN
1439
+  (0.2ms) SAVEPOINT active_record_1
1440
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.802797"], ["updated_at", "2015-03-23 22:28:43.802797"], ["token", "423c37ef-a049-41dc-9e08-c1fe671565a7"]]
1441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1442
+ Processing by Dbhero::DataclipsController#edit as HTML
1443
+ Parameters: {"id"=>"423c37ef-a049-41dc-9e08-c1fe671565a7"}
1444
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1445
+  (0.3ms) ROLLBACK
1446
+  (0.1ms) BEGIN
1447
+  (0.2ms) SAVEPOINT active_record_1
1448
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.810477"], ["updated_at", "2015-03-23 22:28:43.810477"], ["token", "9844d535-1923-4170-9b7d-719e9a225f64"]]
1449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1450
+ Processing by Dbhero::DataclipsController#edit as HTML
1451
+ Parameters: {"id"=>"9844d535-1923-4170-9b7d-719e9a225f64"}
1452
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "9844d535-1923-4170-9b7d-719e9a225f64"]]
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1455
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1456
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1457
+ ^
1458
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1459
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1460
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1461
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
1462
+ Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.2ms)
1463
+  (0.2ms) ROLLBACK
1464
+  (0.1ms) BEGIN
1465
+ Processing by Dbhero::DataclipsController#create as HTML
1466
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1467
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1468
+  (0.2ms) ROLLBACK
1469
+  (0.1ms) BEGIN
1470
+  (0.1ms) SAVEPOINT active_record_1
1471
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.827248"], ["updated_at", "2015-03-23 22:28:43.827248"], ["token", "34d3f6d5-cb14-489f-b9c2-872b7d5e1824"]]
1472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1473
+ Processing by Dbhero::DataclipsController#update as HTML
1474
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"34d3f6d5-cb14-489f-b9c2-872b7d5e1824"}
1475
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "34d3f6d5-cb14-489f-b9c2-872b7d5e1824"]]
1476
+  (0.1ms) SAVEPOINT active_record_1
1477
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.846478"], ["id", 12]]
1478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1479
+ Redirected to http://test.host/dbhero/dataclips/34d3f6d5-cb14-489f-b9c2-872b7d5e1824/edit
1480
+ Completed 302 Found in 10ms (ActiveRecord: 1.1ms)
1481
+  (0.2ms) ROLLBACK
1482
+  (0.1ms) BEGIN
1483
+  (0.1ms) SAVEPOINT active_record_1
1484
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.858496"], ["updated_at", "2015-03-23 22:28:43.858496"], ["token", "3d9c1bd6-9527-4682-8526-739197844f79"]]
1485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1486
+ Processing by Dbhero::DataclipsController#update as HTML
1487
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"3d9c1bd6-9527-4682-8526-739197844f79"}
1488
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "3d9c1bd6-9527-4682-8526-739197844f79"]]
1489
+  (0.2ms) SAVEPOINT active_record_1
1490
+ SQL (1.1ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.862519"], ["id", 13]]
1491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1492
+ Redirected to http://test.host/dbhero/dataclips/3d9c1bd6-9527-4682-8526-739197844f79/edit
1493
+ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)
1494
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1495
+  (0.1ms) ROLLBACK
1496
+  (0.1ms) BEGIN
1497
+  (0.1ms) SAVEPOINT active_record_1
1498
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.870517"], ["updated_at", "2015-03-23 22:28:43.870517"], ["token", "06f5c5ee-09f4-45e1-9e40-cfe5541013d8"]]
1499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1500
+ Processing by Dbhero::DataclipsController#update as HTML
1501
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"06f5c5ee-09f4-45e1-9e40-cfe5541013d8"}
1502
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "06f5c5ee-09f4-45e1-9e40-cfe5541013d8"]]
1503
+  (0.1ms) SAVEPOINT active_record_1
1504
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.874603"], ["id", 14]]
1505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1506
+ Redirected to http://test.host/dbhero/dataclips/06f5c5ee-09f4-45e1-9e40-cfe5541013d8/edit
1507
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
1508
+  (0.2ms) ROLLBACK
1509
+  (0.1ms) BEGIN
1510
+  (0.1ms) SAVEPOINT active_record_1
1511
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.881132"], ["updated_at", "2015-03-23 22:28:43.881132"], ["token", "6a9a77ef-471b-4224-819b-555356a718db"]]
1512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1513
+ Processing by Dbhero::DataclipsController#update as HTML
1514
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"6a9a77ef-471b-4224-819b-555356a718db"}
1515
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "6a9a77ef-471b-4224-819b-555356a718db"]]
1516
+  (0.1ms) SAVEPOINT active_record_1
1517
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.885007"], ["id", 15]]
1518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1519
+ Redirected to http://test.host/dbhero/dataclips/6a9a77ef-471b-4224-819b-555356a718db/edit
1520
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
1521
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1522
+  (0.2ms) ROLLBACK
1523
+  (0.1ms) BEGIN
1524
+  (0.2ms) SAVEPOINT active_record_1
1525
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.892625"], ["updated_at", "2015-03-23 22:28:43.892625"], ["token", "4ae4f91f-7fd3-401d-ad98-7d9c4855b1f0"]]
1526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1527
+ Processing by Dbhero::DataclipsController#update as HTML
1528
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"4ae4f91f-7fd3-401d-ad98-7d9c4855b1f0"}
1529
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1530
+  (0.2ms) ROLLBACK
1531
+  (0.1ms) BEGIN
1532
+  (0.1ms) SAVEPOINT active_record_1
1533
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.899629"], ["updated_at", "2015-03-23 22:28:43.899629"], ["token", "38a4d133-9551-4a8b-9088-9e2a115d2793"]]
1534
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1535
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
1536
+  (0.2ms) ROLLBACK
1537
+  (0.1ms) BEGIN
1538
+  (0.1ms) SAVEPOINT active_record_1
1539
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.906033"], ["updated_at", "2015-03-23 22:28:43.906033"], ["token", "0ef4859c-13cc-4536-ba66-d6b0a5e39185"]]
1540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1541
+ Processing by Dbhero::DataclipsController#update as HTML
1542
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0ef4859c-13cc-4536-ba66-d6b0a5e39185"}
1543
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "0ef4859c-13cc-4536-ba66-d6b0a5e39185"]]
1544
+  (0.1ms) SAVEPOINT active_record_1
1545
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.909791"], ["id", 18]]
1546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1547
+ Redirected to http://test.host/dbhero/dataclips/0ef4859c-13cc-4536-ba66-d6b0a5e39185/edit
1548
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
1549
+  (0.1ms) ROLLBACK
1550
+  (0.1ms) BEGIN
1551
+  (0.1ms) SAVEPOINT active_record_1
1552
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:28:43.915851"], ["updated_at", "2015-03-23 22:28:43.915851"], ["token", "cb44e1fb-2196-4e9c-a3ee-a1406808b07c"]]
1553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1554
+ Processing by Dbhero::DataclipsController#update as HTML
1555
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"cb44e1fb-2196-4e9c-a3ee-a1406808b07c"}
1556
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "cb44e1fb-2196-4e9c-a3ee-a1406808b07c"]]
1557
+  (0.2ms) SAVEPOINT active_record_1
1558
+ SQL (0.8ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:28:43.920657"], ["id", 19]]
1559
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1560
+ Redirected to http://test.host/dbhero/dataclips/cb44e1fb-2196-4e9c-a3ee-a1406808b07c/edit
1561
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
1562
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1563
+  (0.2ms) ROLLBACK
1564
+  (0.1ms) BEGIN
1565
+  (0.2ms) ROLLBACK
1566
+  (0.1ms) BEGIN
1567
+  (0.2ms) ROLLBACK
1568
+  (0.1ms) BEGIN
1569
+  (0.1ms) ROLLBACK
1570
+  (0.1ms) BEGIN
1571
+  (0.1ms) SAVEPOINT active_record_1
1572
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.949764"], ["updated_at", "2015-03-23 22:28:43.949764"], ["token", "87d44b56-2895-42ba-abeb-55b8c172db0d"]]
1573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1574
+  (0.1ms) ROLLBACK
1575
+  (0.1ms) BEGIN
1576
+  (0.2ms) SAVEPOINT active_record_1
1577
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 22:28:43.953299"], ["created_at", "2015-03-23 22:28:43.955274"], ["token", "e1d62c73-872c-444c-88c9-56ed572bcc9e"]]
1578
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1579
+  (0.1ms) SAVEPOINT active_record_1
1580
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 22:28:43.957762"], ["created_at", "2015-03-23 22:28:43.958550"], ["token", "e9662b4b-dac8-4397-8e1c-63e5ab5d423d"]]
1581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1582
+  (0.1ms) SAVEPOINT active_record_1
1583
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 22:28:43.959986"], ["created_at", "2015-03-23 22:28:43.960673"], ["token", "01e90528-edde-46b5-9a99-9069832f5e61"]]
1584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1585
+ Dbhero::Dataclip Load (1.0ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
1586
+  (0.1ms) ROLLBACK
1587
+  (0.1ms) BEGIN
1588
+  (0.1ms) SAVEPOINT active_record_1
1589
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.966388"], ["updated_at", "2015-03-23 22:28:43.966388"], ["token", "7680f562-301d-4a0a-9ea5-9005ce188a52"]]
1590
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1591
+  (0.2ms) ROLLBACK
1592
+  (0.6ms) BEGIN
1593
+  (0.2ms) SAVEPOINT active_record_1
1594
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.971723"], ["updated_at", "2015-03-23 22:28:43.971723"], ["token", "6e5d3d69-96ff-467b-a8e0-f8f2884245b1"]]
1595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1596
+  (0.1ms) ROLLBACK
1597
+  (0.1ms) BEGIN
1598
+  (0.1ms) SAVEPOINT active_record_1
1599
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.976092"], ["updated_at", "2015-03-23 22:28:43.976092"], ["token", "3047124b-8799-4f41-b662-8badd81a7707"]]
1600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.1ms) ROLLBACK
1602
+  (0.1ms) BEGIN
1603
+  (0.1ms) SAVEPOINT active_record_1
1604
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:28:43.980961"], ["updated_at", "2015-03-23 22:28:43.980961"], ["token", "b4b92a62-9e27-4378-8e5d-c3dae316cf33"]]
1605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1606
+  (0.1ms) SAVEPOINT active_record_1
1607
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1608
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1609
+  (0.1ms) ROLLBACK
1610
+  (0.1ms) BEGIN
1611
+  (0.1ms) SAVEPOINT active_record_1
1612
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 22:28:43.985142"], ["updated_at", "2015-03-23 22:28:43.985142"], ["token", "657cbf8d-0fa8-4ab5-a375-ec4bc098f96c"]]
1613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1614
+  (0.1ms) SAVEPOINT active_record_1
1615
+  (0.4ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
1616
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1617
+  (0.1ms) ROLLBACK
1618
+  (0.1ms) BEGIN
1619
+  (0.1ms) SAVEPOINT active_record_1
1620
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:28:43.989699"], ["updated_at", "2015-03-23 22:28:43.989699"], ["token", "756b60e3-df65-4a61-bbb9-636037e4a6ca"]]
1621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1622
+  (0.2ms) SAVEPOINT active_record_1
1623
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1624
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1625
+  (0.2ms) ROLLBACK
1626
+  (0.1ms) BEGIN
1627
+  (0.1ms) SAVEPOINT active_record_1
1628
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:28:43.995598"], ["updated_at", "2015-03-23 22:28:43.995598"], ["token", "0e82a93a-c8f3-4af9-8144-bfb6c3f53a68"]]
1629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1630
+  (0.1ms) SAVEPOINT active_record_1
1631
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
1632
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1633
+  (0.1ms) ROLLBACK
1634
+  (0.1ms) BEGIN
1635
+  (0.1ms) SAVEPOINT active_record_1
1636
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:43.999591"], ["updated_at", "2015-03-23 22:28:43.999591"], ["token", "27d32b16-222b-42d6-9c76-9a73092391c8"]]
1637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1638
+  (0.1ms) SAVEPOINT active_record_1
1639
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.001675"], ["updated_at", "2015-03-23 22:28:44.001675"], ["token", "be8d8eec-f312-424b-b943-c8540143f65f"]]
1640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1641
+  (0.1ms) SAVEPOINT active_record_1
1642
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.004621"], ["updated_at", "2015-03-23 22:28:44.004621"], ["token", "2026d3df-aa32-4b79-baef-43851070e486"]]
1643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1644
+  (0.1ms) SAVEPOINT active_record_1
1645
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.006616"], ["updated_at", "2015-03-23 22:28:44.006616"], ["token", "f8e33733-dc76-4ae2-b16d-67eaed0b06d3"]]
1646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1647
+  (0.1ms) SAVEPOINT active_record_1
1648
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.008563"], ["updated_at", "2015-03-23 22:28:44.008563"], ["token", "4928f131-4e03-4abd-b033-ce26b0a340c3"]]
1649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1650
+  (0.1ms) SAVEPOINT active_record_1
1651
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 22:28:44.010399"], ["updated_at", "2015-03-23 22:28:44.010399"], ["token", "c57a6b43-6c82-4cb4-aea8-346d7c6ecc5a"]]
1652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1653
+  (0.1ms) SAVEPOINT active_record_1
1654
+  (4.5ms) TRUNCATE table dbhero_dataclips
1655
+  (1.7ms) ROLLBACK TO SAVEPOINT active_record_1
1656
+  (0.6ms) SELECT COUNT(*) FROM "dbhero_dataclips"
1657
+  (0.2ms) ROLLBACK
1658
+  (0.1ms) BEGIN
1659
+  (0.1ms) SAVEPOINT active_record_1
1660
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.022514"], ["updated_at", "2015-03-23 22:28:44.022514"], ["token", "b645e92d-40c2-4c65-8141-f1d0e1e3329c"]]
1661
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.1ms) SAVEPOINT active_record_1
1663
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.025244"], ["updated_at", "2015-03-23 22:28:44.025244"], ["token", "38b0ae36-d5cc-4f8a-83e9-da5ed4372613"]]
1664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1665
+  (0.1ms) SAVEPOINT active_record_1
1666
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.028162"], ["updated_at", "2015-03-23 22:28:44.028162"], ["token", "9f73b139-56b2-4641-9234-6dc9b976e0da"]]
1667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1668
+  (0.1ms) SAVEPOINT active_record_1
1669
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.030151"], ["updated_at", "2015-03-23 22:28:44.030151"], ["token", "f226c8d3-55c5-483b-a9f3-7d27d09508aa"]]
1670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1671
+  (0.1ms) SAVEPOINT active_record_1
1672
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:28:44.032166"], ["updated_at", "2015-03-23 22:28:44.032166"], ["token", "eb0de1ea-9999-4687-8280-6a2086a55bf9"]]
1673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1674
+  (0.1ms) SAVEPOINT active_record_1
1675
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 22:28:44.034164"], ["updated_at", "2015-03-23 22:28:44.034164"], ["token", "b9683400-a476-4192-8bcd-4d11a5e25f41"]]
1676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1677
+  (0.1ms) SAVEPOINT active_record_1
1678
+  (0.2ms) TRUNCATE table dbhero_dataclips; commit;
1679
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
1680
+ : TRUNCATE table dbhero_dataclips; commit;
1681
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1682
+  (0.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
1683
+  (0.8ms) ROLLBACK
1684
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
1685
+  (123.8ms) DROP DATABASE IF EXISTS "dummy_test"
1686
+  (354.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1687
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1688
+  (8.4ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1689
+  (2.0ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
1690
+  (1.7ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
1691
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1692
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1693
+  (0.4ms) SELECT version FROM "schema_migrations"
1694
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
1695
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1696
+  (0.2ms) BEGIN
1697
+ Processing by Dbhero::DataclipsController#index as HTML
1698
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1699
+  (0.2ms) ROLLBACK
1700
+  (0.1ms) BEGIN
1701
+ Processing by Dbhero::DataclipsController#index as HTML
1702
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
1703
+ Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.0ms)
1704
+  (0.2ms) ROLLBACK
1705
+  (0.1ms) BEGIN
1706
+ Processing by Dbhero::DataclipsController#index as HTML
1707
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
1708
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1709
+  (0.3ms) ROLLBACK
1710
+  (0.1ms) BEGIN
1711
+ Processing by Dbhero::DataclipsController#index as HTML
1712
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1713
+  (0.2ms) ROLLBACK
1714
+  (0.1ms) BEGIN
1715
+ Processing by Dbhero::DataclipsController#index as HTML
1716
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
1717
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
1718
+  (0.5ms) ROLLBACK
1719
+  (0.1ms) BEGIN
1720
+ Processing by Dbhero::DataclipsController#new as HTML
1721
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1722
+  (0.2ms) ROLLBACK
1723
+  (0.1ms) BEGIN
1724
+ Processing by Dbhero::DataclipsController#new as HTML
1725
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
1726
+ Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 9.3ms)
1727
+  (0.2ms) ROLLBACK
1728
+  (0.1ms) BEGIN
1729
+ Processing by Dbhero::DataclipsController#new as HTML
1730
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
1731
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
1732
+  (0.2ms) ROLLBACK
1733
+  (0.1ms) BEGIN
1734
+ Processing by Dbhero::DataclipsController#new as HTML
1735
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1736
+  (0.2ms) ROLLBACK
1737
+  (0.1ms) BEGIN
1738
+ Processing by Dbhero::DataclipsController#new as HTML
1739
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
1740
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1741
+  (0.2ms) ROLLBACK
1742
+  (0.4ms) BEGIN
1743
+ Processing by Dbhero::DataclipsController#create as HTML
1744
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1745
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1746
+  (0.1ms) ROLLBACK
1747
+  (0.1ms) BEGIN
1748
+ Processing by Dbhero::DataclipsController#create as HTML
1749
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1750
+  (0.2ms) SAVEPOINT active_record_1
1751
+ SQL (1.1ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:04.446566"], ["updated_at", "2015-03-23 22:29:04.446566"], ["token", "d9d9a4d4-93d3-481a-88e2-315262e9ec5d"]]
1752
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1753
+ Redirected to http://test.host/dbhero/dataclips/d9d9a4d4-93d3-481a-88e2-315262e9ec5d/edit
1754
+ Completed 302 Found in 20ms (ActiveRecord: 1.6ms)
1755
+  (0.2ms) ROLLBACK
1756
+  (0.1ms) BEGIN
1757
+ Processing by Dbhero::DataclipsController#create as HTML
1758
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1759
+  (0.2ms) SAVEPOINT active_record_1
1760
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:04.468159"], ["updated_at", "2015-03-23 22:29:04.468159"], ["token", "0daff380-3e2a-4213-92e0-a9505efff901"]]
1761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1762
+ Redirected to http://test.host/dbhero/dataclips/0daff380-3e2a-4213-92e0-a9505efff901/edit
1763
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1764
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
1765
+  (0.2ms) ROLLBACK
1766
+  (0.1ms) BEGIN
1767
+ Processing by Dbhero::DataclipsController#create as HTML
1768
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1769
+  (0.2ms) SAVEPOINT active_record_1
1770
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:04.488229"], ["updated_at", "2015-03-23 22:29:04.488229"], ["token", "432fdb5a-5cd7-4d16-95b3-3b192deac955"]]
1771
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1772
+ Redirected to http://test.host/dbhero/dataclips/432fdb5a-5cd7-4d16-95b3-3b192deac955/edit
1773
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
1774
+  (0.2ms) ROLLBACK
1775
+  (0.1ms) BEGIN
1776
+ Processing by Dbhero::DataclipsController#create as HTML
1777
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1778
+  (0.2ms) SAVEPOINT active_record_1
1779
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:04.498675"], ["updated_at", "2015-03-23 22:29:04.498675"], ["token", "b170a0a6-8110-40c4-9e29-ea01ef543a33"]]
1780
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1781
+ Redirected to http://test.host/dbhero/dataclips/b170a0a6-8110-40c4-9e29-ea01ef543a33/edit
1782
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
1783
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
1784
+  (0.3ms) ROLLBACK
1785
+  (0.3ms) BEGIN
1786
+ Processing by Dbhero::DataclipsController#create as HTML
1787
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1788
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1789
+  (0.2ms) ROLLBACK
1790
+  (0.1ms) BEGIN
1791
+ Processing by Dbhero::DataclipsController#create as HTML
1792
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
1793
+  (0.1ms) SAVEPOINT active_record_1
1794
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.513705"], ["updated_at", "2015-03-23 22:29:04.513705"], ["token", "9ad5d151-4eec-4ef8-8976-3b6da9ac1b88"]]
1795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1796
+ Redirected to http://test.host/dbhero/dataclips/9ad5d151-4eec-4ef8-8976-3b6da9ac1b88/edit
1797
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
1798
+  (0.1ms) ROLLBACK
1799
+  (0.1ms) BEGIN
1800
+ Processing by Dbhero::DataclipsController#create as HTML
1801
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
1802
+  (0.1ms) SAVEPOINT active_record_1
1803
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.521165"], ["updated_at", "2015-03-23 22:29:04.521165"], ["token", "d1dc9a70-639b-40d9-8675-393209f46588"]]
1804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1805
+ Redirected to http://test.host/dbhero/dataclips/d1dc9a70-639b-40d9-8675-393209f46588/edit
1806
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1807
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
1808
+  (0.2ms) ROLLBACK
1809
+  (0.1ms) BEGIN
1810
+  (0.2ms) SAVEPOINT active_record_1
1811
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.527661"], ["updated_at", "2015-03-23 22:29:04.527661"], ["token", "9190da71-f9e6-4074-b3b0-ac0f8e11b551"]]
1812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1813
+ Processing by Dbhero::DataclipsController#edit as HTML
1814
+ Parameters: {"id"=>"9190da71-f9e6-4074-b3b0-ac0f8e11b551"}
1815
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1816
+  (0.1ms) ROLLBACK
1817
+  (0.1ms) BEGIN
1818
+  (0.2ms) SAVEPOINT active_record_1
1819
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.534537"], ["updated_at", "2015-03-23 22:29:04.534537"], ["token", "2e608808-4f37-40be-a48e-9d765d2d40ae"]]
1820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1821
+ Processing by Dbhero::DataclipsController#edit as HTML
1822
+ Parameters: {"id"=>"2e608808-4f37-40be-a48e-9d765d2d40ae"}
1823
+ Dbhero::Dataclip Load (0.7ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2e608808-4f37-40be-a48e-9d765d2d40ae"]]
1824
+  (0.2ms) SAVEPOINT active_record_1
1825
+  (1.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1826
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1827
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1828
+ ^
1829
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1830
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1831
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1832
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
1833
+ Completed 200 OK in 9ms (Views: 3.3ms | ActiveRecord: 2.5ms)
1834
+  (0.2ms) ROLLBACK
1835
+  (0.1ms) BEGIN
1836
+  (0.1ms) SAVEPOINT active_record_1
1837
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.549242"], ["updated_at", "2015-03-23 22:29:04.549242"], ["token", "bf6ad37c-85e2-4e4d-b681-72d2e639b0b4"]]
1838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1839
+ Processing by Dbhero::DataclipsController#edit as HTML
1840
+ Parameters: {"id"=>"bf6ad37c-85e2-4e4d-b681-72d2e639b0b4"}
1841
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "bf6ad37c-85e2-4e4d-b681-72d2e639b0b4"]]
1842
+  (0.1ms) SAVEPOINT active_record_1
1843
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1844
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1845
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1846
+ ^
1847
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1848
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1849
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1850
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
1851
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.8ms)
1852
+  (0.2ms) ROLLBACK
1853
+  (0.1ms) BEGIN
1854
+  (0.1ms) SAVEPOINT active_record_1
1855
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.559032"], ["updated_at", "2015-03-23 22:29:04.559032"], ["token", "e652e27f-ae7e-4720-b180-5adbe18ea144"]]
1856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1857
+ Processing by Dbhero::DataclipsController#edit as HTML
1858
+ Parameters: {"id"=>"e652e27f-ae7e-4720-b180-5adbe18ea144"}
1859
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1860
+  (0.2ms) ROLLBACK
1861
+  (0.1ms) BEGIN
1862
+  (0.1ms) SAVEPOINT active_record_1
1863
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.566219"], ["updated_at", "2015-03-23 22:29:04.566219"], ["token", "a8656a4d-b16c-4be8-a386-7800270e7dc0"]]
1864
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1865
+ Processing by Dbhero::DataclipsController#edit as HTML
1866
+ Parameters: {"id"=>"a8656a4d-b16c-4be8-a386-7800270e7dc0"}
1867
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "a8656a4d-b16c-4be8-a386-7800270e7dc0"]]
1868
+  (0.1ms) SAVEPOINT active_record_1
1869
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
1870
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
1871
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
1872
+ ^
1873
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
1874
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
1875
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1876
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.5ms)
1877
+ Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 1.2ms)
1878
+  (0.3ms) ROLLBACK
1879
+  (0.1ms) BEGIN
1880
+ Processing by Dbhero::DataclipsController#create as HTML
1881
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
1882
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
1883
+  (0.4ms) ROLLBACK
1884
+  (0.1ms) BEGIN
1885
+  (0.2ms) SAVEPOINT active_record_1
1886
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.586767"], ["updated_at", "2015-03-23 22:29:04.586767"], ["token", "afdaf719-6136-41aa-8372-1258878d6cfe"]]
1887
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1888
+ Processing by Dbhero::DataclipsController#update as HTML
1889
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"afdaf719-6136-41aa-8372-1258878d6cfe"}
1890
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "afdaf719-6136-41aa-8372-1258878d6cfe"]]
1891
+  (0.2ms) SAVEPOINT active_record_1
1892
+ SQL (0.7ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.611167"], ["id", 12]]
1893
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1894
+ Redirected to http://test.host/dbhero/dataclips/afdaf719-6136-41aa-8372-1258878d6cfe/edit
1895
+ Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
1896
+  (0.5ms) ROLLBACK
1897
+  (0.2ms) BEGIN
1898
+  (0.1ms) SAVEPOINT active_record_1
1899
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.625139"], ["updated_at", "2015-03-23 22:29:04.625139"], ["token", "da06c5ac-fe08-451a-86e2-c65b24b3f591"]]
1900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1901
+ Processing by Dbhero::DataclipsController#update as HTML
1902
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"da06c5ac-fe08-451a-86e2-c65b24b3f591"}
1903
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "da06c5ac-fe08-451a-86e2-c65b24b3f591"]]
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.629488"], ["id", 13]]
1906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1907
+ Redirected to http://test.host/dbhero/dataclips/da06c5ac-fe08-451a-86e2-c65b24b3f591/edit
1908
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1909
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1910
+  (0.1ms) ROLLBACK
1911
+  (0.1ms) BEGIN
1912
+  (0.1ms) SAVEPOINT active_record_1
1913
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.636486"], ["updated_at", "2015-03-23 22:29:04.636486"], ["token", "4b90901e-7deb-4e35-bc54-e56afa7bb920"]]
1914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1915
+ Processing by Dbhero::DataclipsController#update as HTML
1916
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"4b90901e-7deb-4e35-bc54-e56afa7bb920"}
1917
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "4b90901e-7deb-4e35-bc54-e56afa7bb920"]]
1918
+  (0.1ms) SAVEPOINT active_record_1
1919
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.640709"], ["id", 14]]
1920
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1921
+ Redirected to http://test.host/dbhero/dataclips/4b90901e-7deb-4e35-bc54-e56afa7bb920/edit
1922
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
1923
+  (0.2ms) ROLLBACK
1924
+  (0.6ms) BEGIN
1925
+  (0.2ms) SAVEPOINT active_record_1
1926
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.647767"], ["updated_at", "2015-03-23 22:29:04.647767"], ["token", "f9468f29-afe8-4543-852e-4f9013f79d91"]]
1927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1928
+ Processing by Dbhero::DataclipsController#update as HTML
1929
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"f9468f29-afe8-4543-852e-4f9013f79d91"}
1930
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f9468f29-afe8-4543-852e-4f9013f79d91"]]
1931
+  (0.1ms) SAVEPOINT active_record_1
1932
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.652067"], ["id", 15]]
1933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1934
+ Redirected to http://test.host/dbhero/dataclips/f9468f29-afe8-4543-852e-4f9013f79d91/edit
1935
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
1936
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1937
+  (0.1ms) ROLLBACK
1938
+  (0.1ms) BEGIN
1939
+  (0.2ms) SAVEPOINT active_record_1
1940
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.659047"], ["updated_at", "2015-03-23 22:29:04.659047"], ["token", "630396c7-6102-485b-b057-da39d72a5684"]]
1941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1942
+ Processing by Dbhero::DataclipsController#update as HTML
1943
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"630396c7-6102-485b-b057-da39d72a5684"}
1944
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
1945
+  (0.2ms) ROLLBACK
1946
+  (0.1ms) BEGIN
1947
+  (0.1ms) SAVEPOINT active_record_1
1948
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.665077"], ["updated_at", "2015-03-23 22:29:04.665077"], ["token", "9afea532-c59d-49c6-9b7e-fcbdf8ca2e8a"]]
1949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1950
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
1951
+  (0.1ms) ROLLBACK
1952
+  (0.1ms) BEGIN
1953
+  (0.1ms) SAVEPOINT active_record_1
1954
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.672307"], ["updated_at", "2015-03-23 22:29:04.672307"], ["token", "e1a76f2d-5a51-4496-ac63-ab5f006236c2"]]
1955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1956
+ Processing by Dbhero::DataclipsController#update as HTML
1957
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"e1a76f2d-5a51-4496-ac63-ab5f006236c2"}
1958
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "e1a76f2d-5a51-4496-ac63-ab5f006236c2"]]
1959
+  (0.1ms) SAVEPOINT active_record_1
1960
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.676633"], ["id", 18]]
1961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1962
+ Redirected to http://test.host/dbhero/dataclips/e1a76f2d-5a51-4496-ac63-ab5f006236c2/edit
1963
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1964
+  (0.7ms) ROLLBACK
1965
+  (0.1ms) BEGIN
1966
+  (0.2ms) SAVEPOINT active_record_1
1967
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:04.683740"], ["updated_at", "2015-03-23 22:29:04.683740"], ["token", "0eb1b6aa-a3fd-471d-8cab-32d04e476e4b"]]
1968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1969
+ Processing by Dbhero::DataclipsController#update as HTML
1970
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0eb1b6aa-a3fd-471d-8cab-32d04e476e4b"}
1971
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "0eb1b6aa-a3fd-471d-8cab-32d04e476e4b"]]
1972
+  (0.1ms) SAVEPOINT active_record_1
1973
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:04.688128"], ["id", 19]]
1974
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1975
+ Redirected to http://test.host/dbhero/dataclips/0eb1b6aa-a3fd-471d-8cab-32d04e476e4b/edit
1976
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
1977
+ Dbhero::Dataclip Load (0.9ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
1978
+  (0.1ms) ROLLBACK
1979
+  (0.1ms) BEGIN
1980
+  (0.2ms) ROLLBACK
1981
+  (0.1ms) BEGIN
1982
+  (0.2ms) ROLLBACK
1983
+  (0.1ms) BEGIN
1984
+  (0.4ms) ROLLBACK
1985
+  (0.1ms) BEGIN
1986
+  (0.1ms) SAVEPOINT active_record_1
1987
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.717107"], ["updated_at", "2015-03-23 22:29:04.717107"], ["token", "9962d417-1171-496e-830c-b3900cfa7e1f"]]
1988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1989
+  (0.2ms) ROLLBACK
1990
+  (0.1ms) BEGIN
1991
+  (0.1ms) SAVEPOINT active_record_1
1992
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 22:29:04.720205"], ["created_at", "2015-03-23 22:29:04.721363"], ["token", "f4a8d3c5-a356-43e9-9519-814f7a53ebb5"]]
1993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1994
+  (0.1ms) SAVEPOINT active_record_1
1995
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 22:29:04.723174"], ["created_at", "2015-03-23 22:29:04.724057"], ["token", "3b0aa8a5-8847-46bb-a471-34345b789838"]]
1996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1997
+  (0.1ms) SAVEPOINT active_record_1
1998
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 22:29:04.726919"], ["created_at", "2015-03-23 22:29:04.727822"], ["token", "26ef4ca9-1666-4f83-955e-4f5bd44ba331"]]
1999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2000
+ Dbhero::Dataclip Load (1.0ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
2001
+  (0.2ms) ROLLBACK
2002
+  (0.1ms) BEGIN
2003
+  (0.1ms) SAVEPOINT active_record_1
2004
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.734548"], ["updated_at", "2015-03-23 22:29:04.734548"], ["token", "0062ed91-8574-49fb-98fc-95b5bc486051"]]
2005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2006
+  (0.1ms) ROLLBACK
2007
+  (0.1ms) BEGIN
2008
+  (0.5ms) SAVEPOINT active_record_1
2009
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.739330"], ["updated_at", "2015-03-23 22:29:04.739330"], ["token", "70acbeb3-5f4e-464c-95da-ef256082b7b1"]]
2010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2011
+  (0.2ms) ROLLBACK
2012
+  (0.1ms) BEGIN
2013
+  (0.1ms) SAVEPOINT active_record_1
2014
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.742555"], ["updated_at", "2015-03-23 22:29:04.742555"], ["token", "f7f9c5b5-a4e4-4b35-88b0-827773be7770"]]
2015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2016
+  (0.1ms) ROLLBACK
2017
+  (0.1ms) BEGIN
2018
+  (0.1ms) SAVEPOINT active_record_1
2019
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:04.746198"], ["updated_at", "2015-03-23 22:29:04.746198"], ["token", "aa1a1616-83b9-453c-b9b2-7d030bcf2a34"]]
2020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2021
+  (0.1ms) SAVEPOINT active_record_1
2022
+  (1.3ms) select 'foo'::text as bar, 'bar'::text as foo
2023
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
2024
+  (0.2ms) ROLLBACK
2025
+  (0.1ms) BEGIN
2026
+  (0.1ms) SAVEPOINT active_record_1
2027
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 22:29:04.753892"], ["updated_at", "2015-03-23 22:29:04.753892"], ["token", "b2515d40-0bb3-4f19-8126-3a7d47a35eb5"]]
2028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2029
+  (0.1ms) SAVEPOINT active_record_1
2030
+  (0.4ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
2031
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2032
+  (0.1ms) ROLLBACK
2033
+  (0.1ms) BEGIN
2034
+  (0.1ms) SAVEPOINT active_record_1
2035
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:04.758753"], ["updated_at", "2015-03-23 22:29:04.758753"], ["token", "d42b326d-1ed2-455e-935d-06f21ca23fc4"]]
2036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2037
+  (0.1ms) SAVEPOINT active_record_1
2038
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2039
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2040
+  (0.2ms) ROLLBACK
2041
+  (0.1ms) BEGIN
2042
+  (0.2ms) SAVEPOINT active_record_1
2043
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:04.766258"], ["updated_at", "2015-03-23 22:29:04.766258"], ["token", "4709c6b9-36a0-43c9-9276-3cf5599897e5"]]
2044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2045
+  (0.1ms) SAVEPOINT active_record_1
2046
+  (0.3ms) select 'foo'::text as bar, 'bar'::text as foo
2047
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2048
+  (0.2ms) ROLLBACK
2049
+  (0.1ms) BEGIN
2050
+  (0.1ms) SAVEPOINT active_record_1
2051
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.771290"], ["updated_at", "2015-03-23 22:29:04.771290"], ["token", "44eef34f-3332-493b-a18e-ac6dfed310d9"]]
2052
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2053
+  (0.2ms) SAVEPOINT active_record_1
2054
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.774315"], ["updated_at", "2015-03-23 22:29:04.774315"], ["token", "0c1ffd6f-5bcb-47a1-94e6-918b33939d84"]]
2055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2056
+  (0.1ms) SAVEPOINT active_record_1
2057
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.776433"], ["updated_at", "2015-03-23 22:29:04.776433"], ["token", "6feefd50-d9c1-4365-9587-3c347d7eeb1e"]]
2058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2059
+  (0.1ms) SAVEPOINT active_record_1
2060
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.778561"], ["updated_at", "2015-03-23 22:29:04.778561"], ["token", "3ce76563-983a-4085-b647-3f53ff3c253d"]]
2061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2062
+  (0.2ms) SAVEPOINT active_record_1
2063
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.781501"], ["updated_at", "2015-03-23 22:29:04.781501"], ["token", "834b0c03-0e86-4bd5-9fff-71660c8667d5"]]
2064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2065
+  (0.2ms) SAVEPOINT active_record_1
2066
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 22:29:04.785991"], ["updated_at", "2015-03-23 22:29:04.785991"], ["token", "d4c97cba-6cb0-42bb-9945-e33c9446d877"]]
2067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2068
+  (0.1ms) SAVEPOINT active_record_1
2069
+  (2.9ms) TRUNCATE table dbhero_dataclips
2070
+  (1.4ms) ROLLBACK TO SAVEPOINT active_record_1
2071
+  (0.8ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2072
+  (0.2ms) ROLLBACK
2073
+  (0.8ms) BEGIN
2074
+  (0.2ms) SAVEPOINT active_record_1
2075
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.798008"], ["updated_at", "2015-03-23 22:29:04.798008"], ["token", "025fe0b0-15c1-48ff-8bf9-c53c38035c57"]]
2076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2077
+  (0.1ms) SAVEPOINT active_record_1
2078
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.801078"], ["updated_at", "2015-03-23 22:29:04.801078"], ["token", "45248ca2-3c14-4c7a-9d01-19844d257b7e"]]
2079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2080
+  (0.1ms) SAVEPOINT active_record_1
2081
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.803478"], ["updated_at", "2015-03-23 22:29:04.803478"], ["token", "acac974c-86c3-4da0-83df-3157a63b4df2"]]
2082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2083
+  (0.1ms) SAVEPOINT active_record_1
2084
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.806090"], ["updated_at", "2015-03-23 22:29:04.806090"], ["token", "e5a35d6c-a95f-452c-8a4d-833e6720c763"]]
2085
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2086
+  (0.1ms) SAVEPOINT active_record_1
2087
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:04.809576"], ["updated_at", "2015-03-23 22:29:04.809576"], ["token", "7748de03-9b6a-4b24-a4d0-f343bd3a5bc3"]]
2088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2089
+  (0.1ms) SAVEPOINT active_record_1
2090
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 22:29:04.811936"], ["updated_at", "2015-03-23 22:29:04.811936"], ["token", "74fcb8d2-03e4-4de4-80f2-62f7e5a41b22"]]
2091
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2092
+  (0.1ms) SAVEPOINT active_record_1
2093
+  (0.3ms) TRUNCATE table dbhero_dataclips; commit;
2094
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
2095
+ : TRUNCATE table dbhero_dataclips; commit;
2096
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
2097
+  (0.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2098
+  (0.1ms) ROLLBACK
2099
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2100
+  (119.3ms) DROP DATABASE IF EXISTS "dummy_test"
2101
+  (337.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
2102
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2103
+  (10.4ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2104
+  (2.3ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
2105
+  (1.6ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
2106
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2107
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2108
+  (0.4ms) SELECT version FROM "schema_migrations"
2109
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
2110
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2111
+  (0.2ms) BEGIN
2112
+ Processing by Dbhero::DataclipsController#index as HTML
2113
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2114
+  (0.2ms) ROLLBACK
2115
+  (0.1ms) BEGIN
2116
+ Processing by Dbhero::DataclipsController#index as HTML
2117
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
2118
+ Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.0ms)
2119
+  (0.2ms) ROLLBACK
2120
+  (0.1ms) BEGIN
2121
+ Processing by Dbhero::DataclipsController#index as HTML
2122
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.6ms)
2123
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
2124
+  (0.2ms) ROLLBACK
2125
+  (0.1ms) BEGIN
2126
+ Processing by Dbhero::DataclipsController#index as HTML
2127
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2128
+  (0.2ms) ROLLBACK
2129
+  (0.1ms) BEGIN
2130
+ Processing by Dbhero::DataclipsController#index as HTML
2131
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
2132
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2133
+  (0.2ms) ROLLBACK
2134
+  (0.1ms) BEGIN
2135
+ Processing by Dbhero::DataclipsController#new as HTML
2136
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2137
+  (0.2ms) ROLLBACK
2138
+  (0.1ms) BEGIN
2139
+ Processing by Dbhero::DataclipsController#new as HTML
2140
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
2141
+ Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 8.3ms)
2142
+  (0.2ms) ROLLBACK
2143
+  (0.1ms) BEGIN
2144
+ Processing by Dbhero::DataclipsController#new as HTML
2145
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.4ms)
2146
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2147
+  (0.2ms) ROLLBACK
2148
+  (0.1ms) BEGIN
2149
+ Processing by Dbhero::DataclipsController#new as HTML
2150
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2151
+  (0.2ms) ROLLBACK
2152
+  (0.1ms) BEGIN
2153
+ Processing by Dbhero::DataclipsController#new as HTML
2154
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
2155
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2156
+  (0.2ms) ROLLBACK
2157
+  (0.1ms) BEGIN
2158
+ Processing by Dbhero::DataclipsController#create as HTML
2159
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2160
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2161
+  (0.1ms) ROLLBACK
2162
+  (0.1ms) BEGIN
2163
+ Processing by Dbhero::DataclipsController#create as HTML
2164
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2165
+  (0.2ms) SAVEPOINT active_record_1
2166
+ SQL (1.1ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:21.106901"], ["updated_at", "2015-03-23 22:29:21.106901"], ["token", "dee4bfdc-819c-42b0-a68e-d2e22df9f7d8"]]
2167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2168
+ Redirected to http://test.host/dbhero/dataclips/dee4bfdc-819c-42b0-a68e-d2e22df9f7d8/edit
2169
+ Completed 302 Found in 18ms (ActiveRecord: 1.6ms)
2170
+  (0.3ms) ROLLBACK
2171
+  (0.1ms) BEGIN
2172
+ Processing by Dbhero::DataclipsController#create as HTML
2173
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2174
+  (0.2ms) SAVEPOINT active_record_1
2175
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:21.126807"], ["updated_at", "2015-03-23 22:29:21.126807"], ["token", "b954cbf6-f794-49ad-a3fd-b48020cc0af5"]]
2176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2177
+ Redirected to http://test.host/dbhero/dataclips/b954cbf6-f794-49ad-a3fd-b48020cc0af5/edit
2178
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2179
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
2180
+  (0.2ms) ROLLBACK
2181
+  (0.1ms) BEGIN
2182
+ Processing by Dbhero::DataclipsController#create as HTML
2183
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2184
+  (0.2ms) SAVEPOINT active_record_1
2185
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:21.145638"], ["updated_at", "2015-03-23 22:29:21.145638"], ["token", "fdd959a9-a158-40de-80dd-bb418da2b0b9"]]
2186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2187
+ Redirected to http://test.host/dbhero/dataclips/fdd959a9-a158-40de-80dd-bb418da2b0b9/edit
2188
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
2189
+  (0.2ms) ROLLBACK
2190
+  (0.1ms) BEGIN
2191
+ Processing by Dbhero::DataclipsController#create as HTML
2192
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2193
+  (0.2ms) SAVEPOINT active_record_1
2194
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 22:29:21.152837"], ["updated_at", "2015-03-23 22:29:21.152837"], ["token", "bae137da-ee17-4284-86a8-318b64e87620"]]
2195
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2196
+ Redirected to http://test.host/dbhero/dataclips/bae137da-ee17-4284-86a8-318b64e87620/edit
2197
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2198
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
2199
+  (0.2ms) ROLLBACK
2200
+  (0.1ms) BEGIN
2201
+ Processing by Dbhero::DataclipsController#create as HTML
2202
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2203
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2204
+  (0.2ms) ROLLBACK
2205
+  (0.3ms) BEGIN
2206
+ Processing by Dbhero::DataclipsController#create as HTML
2207
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
2208
+  (0.2ms) SAVEPOINT active_record_1
2209
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.169444"], ["updated_at", "2015-03-23 22:29:21.169444"], ["token", "9121b4f2-68f4-410d-b7b2-15642acfd590"]]
2210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2211
+ Redirected to http://test.host/dbhero/dataclips/9121b4f2-68f4-410d-b7b2-15642acfd590/edit
2212
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
2213
+  (0.1ms) ROLLBACK
2214
+  (0.1ms) BEGIN
2215
+ Processing by Dbhero::DataclipsController#create as HTML
2216
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
2217
+  (0.1ms) SAVEPOINT active_record_1
2218
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.176103"], ["updated_at", "2015-03-23 22:29:21.176103"], ["token", "1bb8035c-ad31-4408-9799-7a76eb4ccb4b"]]
2219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2220
+ Redirected to http://test.host/dbhero/dataclips/1bb8035c-ad31-4408-9799-7a76eb4ccb4b/edit
2221
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
2222
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
2223
+  (0.1ms) ROLLBACK
2224
+  (0.1ms) BEGIN
2225
+  (0.1ms) SAVEPOINT active_record_1
2226
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.183214"], ["updated_at", "2015-03-23 22:29:21.183214"], ["token", "a90e8210-864b-4078-b62a-821ba2b5f24b"]]
2227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2228
+ Processing by Dbhero::DataclipsController#edit as HTML
2229
+ Parameters: {"id"=>"a90e8210-864b-4078-b62a-821ba2b5f24b"}
2230
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2231
+  (0.1ms) ROLLBACK
2232
+  (0.1ms) BEGIN
2233
+  (0.5ms) SAVEPOINT active_record_1
2234
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.189936"], ["updated_at", "2015-03-23 22:29:21.189936"], ["token", "9314bcc3-5249-4671-b69e-a38864ebcd7d"]]
2235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2236
+ Processing by Dbhero::DataclipsController#edit as HTML
2237
+ Parameters: {"id"=>"9314bcc3-5249-4671-b69e-a38864ebcd7d"}
2238
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "9314bcc3-5249-4671-b69e-a38864ebcd7d"]]
2239
+  (0.1ms) SAVEPOINT active_record_1
2240
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2241
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2242
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2243
+ ^
2244
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2245
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2246
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2247
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
2248
+ Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 1.1ms)
2249
+  (0.2ms) ROLLBACK
2250
+  (0.1ms) BEGIN
2251
+  (0.2ms) SAVEPOINT active_record_1
2252
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.204021"], ["updated_at", "2015-03-23 22:29:21.204021"], ["token", "bbece829-3517-470b-9988-03e220a7b188"]]
2253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2254
+ Processing by Dbhero::DataclipsController#edit as HTML
2255
+ Parameters: {"id"=>"bbece829-3517-470b-9988-03e220a7b188"}
2256
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "bbece829-3517-470b-9988-03e220a7b188"]]
2257
+  (0.1ms) SAVEPOINT active_record_1
2258
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2259
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2260
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2261
+ ^
2262
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2263
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2264
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2265
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
2266
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 1.0ms)
2267
+  (0.2ms) ROLLBACK
2268
+  (0.1ms) BEGIN
2269
+  (0.2ms) SAVEPOINT active_record_1
2270
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.213903"], ["updated_at", "2015-03-23 22:29:21.213903"], ["token", "a229d29f-c8a0-4c64-b898-abca77f81f61"]]
2271
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2272
+ Processing by Dbhero::DataclipsController#edit as HTML
2273
+ Parameters: {"id"=>"a229d29f-c8a0-4c64-b898-abca77f81f61"}
2274
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2275
+  (0.2ms) ROLLBACK
2276
+  (0.1ms) BEGIN
2277
+  (0.1ms) SAVEPOINT active_record_1
2278
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.220610"], ["updated_at", "2015-03-23 22:29:21.220610"], ["token", "8d0114a7-ac2b-4f3a-b4b7-07fea1527578"]]
2279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2280
+ Processing by Dbhero::DataclipsController#edit as HTML
2281
+ Parameters: {"id"=>"8d0114a7-ac2b-4f3a-b4b7-07fea1527578"}
2282
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "8d0114a7-ac2b-4f3a-b4b7-07fea1527578"]]
2283
+  (0.4ms) SAVEPOINT active_record_1
2284
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2285
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2286
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2287
+ ^
2288
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2289
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2290
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2291
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
2292
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 1.1ms)
2293
+  (0.2ms) ROLLBACK
2294
+  (0.1ms) BEGIN
2295
+ Processing by Dbhero::DataclipsController#create as HTML
2296
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2297
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2298
+  (0.1ms) ROLLBACK
2299
+  (0.1ms) BEGIN
2300
+  (0.1ms) SAVEPOINT active_record_1
2301
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.233163"], ["updated_at", "2015-03-23 22:29:21.233163"], ["token", "448325fb-d376-4d4d-8ed8-e0a88c015ff9"]]
2302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2303
+ Processing by Dbhero::DataclipsController#update as HTML
2304
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"448325fb-d376-4d4d-8ed8-e0a88c015ff9"}
2305
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "448325fb-d376-4d4d-8ed8-e0a88c015ff9"]]
2306
+  (0.3ms) SAVEPOINT active_record_1
2307
+ SQL (0.5ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.238980"], ["id", 12]]
2308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2309
+ Redirected to http://test.host/dbhero/dataclips/448325fb-d376-4d4d-8ed8-e0a88c015ff9/edit
2310
+ Completed 302 Found in 12ms (ActiveRecord: 1.4ms)
2311
+  (0.2ms) ROLLBACK
2312
+  (0.1ms) BEGIN
2313
+  (0.2ms) SAVEPOINT active_record_1
2314
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.253051"], ["updated_at", "2015-03-23 22:29:21.253051"], ["token", "da88ca7b-db86-453e-8100-67fdd99f4e34"]]
2315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2316
+ Processing by Dbhero::DataclipsController#update as HTML
2317
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"da88ca7b-db86-453e-8100-67fdd99f4e34"}
2318
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "da88ca7b-db86-453e-8100-67fdd99f4e34"]]
2319
+  (0.2ms) SAVEPOINT active_record_1
2320
+ SQL (0.6ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.258313"], ["id", 13]]
2321
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2322
+ Redirected to http://test.host/dbhero/dataclips/da88ca7b-db86-453e-8100-67fdd99f4e34/edit
2323
+ Completed 302 Found in 6ms (ActiveRecord: 1.7ms)
2324
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2325
+  (0.2ms) ROLLBACK
2326
+  (0.2ms) BEGIN
2327
+  (0.2ms) SAVEPOINT active_record_1
2328
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.269363"], ["updated_at", "2015-03-23 22:29:21.269363"], ["token", "d2e8873c-4f3f-438a-87f6-0dd9775361b5"]]
2329
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2330
+ Processing by Dbhero::DataclipsController#update as HTML
2331
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"d2e8873c-4f3f-438a-87f6-0dd9775361b5"}
2332
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "d2e8873c-4f3f-438a-87f6-0dd9775361b5"]]
2333
+  (0.1ms) SAVEPOINT active_record_1
2334
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.276307"], ["id", 14]]
2335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2336
+ Redirected to http://test.host/dbhero/dataclips/d2e8873c-4f3f-438a-87f6-0dd9775361b5/edit
2337
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
2338
+  (0.2ms) ROLLBACK
2339
+  (0.2ms) BEGIN
2340
+  (0.2ms) SAVEPOINT active_record_1
2341
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.283948"], ["updated_at", "2015-03-23 22:29:21.283948"], ["token", "2b903dd5-d0a6-4e02-90d3-b63eb8badd62"]]
2342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2343
+ Processing by Dbhero::DataclipsController#update as HTML
2344
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"2b903dd5-d0a6-4e02-90d3-b63eb8badd62"}
2345
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2b903dd5-d0a6-4e02-90d3-b63eb8badd62"]]
2346
+  (0.1ms) SAVEPOINT active_record_1
2347
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.288209"], ["id", 15]]
2348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2349
+ Redirected to http://test.host/dbhero/dataclips/2b903dd5-d0a6-4e02-90d3-b63eb8badd62/edit
2350
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
2351
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2352
+  (0.1ms) ROLLBACK
2353
+  (0.1ms) BEGIN
2354
+  (0.2ms) SAVEPOINT active_record_1
2355
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.295305"], ["updated_at", "2015-03-23 22:29:21.295305"], ["token", "5af7469d-32da-47d9-9f54-fc2a20002237"]]
2356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2357
+ Processing by Dbhero::DataclipsController#update as HTML
2358
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"5af7469d-32da-47d9-9f54-fc2a20002237"}
2359
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2360
+  (0.2ms) ROLLBACK
2361
+  (0.1ms) BEGIN
2362
+  (0.1ms) SAVEPOINT active_record_1
2363
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.301451"], ["updated_at", "2015-03-23 22:29:21.301451"], ["token", "569344ba-2a72-4f78-af86-146a839ab1a2"]]
2364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2365
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
2366
+  (0.2ms) ROLLBACK
2367
+  (0.1ms) BEGIN
2368
+  (0.1ms) SAVEPOINT active_record_1
2369
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.308005"], ["updated_at", "2015-03-23 22:29:21.308005"], ["token", "5e7f7614-54b2-43be-a7e8-a7fc8442a5ca"]]
2370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2371
+ Processing by Dbhero::DataclipsController#update as HTML
2372
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"5e7f7614-54b2-43be-a7e8-a7fc8442a5ca"}
2373
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "5e7f7614-54b2-43be-a7e8-a7fc8442a5ca"]]
2374
+  (0.1ms) SAVEPOINT active_record_1
2375
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.311809"], ["id", 18]]
2376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2377
+ Redirected to http://test.host/dbhero/dataclips/5e7f7614-54b2-43be-a7e8-a7fc8442a5ca/edit
2378
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2379
+  (0.2ms) ROLLBACK
2380
+  (0.1ms) BEGIN
2381
+  (0.1ms) SAVEPOINT active_record_1
2382
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 22:29:21.318284"], ["updated_at", "2015-03-23 22:29:21.318284"], ["token", "7de19450-8533-4011-a698-d59c8c6db8de"]]
2383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2384
+ Processing by Dbhero::DataclipsController#update as HTML
2385
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"7de19450-8533-4011-a698-d59c8c6db8de"}
2386
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "7de19450-8533-4011-a698-d59c8c6db8de"]]
2387
+  (0.1ms) SAVEPOINT active_record_1
2388
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 22:29:21.322239"], ["id", 19]]
2389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2390
+ Redirected to http://test.host/dbhero/dataclips/7de19450-8533-4011-a698-d59c8c6db8de/edit
2391
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2392
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2393
+  (0.1ms) ROLLBACK
2394
+  (0.1ms) BEGIN
2395
+  (0.2ms) ROLLBACK
2396
+  (0.3ms) BEGIN
2397
+  (0.2ms) ROLLBACK
2398
+  (0.1ms) BEGIN
2399
+  (0.1ms) ROLLBACK
2400
+  (0.1ms) BEGIN
2401
+  (0.1ms) SAVEPOINT active_record_1
2402
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.347399"], ["updated_at", "2015-03-23 22:29:21.347399"], ["token", "4a43d589-5689-4898-84bd-f42d31096d72"]]
2403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2404
+  (0.1ms) ROLLBACK
2405
+  (0.1ms) BEGIN
2406
+  (0.1ms) SAVEPOINT active_record_1
2407
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 22:29:21.350066"], ["created_at", "2015-03-23 22:29:21.351183"], ["token", "287e8f02-cb58-4302-a86d-709b84dc4cca"]]
2408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.1ms) SAVEPOINT active_record_1
2410
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 22:29:21.353688"], ["created_at", "2015-03-23 22:29:21.354452"], ["token", "048f598d-e71f-4690-b8b0-08d31c0916e9"]]
2411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2412
+  (0.1ms) SAVEPOINT active_record_1
2413
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 22:29:21.355759"], ["created_at", "2015-03-23 22:29:21.356463"], ["token", "46bc714d-44e1-435e-83d9-35ca4af5e3a3"]]
2414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2415
+ Dbhero::Dataclip Load (0.9ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
2416
+  (0.1ms) ROLLBACK
2417
+  (0.1ms) BEGIN
2418
+  (0.1ms) SAVEPOINT active_record_1
2419
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.361522"], ["updated_at", "2015-03-23 22:29:21.361522"], ["token", "7418195f-e329-4f79-b84d-e84a665fcb28"]]
2420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2421
+  (0.3ms) ROLLBACK
2422
+  (0.1ms) BEGIN
2423
+  (0.1ms) SAVEPOINT active_record_1
2424
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.365696"], ["updated_at", "2015-03-23 22:29:21.365696"], ["token", "5e83c579-7b46-436f-b753-0b9310bcff37"]]
2425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2426
+  (0.1ms) ROLLBACK
2427
+  (0.1ms) BEGIN
2428
+  (0.1ms) SAVEPOINT active_record_1
2429
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.369527"], ["updated_at", "2015-03-23 22:29:21.369527"], ["token", "301b1d0c-b07f-47a1-b963-b404c194eb4b"]]
2430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2431
+  (0.1ms) ROLLBACK
2432
+  (0.1ms) BEGIN
2433
+  (0.1ms) SAVEPOINT active_record_1
2434
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:21.372879"], ["updated_at", "2015-03-23 22:29:21.372879"], ["token", "9ea2ec1c-8e63-486c-a17f-8047ae3fbaff"]]
2435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2436
+  (0.1ms) SAVEPOINT active_record_1
2437
+  (0.5ms) select 'foo'::text as bar, 'bar'::text as foo
2438
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2439
+  (0.1ms) ROLLBACK
2440
+  (0.1ms) BEGIN
2441
+  (0.1ms) SAVEPOINT active_record_1
2442
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 22:29:21.377803"], ["updated_at", "2015-03-23 22:29:21.377803"], ["token", "853b49d6-54dd-402b-82c1-95de4567d0d7"]]
2443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2444
+  (0.1ms) SAVEPOINT active_record_1
2445
+  (0.4ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
2446
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2447
+  (0.1ms) ROLLBACK
2448
+  (0.1ms) BEGIN
2449
+  (0.1ms) SAVEPOINT active_record_1
2450
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:21.382553"], ["updated_at", "2015-03-23 22:29:21.382553"], ["token", "e5db5274-7037-459b-ac49-a7ed69b53ade"]]
2451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2452
+  (0.1ms) SAVEPOINT active_record_1
2453
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2454
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2455
+  (0.2ms) ROLLBACK
2456
+  (0.1ms) BEGIN
2457
+  (0.1ms) SAVEPOINT active_record_1
2458
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 22:29:21.401376"], ["updated_at", "2015-03-23 22:29:21.401376"], ["token", "3655158c-72bd-4974-a01e-2d89c9076793"]]
2459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2460
+  (0.1ms) SAVEPOINT active_record_1
2461
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2462
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2463
+  (0.1ms) ROLLBACK
2464
+  (0.1ms) BEGIN
2465
+  (0.1ms) SAVEPOINT active_record_1
2466
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.405757"], ["updated_at", "2015-03-23 22:29:21.405757"], ["token", "fa923bb4-d0e5-42f5-bc19-858ef2913c47"]]
2467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2468
+  (0.1ms) SAVEPOINT active_record_1
2469
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.407765"], ["updated_at", "2015-03-23 22:29:21.407765"], ["token", "aa87c7df-9b31-4bc8-b129-e559a4ac7e9e"]]
2470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2471
+  (0.5ms) SAVEPOINT active_record_1
2472
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.410358"], ["updated_at", "2015-03-23 22:29:21.410358"], ["token", "ed70322a-d233-4f6a-8487-b85b69a2db4e"]]
2473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2474
+  (0.1ms) SAVEPOINT active_record_1
2475
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.412379"], ["updated_at", "2015-03-23 22:29:21.412379"], ["token", "e7698e8a-f71e-499a-a433-032883118005"]]
2476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2477
+  (0.1ms) SAVEPOINT active_record_1
2478
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.414313"], ["updated_at", "2015-03-23 22:29:21.414313"], ["token", "1ae2f621-c669-4513-8c39-6a82d7472f32"]]
2479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2480
+  (0.1ms) SAVEPOINT active_record_1
2481
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 22:29:21.416891"], ["updated_at", "2015-03-23 22:29:21.416891"], ["token", "f0d3bafc-7151-4594-8f34-fd6b6a151c3d"]]
2482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2483
+  (0.1ms) SAVEPOINT active_record_1
2484
+  (3.9ms) TRUNCATE table dbhero_dataclips
2485
+  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1
2486
+  (0.6ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2487
+  (0.1ms) ROLLBACK
2488
+  (0.1ms) BEGIN
2489
+  (0.1ms) SAVEPOINT active_record_1
2490
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.427829"], ["updated_at", "2015-03-23 22:29:21.427829"], ["token", "ed2deedc-0c43-4b82-9bad-218971ccd449"]]
2491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2492
+  (0.1ms) SAVEPOINT active_record_1
2493
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.429949"], ["updated_at", "2015-03-23 22:29:21.429949"], ["token", "1622a33d-19a3-46ac-8fa4-be598d122ee9"]]
2494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2495
+  (0.1ms) SAVEPOINT active_record_1
2496
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.431799"], ["updated_at", "2015-03-23 22:29:21.431799"], ["token", "4ecd6c89-d93b-4158-ad19-deb829adb33e"]]
2497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2498
+  (0.1ms) SAVEPOINT active_record_1
2499
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.434262"], ["updated_at", "2015-03-23 22:29:21.434262"], ["token", "cc7e0d55-6d1e-4bb4-a4e0-20d1a3d0d7ac"]]
2500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2501
+  (0.1ms) SAVEPOINT active_record_1
2502
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 22:29:21.436166"], ["updated_at", "2015-03-23 22:29:21.436166"], ["token", "977ffcf3-073f-46e3-b9e5-50c25b9aaa4b"]]
2503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2504
+  (0.1ms) SAVEPOINT active_record_1
2505
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 22:29:21.438444"], ["updated_at", "2015-03-23 22:29:21.438444"], ["token", "c1910476-5d25-4c9d-9c9c-7f6258d83df5"]]
2506
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2507
+  (0.1ms) SAVEPOINT active_record_1
2508
+  (0.4ms) TRUNCATE table dbhero_dataclips; commit;
2509
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
2510
+ : TRUNCATE table dbhero_dataclips; commit;
2511
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2512
+  (0.6ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2513
+  (0.3ms) ROLLBACK
2514
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2515
+  (142.1ms) DROP DATABASE IF EXISTS "dummy_test"
2516
+  (372.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
2517
+ SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2518
+  (21.7ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2519
+  (1.4ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
2520
+  (1.7ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
2521
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2522
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2523
+  (0.4ms) SELECT version FROM "schema_migrations"
2524
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
2525
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2526
+  (0.2ms) BEGIN
2527
+ Processing by Dbhero::DataclipsController#index as HTML
2528
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2529
+  (0.2ms) ROLLBACK
2530
+  (0.1ms) BEGIN
2531
+ Processing by Dbhero::DataclipsController#index as HTML
2532
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
2533
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
2534
+  (0.2ms) ROLLBACK
2535
+  (0.1ms) BEGIN
2536
+ Processing by Dbhero::DataclipsController#index as HTML
2537
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
2538
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
2539
+  (0.2ms) ROLLBACK
2540
+  (0.1ms) BEGIN
2541
+ Processing by Dbhero::DataclipsController#index as HTML
2542
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2543
+  (0.3ms) ROLLBACK
2544
+  (0.1ms) BEGIN
2545
+ Processing by Dbhero::DataclipsController#index as HTML
2546
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
2547
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
2548
+  (0.2ms) ROLLBACK
2549
+  (0.1ms) BEGIN
2550
+ Processing by Dbhero::DataclipsController#new as HTML
2551
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2552
+  (0.2ms) ROLLBACK
2553
+  (0.1ms) BEGIN
2554
+ Processing by Dbhero::DataclipsController#new as HTML
2555
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
2556
+ Completed 200 OK in 20ms (Views: 3.7ms | ActiveRecord: 7.8ms)
2557
+  (0.2ms) ROLLBACK
2558
+  (0.1ms) BEGIN
2559
+ Processing by Dbhero::DataclipsController#new as HTML
2560
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
2561
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2562
+  (0.2ms) ROLLBACK
2563
+  (0.1ms) BEGIN
2564
+ Processing by Dbhero::DataclipsController#new as HTML
2565
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2566
+  (0.2ms) ROLLBACK
2567
+  (0.1ms) BEGIN
2568
+ Processing by Dbhero::DataclipsController#new as HTML
2569
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
2570
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
2571
+  (0.2ms) ROLLBACK
2572
+  (0.1ms) BEGIN
2573
+ Processing by Dbhero::DataclipsController#create as HTML
2574
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2575
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2576
+  (0.2ms) ROLLBACK
2577
+  (0.1ms) BEGIN
2578
+ Processing by Dbhero::DataclipsController#create as HTML
2579
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2580
+  (0.2ms) SAVEPOINT active_record_1
2581
+ SQL (1.1ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:21:29.318587"], ["updated_at", "2015-03-23 23:21:29.318587"], ["token", "5845aa9a-ef67-4ad3-8140-1a9a25dae99f"]]
2582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2583
+ Redirected to http://test.host/dbhero/dataclips/5845aa9a-ef67-4ad3-8140-1a9a25dae99f/edit
2584
+ Completed 302 Found in 23ms (ActiveRecord: 1.7ms)
2585
+  (0.2ms) ROLLBACK
2586
+  (0.1ms) BEGIN
2587
+ Processing by Dbhero::DataclipsController#create as HTML
2588
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2589
+  (0.1ms) SAVEPOINT active_record_1
2590
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:21:29.340716"], ["updated_at", "2015-03-23 23:21:29.340716"], ["token", "678e9c2c-4db2-4679-9d5d-51eb205dab3a"]]
2591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2592
+ Redirected to http://test.host/dbhero/dataclips/678e9c2c-4db2-4679-9d5d-51eb205dab3a/edit
2593
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2594
+ Dbhero::Dataclip Load (0.7ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
2595
+  (0.2ms) ROLLBACK
2596
+  (0.1ms) BEGIN
2597
+ Processing by Dbhero::DataclipsController#create as HTML
2598
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2599
+  (0.2ms) SAVEPOINT active_record_1
2600
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:21:29.361958"], ["updated_at", "2015-03-23 23:21:29.361958"], ["token", "9965129b-0acb-4c90-bd8f-75962331e1a6"]]
2601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
+ Redirected to http://test.host/dbhero/dataclips/9965129b-0acb-4c90-bd8f-75962331e1a6/edit
2603
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2604
+  (0.2ms) ROLLBACK
2605
+  (0.1ms) BEGIN
2606
+ Processing by Dbhero::DataclipsController#create as HTML
2607
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2608
+  (0.1ms) SAVEPOINT active_record_1
2609
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:21:29.371321"], ["updated_at", "2015-03-23 23:21:29.371321"], ["token", "49db9e4d-4882-41aa-91c7-07a120200416"]]
2610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2611
+ Redirected to http://test.host/dbhero/dataclips/49db9e4d-4882-41aa-91c7-07a120200416/edit
2612
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
2613
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
2614
+  (0.2ms) ROLLBACK
2615
+  (0.1ms) BEGIN
2616
+ Processing by Dbhero::DataclipsController#create as HTML
2617
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2618
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2619
+  (0.2ms) ROLLBACK
2620
+  (0.1ms) BEGIN
2621
+ Processing by Dbhero::DataclipsController#create as HTML
2622
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
2623
+  (0.1ms) SAVEPOINT active_record_1
2624
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.387145"], ["updated_at", "2015-03-23 23:21:29.387145"], ["token", "21804c92-e00f-4824-bfa4-8e5d6d8652dd"]]
2625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2626
+ Redirected to http://test.host/dbhero/dataclips/21804c92-e00f-4824-bfa4-8e5d6d8652dd/edit
2627
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
2628
+  (0.2ms) ROLLBACK
2629
+  (0.1ms) BEGIN
2630
+ Processing by Dbhero::DataclipsController#create as HTML
2631
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
2632
+  (0.2ms) SAVEPOINT active_record_1
2633
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.395405"], ["updated_at", "2015-03-23 23:21:29.395405"], ["token", "26f67d6e-51a3-416f-bc51-82c40cfc8c30"]]
2634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2635
+ Redirected to http://test.host/dbhero/dataclips/26f67d6e-51a3-416f-bc51-82c40cfc8c30/edit
2636
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
2637
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
2638
+  (0.2ms) ROLLBACK
2639
+  (0.1ms) BEGIN
2640
+  (0.2ms) SAVEPOINT active_record_1
2641
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.402573"], ["updated_at", "2015-03-23 23:21:29.402573"], ["token", "7fdbd271-aaa9-48e2-b9b3-5bd439e85d3e"]]
2642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2643
+ Processing by Dbhero::DataclipsController#edit as HTML
2644
+ Parameters: {"id"=>"7fdbd271-aaa9-48e2-b9b3-5bd439e85d3e"}
2645
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2646
+  (0.2ms) ROLLBACK
2647
+  (0.1ms) BEGIN
2648
+  (0.1ms) SAVEPOINT active_record_1
2649
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.410115"], ["updated_at", "2015-03-23 23:21:29.410115"], ["token", "c189db30-9212-4cff-a07b-385b06760df0"]]
2650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2651
+ Processing by Dbhero::DataclipsController#edit as HTML
2652
+ Parameters: {"id"=>"c189db30-9212-4cff-a07b-385b06760df0"}
2653
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c189db30-9212-4cff-a07b-385b06760df0"]]
2654
+  (0.2ms) SAVEPOINT active_record_1
2655
+  (2.6ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2656
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2657
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2658
+ ^
2659
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2660
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2661
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2662
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
2663
+ Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 3.3ms)
2664
+  (0.2ms) ROLLBACK
2665
+  (0.1ms) BEGIN
2666
+  (0.1ms) SAVEPOINT active_record_1
2667
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.425903"], ["updated_at", "2015-03-23 23:21:29.425903"], ["token", "9bd33610-bab8-4f5c-ac5a-4f648fd78ec7"]]
2668
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2669
+ Processing by Dbhero::DataclipsController#edit as HTML
2670
+ Parameters: {"id"=>"9bd33610-bab8-4f5c-ac5a-4f648fd78ec7"}
2671
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "9bd33610-bab8-4f5c-ac5a-4f648fd78ec7"]]
2672
+  (0.1ms) SAVEPOINT active_record_1
2673
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2674
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2675
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2676
+ ^
2677
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2678
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2679
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2680
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
2681
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.9ms)
2682
+  (0.2ms) ROLLBACK
2683
+  (0.1ms) BEGIN
2684
+  (0.1ms) SAVEPOINT active_record_1
2685
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.435742"], ["updated_at", "2015-03-23 23:21:29.435742"], ["token", "2dcc6578-25c8-4542-8185-5d885690e050"]]
2686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2687
+ Processing by Dbhero::DataclipsController#edit as HTML
2688
+ Parameters: {"id"=>"2dcc6578-25c8-4542-8185-5d885690e050"}
2689
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2690
+  (0.4ms) ROLLBACK
2691
+  (0.1ms) BEGIN
2692
+  (0.1ms) SAVEPOINT active_record_1
2693
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.443027"], ["updated_at", "2015-03-23 23:21:29.443027"], ["token", "159de6fc-5b69-4cf5-9371-66d2dd85c020"]]
2694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2695
+ Processing by Dbhero::DataclipsController#edit as HTML
2696
+ Parameters: {"id"=>"159de6fc-5b69-4cf5-9371-66d2dd85c020"}
2697
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "159de6fc-5b69-4cf5-9371-66d2dd85c020"]]
2698
+  (0.1ms) SAVEPOINT active_record_1
2699
+  (0.6ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
2700
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
2701
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
2702
+ ^
2703
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
2704
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
2705
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2706
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
2707
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 1.2ms)
2708
+  (0.2ms) ROLLBACK
2709
+  (0.1ms) BEGIN
2710
+ Processing by Dbhero::DataclipsController#create as HTML
2711
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2712
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2713
+  (0.2ms) ROLLBACK
2714
+  (0.1ms) BEGIN
2715
+  (0.1ms) SAVEPOINT active_record_1
2716
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.456513"], ["updated_at", "2015-03-23 23:21:29.456513"], ["token", "b55d8ac5-2161-4ba1-b7b9-cabf84bb4fd3"]]
2717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2718
+ Processing by Dbhero::DataclipsController#update as HTML
2719
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"b55d8ac5-2161-4ba1-b7b9-cabf84bb4fd3"}
2720
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "b55d8ac5-2161-4ba1-b7b9-cabf84bb4fd3"]]
2721
+  (0.1ms) SAVEPOINT active_record_1
2722
+ SQL (1.0ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.460635"], ["id", 12]]
2723
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2724
+ Redirected to http://test.host/dbhero/dataclips/b55d8ac5-2161-4ba1-b7b9-cabf84bb4fd3/edit
2725
+ Completed 302 Found in 11ms (ActiveRecord: 1.6ms)
2726
+  (0.2ms) ROLLBACK
2727
+  (0.1ms) BEGIN
2728
+  (0.1ms) SAVEPOINT active_record_1
2729
+ SQL (0.9ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.474458"], ["updated_at", "2015-03-23 23:21:29.474458"], ["token", "dfe19292-8fe5-4726-ad2d-21face84ea14"]]
2730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2731
+ Processing by Dbhero::DataclipsController#update as HTML
2732
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"dfe19292-8fe5-4726-ad2d-21face84ea14"}
2733
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "dfe19292-8fe5-4726-ad2d-21face84ea14"]]
2734
+  (0.1ms) SAVEPOINT active_record_1
2735
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.479607"], ["id", 13]]
2736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2737
+ Redirected to http://test.host/dbhero/dataclips/dfe19292-8fe5-4726-ad2d-21face84ea14/edit
2738
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
2739
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2740
+  (0.1ms) ROLLBACK
2741
+  (0.1ms) BEGIN
2742
+  (0.1ms) SAVEPOINT active_record_1
2743
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.488080"], ["updated_at", "2015-03-23 23:21:29.488080"], ["token", "c2900585-baba-410d-9d99-d51e5805551a"]]
2744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2745
+ Processing by Dbhero::DataclipsController#update as HTML
2746
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"c2900585-baba-410d-9d99-d51e5805551a"}
2747
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c2900585-baba-410d-9d99-d51e5805551a"]]
2748
+  (0.1ms) SAVEPOINT active_record_1
2749
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.492606"], ["id", 14]]
2750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2751
+ Redirected to http://test.host/dbhero/dataclips/c2900585-baba-410d-9d99-d51e5805551a/edit
2752
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
2753
+  (0.2ms) ROLLBACK
2754
+  (0.1ms) BEGIN
2755
+  (0.2ms) SAVEPOINT active_record_1
2756
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.500219"], ["updated_at", "2015-03-23 23:21:29.500219"], ["token", "957c805d-fa12-461a-b564-34d24bfe4fdc"]]
2757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2758
+ Processing by Dbhero::DataclipsController#update as HTML
2759
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"957c805d-fa12-461a-b564-34d24bfe4fdc"}
2760
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "957c805d-fa12-461a-b564-34d24bfe4fdc"]]
2761
+  (0.2ms) SAVEPOINT active_record_1
2762
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.504690"], ["id", 15]]
2763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2764
+ Redirected to http://test.host/dbhero/dataclips/957c805d-fa12-461a-b564-34d24bfe4fdc/edit
2765
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
2766
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2767
+  (0.1ms) ROLLBACK
2768
+  (0.4ms) BEGIN
2769
+  (0.1ms) SAVEPOINT active_record_1
2770
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.512357"], ["updated_at", "2015-03-23 23:21:29.512357"], ["token", "bf26a110-d424-4617-9889-0925bf3ab8a7"]]
2771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2772
+ Processing by Dbhero::DataclipsController#update as HTML
2773
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"bf26a110-d424-4617-9889-0925bf3ab8a7"}
2774
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2775
+  (0.2ms) ROLLBACK
2776
+  (0.1ms) BEGIN
2777
+  (0.1ms) SAVEPOINT active_record_1
2778
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.518951"], ["updated_at", "2015-03-23 23:21:29.518951"], ["token", "fd77d0ca-7736-4270-8985-05856f3c88ca"]]
2779
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2780
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
2781
+  (0.1ms) ROLLBACK
2782
+  (0.1ms) BEGIN
2783
+  (0.1ms) SAVEPOINT active_record_1
2784
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.525922"], ["updated_at", "2015-03-23 23:21:29.525922"], ["token", "db111dff-bab4-450c-af4f-6f9f561182e1"]]
2785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2786
+ Processing by Dbhero::DataclipsController#update as HTML
2787
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"db111dff-bab4-450c-af4f-6f9f561182e1"}
2788
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "db111dff-bab4-450c-af4f-6f9f561182e1"]]
2789
+  (0.1ms) SAVEPOINT active_record_1
2790
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.529722"], ["id", 18]]
2791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2792
+ Redirected to http://test.host/dbhero/dataclips/db111dff-bab4-450c-af4f-6f9f561182e1/edit
2793
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
2794
+  (0.2ms) ROLLBACK
2795
+  (0.1ms) BEGIN
2796
+  (0.1ms) SAVEPOINT active_record_1
2797
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:21:29.536427"], ["updated_at", "2015-03-23 23:21:29.536427"], ["token", "019e21a2-4461-446f-bb35-5a50e4c0819c"]]
2798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2799
+ Processing by Dbhero::DataclipsController#update as HTML
2800
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"019e21a2-4461-446f-bb35-5a50e4c0819c"}
2801
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "019e21a2-4461-446f-bb35-5a50e4c0819c"]]
2802
+  (0.1ms) SAVEPOINT active_record_1
2803
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:21:29.540178"], ["id", 19]]
2804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2805
+ Redirected to http://test.host/dbhero/dataclips/019e21a2-4461-446f-bb35-5a50e4c0819c/edit
2806
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2807
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
2808
+  (0.7ms) ROLLBACK
2809
+  (0.1ms) BEGIN
2810
+  (0.2ms) ROLLBACK
2811
+  (0.1ms) BEGIN
2812
+  (0.2ms) ROLLBACK
2813
+  (0.1ms) BEGIN
2814
+  (0.5ms) ROLLBACK
2815
+  (0.1ms) BEGIN
2816
+  (0.1ms) SAVEPOINT active_record_1
2817
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.569355"], ["updated_at", "2015-03-23 23:21:29.569355"], ["token", "cfaa484b-94af-42de-8e56-45e8e80750cd"]]
2818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2819
+  (0.1ms) ROLLBACK
2820
+  (0.1ms) BEGIN
2821
+  (0.1ms) SAVEPOINT active_record_1
2822
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 23:21:29.571945"], ["created_at", "2015-03-23 23:21:29.573928"], ["token", "9c9e348b-a335-43bc-9e36-6911ce2c1c24"]]
2823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2824
+  (0.1ms) SAVEPOINT active_record_1
2825
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 23:21:29.575615"], ["created_at", "2015-03-23 23:21:29.576357"], ["token", "3e0c403f-4f10-4032-8942-5839a1a5333e"]]
2826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2827
+  (0.7ms) SAVEPOINT active_record_1
2828
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 23:21:29.577719"], ["created_at", "2015-03-23 23:21:29.579657"], ["token", "d7cd9da8-e52a-4e4a-9516-9e29a2fa4877"]]
2829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2830
+ Dbhero::Dataclip Load (1.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
2831
+  (0.2ms) ROLLBACK
2832
+  (0.1ms) BEGIN
2833
+  (0.1ms) SAVEPOINT active_record_1
2834
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.587088"], ["updated_at", "2015-03-23 23:21:29.587088"], ["token", "9d7cffa0-a3a7-462d-92ba-93cb1e2f3d2e"]]
2835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2836
+  (0.1ms) ROLLBACK
2837
+  (0.1ms) BEGIN
2838
+  (0.1ms) SAVEPOINT active_record_1
2839
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.591856"], ["updated_at", "2015-03-23 23:21:29.591856"], ["token", "719dce01-3435-46f6-891b-e29dd6de3e1b"]]
2840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2841
+  (0.1ms) ROLLBACK
2842
+  (0.1ms) BEGIN
2843
+  (0.1ms) SAVEPOINT active_record_1
2844
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.595289"], ["updated_at", "2015-03-23 23:21:29.595289"], ["token", "a1ccf8fc-3e61-4155-8843-3c3bf1cdf55a"]]
2845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2846
+  (0.1ms) ROLLBACK
2847
+  (0.1ms) BEGIN
2848
+  (0.1ms) SAVEPOINT active_record_1
2849
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:21:29.598422"], ["updated_at", "2015-03-23 23:21:29.598422"], ["token", "7cc7051d-b860-450e-892b-86240e925fb7"]]
2850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2851
+  (0.1ms) SAVEPOINT active_record_1
2852
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2853
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2854
+  (0.1ms) ROLLBACK
2855
+  (0.3ms) BEGIN
2856
+  (0.2ms) SAVEPOINT active_record_1
2857
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 23:21:29.604085"], ["updated_at", "2015-03-23 23:21:29.604085"], ["token", "a6dba287-518d-4463-b067-9cb40902312d"]]
2858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2859
+  (0.1ms) SAVEPOINT active_record_1
2860
+  (0.4ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
2861
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2862
+  (0.1ms) ROLLBACK
2863
+  (0.1ms) BEGIN
2864
+  (0.1ms) SAVEPOINT active_record_1
2865
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:21:29.609746"], ["updated_at", "2015-03-23 23:21:29.609746"], ["token", "c1146353-75b1-42e5-9543-dc5e827a9a8b"]]
2866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2867
+  (0.1ms) SAVEPOINT active_record_1
2868
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2869
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2870
+  (0.7ms) ROLLBACK
2871
+  (0.1ms) BEGIN
2872
+  (0.1ms) SAVEPOINT active_record_1
2873
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:21:29.629731"], ["updated_at", "2015-03-23 23:21:29.629731"], ["token", "e7688322-b597-43dd-89ec-4f41a4b5e8b9"]]
2874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2875
+  (0.1ms) SAVEPOINT active_record_1
2876
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
2877
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2878
+  (0.1ms) ROLLBACK
2879
+  (0.1ms) BEGIN
2880
+  (0.1ms) SAVEPOINT active_record_1
2881
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.633922"], ["updated_at", "2015-03-23 23:21:29.633922"], ["token", "aba6fd72-cf37-4b10-b5c1-2359a924350c"]]
2882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2883
+  (0.1ms) SAVEPOINT active_record_1
2884
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.635910"], ["updated_at", "2015-03-23 23:21:29.635910"], ["token", "73c9e39e-3c29-4d13-b8b3-207bd70dbbf7"]]
2885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2886
+  (0.1ms) SAVEPOINT active_record_1
2887
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.639312"], ["updated_at", "2015-03-23 23:21:29.639312"], ["token", "16c46775-40b1-4748-9671-b1c27e13aa01"]]
2888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2889
+  (0.1ms) SAVEPOINT active_record_1
2890
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.641194"], ["updated_at", "2015-03-23 23:21:29.641194"], ["token", "dfb15e95-55ce-48ef-8b9f-63b3fa9006dd"]]
2891
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2892
+  (0.1ms) SAVEPOINT active_record_1
2893
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.643362"], ["updated_at", "2015-03-23 23:21:29.643362"], ["token", "cfbbd6c5-242c-4a19-a5e3-889c81e6db63"]]
2894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2895
+  (0.1ms) SAVEPOINT active_record_1
2896
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 23:21:29.645509"], ["updated_at", "2015-03-23 23:21:29.645509"], ["token", "edd3fdb3-d4f4-4df3-a961-583116e39986"]]
2897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2898
+  (0.1ms) SAVEPOINT active_record_1
2899
+  (4.9ms) TRUNCATE table dbhero_dataclips
2900
+  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1
2901
+  (0.6ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2902
+  (0.2ms) ROLLBACK
2903
+  (0.1ms) BEGIN
2904
+  (0.1ms) SAVEPOINT active_record_1
2905
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.657245"], ["updated_at", "2015-03-23 23:21:29.657245"], ["token", "b8e78831-4e0f-435a-bd2e-bf07a3392cba"]]
2906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2907
+  (0.1ms) SAVEPOINT active_record_1
2908
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.659612"], ["updated_at", "2015-03-23 23:21:29.659612"], ["token", "7311648e-b3fd-4971-bf8b-3184647b9993"]]
2909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2910
+  (0.1ms) SAVEPOINT active_record_1
2911
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.662983"], ["updated_at", "2015-03-23 23:21:29.662983"], ["token", "1f93bfaa-7484-4222-87cb-b759072ce619"]]
2912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2913
+  (0.1ms) SAVEPOINT active_record_1
2914
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.665027"], ["updated_at", "2015-03-23 23:21:29.665027"], ["token", "b09ad684-b949-4db4-9f92-c1706ba25b2f"]]
2915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2916
+  (0.1ms) SAVEPOINT active_record_1
2917
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:21:29.667615"], ["updated_at", "2015-03-23 23:21:29.667615"], ["token", "9882161a-5747-4f67-9688-c7cee80b704a"]]
2918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2919
+  (0.1ms) SAVEPOINT active_record_1
2920
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 23:21:29.669486"], ["updated_at", "2015-03-23 23:21:29.669486"], ["token", "2edcfd38-fdd5-4366-8895-db0c27ca75fd"]]
2921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2922
+  (0.1ms) SAVEPOINT active_record_1
2923
+  (0.4ms) TRUNCATE table dbhero_dataclips; commit;
2924
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
2925
+ : TRUNCATE table dbhero_dataclips; commit;
2926
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
2927
+  (0.3ms) SELECT COUNT(*) FROM "dbhero_dataclips"
2928
+  (0.1ms) ROLLBACK
2929
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
2930
+  (134.8ms) DROP DATABASE IF EXISTS "dummy_test"
2931
+  (418.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
2932
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2933
+  (13.1ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2934
+  (3.6ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
2935
+  (1.4ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
2936
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2937
+  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2938
+  (1.6ms) SELECT version FROM "schema_migrations"
2939
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
2940
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
2941
+  (0.2ms) BEGIN
2942
+ Processing by Dbhero::DataclipsController#index as HTML
2943
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2944
+  (0.2ms) ROLLBACK
2945
+  (0.1ms) BEGIN
2946
+ Processing by Dbhero::DataclipsController#index as HTML
2947
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
2948
+ Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.0ms)
2949
+  (0.2ms) ROLLBACK
2950
+  (0.1ms) BEGIN
2951
+ Processing by Dbhero::DataclipsController#index as HTML
2952
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
2953
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
2954
+  (0.2ms) ROLLBACK
2955
+  (0.1ms) BEGIN
2956
+ Processing by Dbhero::DataclipsController#index as HTML
2957
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2958
+  (0.2ms) ROLLBACK
2959
+  (0.1ms) BEGIN
2960
+ Processing by Dbhero::DataclipsController#index as HTML
2961
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
2962
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2963
+  (0.2ms) ROLLBACK
2964
+  (0.1ms) BEGIN
2965
+ Processing by Dbhero::DataclipsController#new as HTML
2966
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
2967
+  (0.2ms) ROLLBACK
2968
+  (0.1ms) BEGIN
2969
+ Processing by Dbhero::DataclipsController#new as HTML
2970
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (2.4ms)
2971
+ Completed 200 OK in 66ms (Views: 16.7ms | ActiveRecord: 20.4ms)
2972
+  (0.7ms) ROLLBACK
2973
+  (0.3ms) BEGIN
2974
+ Processing by Dbhero::DataclipsController#new as HTML
2975
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.6ms)
2976
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)
2977
+  (0.4ms) ROLLBACK
2978
+  (0.3ms) BEGIN
2979
+ Processing by Dbhero::DataclipsController#new as HTML
2980
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2981
+  (0.4ms) ROLLBACK
2982
+  (0.3ms) BEGIN
2983
+ Processing by Dbhero::DataclipsController#new as HTML
2984
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (1.7ms)
2985
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
2986
+  (0.3ms) ROLLBACK
2987
+  (0.2ms) BEGIN
2988
+ Processing by Dbhero::DataclipsController#create as HTML
2989
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2990
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
2991
+  (0.3ms) ROLLBACK
2992
+  (0.2ms) BEGIN
2993
+ Processing by Dbhero::DataclipsController#create as HTML
2994
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
2995
+  (0.3ms) SAVEPOINT active_record_1
2996
+ SQL (7.7ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:34:59.131595"], ["updated_at", "2015-03-23 23:34:59.131595"], ["token", "e9fde8d5-9398-42c9-aedf-35e6148ae882"]]
2997
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2998
+ Redirected to http://test.host/dbhero/dataclips/e9fde8d5-9398-42c9-aedf-35e6148ae882/edit
2999
+ Completed 302 Found in 43ms (ActiveRecord: 8.5ms)
3000
+  (0.8ms) ROLLBACK
3001
+  (0.2ms) BEGIN
3002
+ Processing by Dbhero::DataclipsController#create as HTML
3003
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3004
+  (0.2ms) SAVEPOINT active_record_1
3005
+ SQL (0.7ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:34:59.171182"], ["updated_at", "2015-03-23 23:34:59.171182"], ["token", "02844c09-9783-4550-b301-6e1772af75e6"]]
3006
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3007
+ Redirected to http://test.host/dbhero/dataclips/02844c09-9783-4550-b301-6e1772af75e6/edit
3008
+ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
3009
+ Dbhero::Dataclip Load (0.6ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
3010
+  (0.2ms) ROLLBACK
3011
+  (0.1ms) BEGIN
3012
+ Processing by Dbhero::DataclipsController#create as HTML
3013
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3014
+  (0.2ms) SAVEPOINT active_record_1
3015
+ SQL (1.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:34:59.198819"], ["updated_at", "2015-03-23 23:34:59.198819"], ["token", "eef566ae-6cc1-43ce-ae1d-4ae7a4b482a1"]]
3016
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3017
+ Redirected to http://test.host/dbhero/dataclips/eef566ae-6cc1-43ce-ae1d-4ae7a4b482a1/edit
3018
+ Completed 302 Found in 7ms (ActiveRecord: 1.8ms)
3019
+  (0.2ms) ROLLBACK
3020
+  (0.1ms) BEGIN
3021
+ Processing by Dbhero::DataclipsController#create as HTML
3022
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3023
+  (0.2ms) SAVEPOINT active_record_1
3024
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-23 23:34:59.211076"], ["updated_at", "2015-03-23 23:34:59.211076"], ["token", "6220d59f-c25b-4243-a09b-46981c0eb94b"]]
3025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3026
+ Redirected to http://test.host/dbhero/dataclips/6220d59f-c25b-4243-a09b-46981c0eb94b/edit
3027
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
3028
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
3029
+  (0.2ms) ROLLBACK
3030
+  (0.1ms) BEGIN
3031
+ Processing by Dbhero::DataclipsController#create as HTML
3032
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3033
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
3034
+  (0.2ms) ROLLBACK
3035
+  (0.1ms) BEGIN
3036
+ Processing by Dbhero::DataclipsController#create as HTML
3037
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
3038
+  (0.2ms) SAVEPOINT active_record_1
3039
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.229466"], ["updated_at", "2015-03-23 23:34:59.229466"], ["token", "d6b3e329-302b-4bd3-8602-c7e558f985ca"]]
3040
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3041
+ Redirected to http://test.host/dbhero/dataclips/d6b3e329-302b-4bd3-8602-c7e558f985ca/edit
3042
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
3043
+  (0.4ms) ROLLBACK
3044
+  (0.1ms) BEGIN
3045
+ Processing by Dbhero::DataclipsController#create as HTML
3046
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
3047
+  (0.2ms) SAVEPOINT active_record_1
3048
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.238472"], ["updated_at", "2015-03-23 23:34:59.238472"], ["token", "66aea2f9-663f-465f-b09f-dcd6e9deacc8"]]
3049
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3050
+ Redirected to http://test.host/dbhero/dataclips/66aea2f9-663f-465f-b09f-dcd6e9deacc8/edit
3051
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
3052
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
3053
+  (0.2ms) ROLLBACK
3054
+  (0.1ms) BEGIN
3055
+  (0.4ms) SAVEPOINT active_record_1
3056
+ SQL (0.9ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.247491"], ["updated_at", "2015-03-23 23:34:59.247491"], ["token", "e3651468-1c5d-4476-b606-ebb9d9b8168e"]]
3057
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3058
+ Processing by Dbhero::DataclipsController#edit as HTML
3059
+ Parameters: {"id"=>"e3651468-1c5d-4476-b606-ebb9d9b8168e"}
3060
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3061
+  (0.2ms) ROLLBACK
3062
+  (0.1ms) BEGIN
3063
+  (0.1ms) SAVEPOINT active_record_1
3064
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.255264"], ["updated_at", "2015-03-23 23:34:59.255264"], ["token", "70510fb7-33fc-4a22-9fa4-f7044eae3279"]]
3065
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3066
+ Processing by Dbhero::DataclipsController#edit as HTML
3067
+ Parameters: {"id"=>"70510fb7-33fc-4a22-9fa4-f7044eae3279"}
3068
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "70510fb7-33fc-4a22-9fa4-f7044eae3279"]]
3069
+  (0.1ms) SAVEPOINT active_record_1
3070
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3071
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3072
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3073
+ ^
3074
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3075
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3076
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3077
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
3078
+ Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.1ms)
3079
+  (0.2ms) ROLLBACK
3080
+  (0.1ms) BEGIN
3081
+  (0.1ms) SAVEPOINT active_record_1
3082
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.272042"], ["updated_at", "2015-03-23 23:34:59.272042"], ["token", "f939d6fe-601a-4267-9cff-fff6292339e8"]]
3083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3084
+ Processing by Dbhero::DataclipsController#edit as HTML
3085
+ Parameters: {"id"=>"f939d6fe-601a-4267-9cff-fff6292339e8"}
3086
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f939d6fe-601a-4267-9cff-fff6292339e8"]]
3087
+  (0.1ms) SAVEPOINT active_record_1
3088
+  (0.5ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3089
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3090
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3091
+ ^
3092
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3093
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3094
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3095
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
3096
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 1.1ms)
3097
+  (0.2ms) ROLLBACK
3098
+  (0.1ms) BEGIN
3099
+  (0.2ms) SAVEPOINT active_record_1
3100
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.283783"], ["updated_at", "2015-03-23 23:34:59.283783"], ["token", "36dd5be3-4d33-44ce-8d21-bef58158c54b"]]
3101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3102
+ Processing by Dbhero::DataclipsController#edit as HTML
3103
+ Parameters: {"id"=>"36dd5be3-4d33-44ce-8d21-bef58158c54b"}
3104
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3105
+  (0.2ms) ROLLBACK
3106
+  (0.1ms) BEGIN
3107
+  (0.1ms) SAVEPOINT active_record_1
3108
+ SQL (0.8ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.290374"], ["updated_at", "2015-03-23 23:34:59.290374"], ["token", "8d338289-659c-4734-8b29-e009e2bf0137"]]
3109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3110
+ Processing by Dbhero::DataclipsController#edit as HTML
3111
+ Parameters: {"id"=>"8d338289-659c-4734-8b29-e009e2bf0137"}
3112
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "8d338289-659c-4734-8b29-e009e2bf0137"]]
3113
+  (0.1ms) SAVEPOINT active_record_1
3114
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3115
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3116
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3117
+ ^
3118
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3119
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3120
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3121
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
3122
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.9ms)
3123
+  (0.2ms) ROLLBACK
3124
+  (0.1ms) BEGIN
3125
+ Processing by Dbhero::DataclipsController#create as HTML
3126
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3127
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3128
+  (0.2ms) ROLLBACK
3129
+  (0.1ms) BEGIN
3130
+  (0.1ms) SAVEPOINT active_record_1
3131
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.306300"], ["updated_at", "2015-03-23 23:34:59.306300"], ["token", "7304fd61-9e8a-4ece-885d-db2b1e43ae3e"]]
3132
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3133
+ Processing by Dbhero::DataclipsController#update as HTML
3134
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"7304fd61-9e8a-4ece-885d-db2b1e43ae3e"}
3135
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "7304fd61-9e8a-4ece-885d-db2b1e43ae3e"]]
3136
+  (0.2ms) SAVEPOINT active_record_1
3137
+ SQL (1.0ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.311632"], ["id", 12]]
3138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3139
+ Redirected to http://test.host/dbhero/dataclips/7304fd61-9e8a-4ece-885d-db2b1e43ae3e/edit
3140
+ Completed 302 Found in 13ms (ActiveRecord: 1.7ms)
3141
+  (0.2ms) ROLLBACK
3142
+  (0.1ms) BEGIN
3143
+  (0.1ms) SAVEPOINT active_record_1
3144
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.325459"], ["updated_at", "2015-03-23 23:34:59.325459"], ["token", "c4771d66-6b0d-4a6e-9ac1-eccc7c87e5ff"]]
3145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3146
+ Processing by Dbhero::DataclipsController#update as HTML
3147
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"c4771d66-6b0d-4a6e-9ac1-eccc7c87e5ff"}
3148
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "c4771d66-6b0d-4a6e-9ac1-eccc7c87e5ff"]]
3149
+  (0.1ms) SAVEPOINT active_record_1
3150
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.330981"], ["id", 13]]
3151
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3152
+ Redirected to http://test.host/dbhero/dataclips/c4771d66-6b0d-4a6e-9ac1-eccc7c87e5ff/edit
3153
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
3154
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3155
+  (0.2ms) ROLLBACK
3156
+  (0.1ms) BEGIN
3157
+  (0.2ms) SAVEPOINT active_record_1
3158
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.339171"], ["updated_at", "2015-03-23 23:34:59.339171"], ["token", "25cdd2b0-a445-4ec9-bc33-4fe1e33f7b63"]]
3159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3160
+ Processing by Dbhero::DataclipsController#update as HTML
3161
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"25cdd2b0-a445-4ec9-bc33-4fe1e33f7b63"}
3162
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "25cdd2b0-a445-4ec9-bc33-4fe1e33f7b63"]]
3163
+  (0.2ms) SAVEPOINT active_record_1
3164
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.344413"], ["id", 14]]
3165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3166
+ Redirected to http://test.host/dbhero/dataclips/25cdd2b0-a445-4ec9-bc33-4fe1e33f7b63/edit
3167
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
3168
+  (0.2ms) ROLLBACK
3169
+  (0.1ms) BEGIN
3170
+  (0.2ms) SAVEPOINT active_record_1
3171
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.352751"], ["updated_at", "2015-03-23 23:34:59.352751"], ["token", "81508503-00f3-461f-ade3-bf909ab36b56"]]
3172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3173
+ Processing by Dbhero::DataclipsController#update as HTML
3174
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"81508503-00f3-461f-ade3-bf909ab36b56"}
3175
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "81508503-00f3-461f-ade3-bf909ab36b56"]]
3176
+  (0.1ms) SAVEPOINT active_record_1
3177
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.357062"], ["id", 15]]
3178
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3179
+ Redirected to http://test.host/dbhero/dataclips/81508503-00f3-461f-ade3-bf909ab36b56/edit
3180
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
3181
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3182
+  (0.3ms) ROLLBACK
3183
+  (0.1ms) BEGIN
3184
+  (0.1ms) SAVEPOINT active_record_1
3185
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.366072"], ["updated_at", "2015-03-23 23:34:59.366072"], ["token", "74a418cc-47d9-46cf-836e-95152fa81072"]]
3186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3187
+ Processing by Dbhero::DataclipsController#update as HTML
3188
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"74a418cc-47d9-46cf-836e-95152fa81072"}
3189
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3190
+  (0.2ms) ROLLBACK
3191
+  (0.1ms) BEGIN
3192
+  (0.3ms) SAVEPOINT active_record_1
3193
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.374126"], ["updated_at", "2015-03-23 23:34:59.374126"], ["token", "1af5a317-8ad8-4749-9a8e-9e5e4cad81d5"]]
3194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3195
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
3196
+  (0.2ms) ROLLBACK
3197
+  (0.1ms) BEGIN
3198
+  (0.2ms) SAVEPOINT active_record_1
3199
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.381210"], ["updated_at", "2015-03-23 23:34:59.381210"], ["token", "57ab5f1c-fc51-44d5-8489-deb176bf3774"]]
3200
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3201
+ Processing by Dbhero::DataclipsController#update as HTML
3202
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"57ab5f1c-fc51-44d5-8489-deb176bf3774"}
3203
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "57ab5f1c-fc51-44d5-8489-deb176bf3774"]]
3204
+  (0.1ms) SAVEPOINT active_record_1
3205
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.387663"], ["id", 18]]
3206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3207
+ Redirected to http://test.host/dbhero/dataclips/57ab5f1c-fc51-44d5-8489-deb176bf3774/edit
3208
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
3209
+  (0.2ms) ROLLBACK
3210
+  (0.1ms) BEGIN
3211
+  (0.2ms) SAVEPOINT active_record_1
3212
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-23 23:34:59.393489"], ["updated_at", "2015-03-23 23:34:59.393489"], ["token", "26f871e4-e410-4173-b5e6-999a971dc4af"]]
3213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3214
+ Processing by Dbhero::DataclipsController#update as HTML
3215
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"26f871e4-e410-4173-b5e6-999a971dc4af"}
3216
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "26f871e4-e410-4173-b5e6-999a971dc4af"]]
3217
+  (0.1ms) SAVEPOINT active_record_1
3218
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-23 23:34:59.399177"], ["id", 19]]
3219
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3220
+ Redirected to http://test.host/dbhero/dataclips/26f871e4-e410-4173-b5e6-999a971dc4af/edit
3221
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
3222
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3223
+  (0.1ms) ROLLBACK
3224
+  (0.1ms) BEGIN
3225
+  (0.2ms) ROLLBACK
3226
+  (0.2ms) BEGIN
3227
+  (0.2ms) ROLLBACK
3228
+  (0.1ms) BEGIN
3229
+  (0.2ms) ROLLBACK
3230
+  (0.1ms) BEGIN
3231
+  (0.1ms) SAVEPOINT active_record_1
3232
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.427923"], ["updated_at", "2015-03-23 23:34:59.427923"], ["token", "18694aed-db7a-4b96-a8ac-05655df57322"]]
3233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3234
+  (0.1ms) ROLLBACK
3235
+  (0.2ms) BEGIN
3236
+  (0.1ms) SAVEPOINT active_record_1
3237
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-21 23:34:59.432010"], ["created_at", "2015-03-23 23:34:59.433035"], ["token", "c76730bf-a862-4c7e-9467-096f1e5588ee"]]
3238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3239
+  (0.1ms) SAVEPOINT active_record_1
3240
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 23:34:59.434752"], ["created_at", "2015-03-23 23:34:59.435524"], ["token", "8e19fb56-e6d3-4d88-9d01-7c47774271a4"]]
3241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3242
+  (0.1ms) SAVEPOINT active_record_1
3243
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-19 23:34:59.437071"], ["created_at", "2015-03-23 23:34:59.437847"], ["token", "a07e7b1c-3920-46b8-b580-bcb78b0ba045"]]
3244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3245
+ Dbhero::Dataclip Load (1.0ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
3246
+  (0.2ms) ROLLBACK
3247
+  (0.1ms) BEGIN
3248
+  (0.1ms) SAVEPOINT active_record_1
3249
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.444713"], ["updated_at", "2015-03-23 23:34:59.444713"], ["token", "e4605e34-b269-4606-aa1a-0c368b4ed992"]]
3250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3251
+  (0.1ms) ROLLBACK
3252
+  (0.1ms) BEGIN
3253
+  (0.1ms) SAVEPOINT active_record_1
3254
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.448817"], ["updated_at", "2015-03-23 23:34:59.448817"], ["token", "ffb7cd82-2d84-4c2f-ac22-71a5d08a5edb"]]
3255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3256
+  (0.1ms) ROLLBACK
3257
+  (0.1ms) BEGIN
3258
+  (0.1ms) SAVEPOINT active_record_1
3259
+ SQL (0.9ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.452624"], ["updated_at", "2015-03-23 23:34:59.452624"], ["token", "5f90c591-a22b-4b43-83a4-8d7b3465fa20"]]
3260
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3261
+  (0.1ms) ROLLBACK
3262
+  (0.1ms) BEGIN
3263
+  (0.1ms) SAVEPOINT active_record_1
3264
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:34:59.457998"], ["updated_at", "2015-03-23 23:34:59.457998"], ["token", "a7a26a84-fb3d-4a0d-8421-8c40352ad828"]]
3265
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3266
+  (0.1ms) SAVEPOINT active_record_1
3267
+  (0.3ms) select 'foo'::text as bar, 'bar'::text as foo
3268
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3269
+  (0.2ms) ROLLBACK
3270
+  (0.1ms) BEGIN
3271
+  (0.1ms) SAVEPOINT active_record_1
3272
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-23 23:34:59.465076"], ["updated_at", "2015-03-23 23:34:59.465076"], ["token", "0f7c05e1-b073-4b99-817f-3d38adc2761f"]]
3273
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3274
+  (0.1ms) SAVEPOINT active_record_1
3275
+  (0.5ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
3276
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3277
+  (0.2ms) ROLLBACK
3278
+  (0.1ms) BEGIN
3279
+  (0.2ms) SAVEPOINT active_record_1
3280
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:34:59.473540"], ["updated_at", "2015-03-23 23:34:59.473540"], ["token", "67e57a8b-1cc6-4fd6-bff9-f9173b46b80b"]]
3281
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3282
+  (0.2ms) SAVEPOINT active_record_1
3283
+  (0.7ms) select 'foo'::text as bar, 'bar'::text as foo
3284
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
3285
+  (0.3ms) ROLLBACK
3286
+  (0.2ms) BEGIN
3287
+  (0.2ms) SAVEPOINT active_record_1
3288
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-23 23:34:59.502225"], ["updated_at", "2015-03-23 23:34:59.502225"], ["token", "dd77e70a-f83e-41e6-a236-bb076dcc424f"]]
3289
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3290
+  (0.1ms) SAVEPOINT active_record_1
3291
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
3292
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3293
+  (0.1ms) ROLLBACK
3294
+  (0.1ms) BEGIN
3295
+  (0.2ms) SAVEPOINT active_record_1
3296
+ SQL (0.6ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.507600"], ["updated_at", "2015-03-23 23:34:59.507600"], ["token", "2b645b12-359d-4f88-b903-ae444f230e3f"]]
3297
+  (1.9ms) RELEASE SAVEPOINT active_record_1
3298
+  (0.2ms) SAVEPOINT active_record_1
3299
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.514102"], ["updated_at", "2015-03-23 23:34:59.514102"], ["token", "b32025e8-063c-4438-99e9-9eff92514636"]]
3300
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3301
+  (0.2ms) SAVEPOINT active_record_1
3302
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.518071"], ["updated_at", "2015-03-23 23:34:59.518071"], ["token", "300f257d-1693-44cb-877d-43907ccf7a84"]]
3303
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3304
+  (0.2ms) SAVEPOINT active_record_1
3305
+ SQL (1.1ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.521779"], ["updated_at", "2015-03-23 23:34:59.521779"], ["token", "8dd8ce50-c154-42d5-bf11-1a03b9235421"]]
3306
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3307
+  (0.2ms) SAVEPOINT active_record_1
3308
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.526914"], ["updated_at", "2015-03-23 23:34:59.526914"], ["token", "15041de2-442c-48a6-9053-dee8273ff0f8"]]
3309
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3310
+  (0.2ms) SAVEPOINT active_record_1
3311
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-23 23:34:59.531415"], ["updated_at", "2015-03-23 23:34:59.531415"], ["token", "94cd87cb-c6f5-439a-bbf6-703c78182533"]]
3312
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3313
+  (0.2ms) SAVEPOINT active_record_1
3314
+  (9.1ms) TRUNCATE table dbhero_dataclips
3315
+  (3.5ms) ROLLBACK TO SAVEPOINT active_record_1
3316
+  (1.1ms) SELECT COUNT(*) FROM "dbhero_dataclips"
3317
+  (0.5ms) ROLLBACK
3318
+  (0.2ms) BEGIN
3319
+  (0.2ms) SAVEPOINT active_record_1
3320
+ SQL (0.8ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.555461"], ["updated_at", "2015-03-23 23:34:59.555461"], ["token", "ba72e199-ba81-4990-9a92-ae753754e7dc"]]
3321
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3322
+  (0.2ms) SAVEPOINT active_record_1
3323
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.560255"], ["updated_at", "2015-03-23 23:34:59.560255"], ["token", "0b7b5e4a-79f0-446d-ad3f-63e20d3c1245"]]
3324
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3325
+  (0.2ms) SAVEPOINT active_record_1
3326
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.564702"], ["updated_at", "2015-03-23 23:34:59.564702"], ["token", "39b833ca-08e9-4780-ad4d-d41fbb77c514"]]
3327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3328
+  (0.1ms) SAVEPOINT active_record_1
3329
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.568049"], ["updated_at", "2015-03-23 23:34:59.568049"], ["token", "a1f61c40-5e30-406c-b89d-29f28c9b014c"]]
3330
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3331
+  (0.1ms) SAVEPOINT active_record_1
3332
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-23 23:34:59.571807"], ["updated_at", "2015-03-23 23:34:59.571807"], ["token", "d8f5118f-3c3f-4f2a-a520-2a40f76380ce"]]
3333
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3334
+  (0.2ms) SAVEPOINT active_record_1
3335
+ SQL (0.9ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-23 23:34:59.576070"], ["updated_at", "2015-03-23 23:34:59.576070"], ["token", "9cb6428a-1828-4b66-8b80-292f361045a5"]]
3336
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3337
+  (0.1ms) SAVEPOINT active_record_1
3338
+  (0.3ms) TRUNCATE table dbhero_dataclips; commit;
3339
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
3340
+ : TRUNCATE table dbhero_dataclips; commit;
3341
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3342
+  (0.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
3343
+  (0.8ms) ROLLBACK
3344
+ ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
3345
+  (126.1ms) DROP DATABASE IF EXISTS "dummy_test"
3346
+  (364.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
3347
+ SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3348
+  (22.3ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3349
+  (3.3ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
3350
+  (1.6ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
3351
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
3352
+  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3353
+  (0.7ms) SELECT version FROM "schema_migrations"
3354
+  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
3355
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3356
+  (0.2ms) BEGIN
3357
+ Processing by Dbhero::DataclipsController#index as HTML
3358
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
3359
+  (0.2ms) ROLLBACK
3360
+  (0.1ms) BEGIN
3361
+ Processing by Dbhero::DataclipsController#index as HTML
3362
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.4ms)
3363
+ Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)
3364
+  (0.2ms) ROLLBACK
3365
+  (0.1ms) BEGIN
3366
+ Processing by Dbhero::DataclipsController#index as HTML
3367
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
3368
+ Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms)
3369
+  (0.2ms) ROLLBACK
3370
+  (0.1ms) BEGIN
3371
+ Processing by Dbhero::DataclipsController#index as HTML
3372
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3373
+  (0.2ms) ROLLBACK
3374
+  (0.1ms) BEGIN
3375
+ Processing by Dbhero::DataclipsController#index as HTML
3376
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
3377
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
3378
+  (0.2ms) ROLLBACK
3379
+  (0.1ms) BEGIN
3380
+ Processing by Dbhero::DataclipsController#new as HTML
3381
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3382
+  (0.1ms) ROLLBACK
3383
+  (0.1ms) BEGIN
3384
+ Processing by Dbhero::DataclipsController#new as HTML
3385
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
3386
+ Completed 200 OK in 19ms (Views: 3.6ms | ActiveRecord: 8.0ms)
3387
+  (0.2ms) ROLLBACK
3388
+  (0.1ms) BEGIN
3389
+ Processing by Dbhero::DataclipsController#new as HTML
3390
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
3391
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
3392
+  (0.2ms) ROLLBACK
3393
+  (0.1ms) BEGIN
3394
+ Processing by Dbhero::DataclipsController#new as HTML
3395
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
3396
+  (0.2ms) ROLLBACK
3397
+  (0.1ms) BEGIN
3398
+ Processing by Dbhero::DataclipsController#new as HTML
3399
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
3400
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
3401
+  (0.1ms) ROLLBACK
3402
+  (0.1ms) BEGIN
3403
+ Processing by Dbhero::DataclipsController#create as HTML
3404
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3405
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3406
+  (0.4ms) ROLLBACK
3407
+  (0.2ms) BEGIN
3408
+ Processing by Dbhero::DataclipsController#create as HTML
3409
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3410
+  (0.2ms) SAVEPOINT active_record_1
3411
+ SQL (1.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-24 01:56:03.822775"], ["updated_at", "2015-03-24 01:56:03.822775"], ["token", "856000fe-5c94-4b99-a743-1809d838f976"]]
3412
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3413
+ Redirected to http://test.host/dbhero/dataclips/856000fe-5c94-4b99-a743-1809d838f976/edit
3414
+ Completed 302 Found in 24ms (ActiveRecord: 2.1ms)
3415
+  (0.3ms) ROLLBACK
3416
+  (0.2ms) BEGIN
3417
+ Processing by Dbhero::DataclipsController#create as HTML
3418
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3419
+  (0.2ms) SAVEPOINT active_record_1
3420
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-24 01:56:03.848523"], ["updated_at", "2015-03-24 01:56:03.848523"], ["token", "854c66e1-5193-48c0-89b9-17050e4a6bae"]]
3421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3422
+ Redirected to http://test.host/dbhero/dataclips/854c66e1-5193-48c0-89b9-17050e4a6bae/edit
3423
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
3424
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
3425
+  (0.3ms) ROLLBACK
3426
+  (0.1ms) BEGIN
3427
+ Processing by Dbhero::DataclipsController#create as HTML
3428
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3429
+  (0.2ms) SAVEPOINT active_record_1
3430
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-24 01:56:03.867039"], ["updated_at", "2015-03-24 01:56:03.867039"], ["token", "104a841a-3471-4184-87c4-f729189a2c59"]]
3431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3432
+ Redirected to http://test.host/dbhero/dataclips/104a841a-3471-4184-87c4-f729189a2c59/edit
3433
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
3434
+  (0.2ms) ROLLBACK
3435
+  (0.1ms) BEGIN
3436
+ Processing by Dbhero::DataclipsController#create as HTML
3437
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3438
+  (0.1ms) SAVEPOINT active_record_1
3439
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-03-24 01:56:03.874286"], ["updated_at", "2015-03-24 01:56:03.874286"], ["token", "7a78ed85-2582-40ab-8d20-203888a493ec"]]
3440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3441
+ Redirected to http://test.host/dbhero/dataclips/7a78ed85-2582-40ab-8d20-203888a493ec/edit
3442
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
3443
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
3444
+  (0.3ms) ROLLBACK
3445
+  (0.1ms) BEGIN
3446
+ Processing by Dbhero::DataclipsController#create as HTML
3447
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3448
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3449
+  (0.1ms) ROLLBACK
3450
+  (0.1ms) BEGIN
3451
+ Processing by Dbhero::DataclipsController#create as HTML
3452
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
3453
+  (0.1ms) SAVEPOINT active_record_1
3454
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.888501"], ["updated_at", "2015-03-24 01:56:03.888501"], ["token", "e0a5ad17-f3b7-46b3-910e-d30d41950b70"]]
3455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3456
+ Redirected to http://test.host/dbhero/dataclips/e0a5ad17-f3b7-46b3-910e-d30d41950b70/edit
3457
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
3458
+  (0.1ms) ROLLBACK
3459
+  (0.1ms) BEGIN
3460
+ Processing by Dbhero::DataclipsController#create as HTML
3461
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
3462
+  (0.2ms) SAVEPOINT active_record_1
3463
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.896024"], ["updated_at", "2015-03-24 01:56:03.896024"], ["token", "45d28c42-9aed-4baa-8355-6665ef391cf6"]]
3464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3465
+ Redirected to http://test.host/dbhero/dataclips/45d28c42-9aed-4baa-8355-6665ef391cf6/edit
3466
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
3467
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
3468
+  (0.1ms) ROLLBACK
3469
+  (0.1ms) BEGIN
3470
+  (0.2ms) SAVEPOINT active_record_1
3471
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:03.902680"], ["updated_at", "2015-03-24 01:56:03.902680"], ["token", "5ccf34c2-6500-4fed-8ac0-0ba4a0990935"]]
3472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3473
+ Processing by Dbhero::DataclipsController#edit as HTML
3474
+ Parameters: {"id"=>"5ccf34c2-6500-4fed-8ac0-0ba4a0990935"}
3475
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3476
+  (0.2ms) ROLLBACK
3477
+  (0.1ms) BEGIN
3478
+  (0.1ms) SAVEPOINT active_record_1
3479
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:03.908604"], ["updated_at", "2015-03-24 01:56:03.908604"], ["token", "e2574831-f3d7-4d4c-9e3d-b6602ac14078"]]
3480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3481
+ Processing by Dbhero::DataclipsController#edit as HTML
3482
+ Parameters: {"id"=>"e2574831-f3d7-4d4c-9e3d-b6602ac14078"}
3483
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "e2574831-f3d7-4d4c-9e3d-b6602ac14078"]]
3484
+  (0.2ms) SAVEPOINT active_record_1
3485
+  (2.0ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3486
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3487
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3488
+ ^
3489
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3490
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3491
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3492
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
3493
+ Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 2.7ms)
3494
+  (0.2ms) ROLLBACK
3495
+  (0.1ms) BEGIN
3496
+  (0.1ms) SAVEPOINT active_record_1
3497
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:03.923978"], ["updated_at", "2015-03-24 01:56:03.923978"], ["token", "6846f0c0-efe4-467a-9c8e-d40bb6b0ae2a"]]
3498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3499
+ Processing by Dbhero::DataclipsController#edit as HTML
3500
+ Parameters: {"id"=>"6846f0c0-efe4-467a-9c8e-d40bb6b0ae2a"}
3501
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "6846f0c0-efe4-467a-9c8e-d40bb6b0ae2a"]]
3502
+  (0.1ms) SAVEPOINT active_record_1
3503
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3504
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3505
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3506
+ ^
3507
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3508
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3509
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3510
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
3511
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 1.0ms)
3512
+  (0.2ms) ROLLBACK
3513
+  (0.1ms) BEGIN
3514
+  (0.1ms) SAVEPOINT active_record_1
3515
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:03.933347"], ["updated_at", "2015-03-24 01:56:03.933347"], ["token", "6c06725d-c86e-43e7-937e-faebbae7eaf3"]]
3516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3517
+ Processing by Dbhero::DataclipsController#edit as HTML
3518
+ Parameters: {"id"=>"6c06725d-c86e-43e7-937e-faebbae7eaf3"}
3519
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
3520
+  (0.2ms) ROLLBACK
3521
+  (0.1ms) BEGIN
3522
+  (0.1ms) SAVEPOINT active_record_1
3523
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:03.939500"], ["updated_at", "2015-03-24 01:56:03.939500"], ["token", "30324b43-2aaf-491d-a2b3-d9293139de44"]]
3524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3525
+ Processing by Dbhero::DataclipsController#edit as HTML
3526
+ Parameters: {"id"=>"30324b43-2aaf-491d-a2b3-d9293139de44"}
3527
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "30324b43-2aaf-491d-a2b3-d9293139de44"]]
3528
+  (0.2ms) SAVEPOINT active_record_1
3529
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
3530
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
3531
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
3532
+ ^
3533
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
3534
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
3535
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3536
+ Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
3537
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.9ms)
3538
+  (0.2ms) ROLLBACK
3539
+  (0.1ms) BEGIN
3540
+ Processing by Dbhero::DataclipsController#create as HTML
3541
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
3542
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3543
+  (0.2ms) ROLLBACK
3544
+  (0.1ms) BEGIN
3545
+  (0.1ms) SAVEPOINT active_record_1
3546
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.952389"], ["updated_at", "2015-03-24 01:56:03.952389"], ["token", "07f32b94-c59c-40fa-bd0f-2537fa0153d3"]]
3547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3548
+ Processing by Dbhero::DataclipsController#update as HTML
3549
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"07f32b94-c59c-40fa-bd0f-2537fa0153d3"}
3550
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "07f32b94-c59c-40fa-bd0f-2537fa0153d3"]]
3551
+  (0.1ms) SAVEPOINT active_record_1
3552
+ SQL (1.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:03.956599"], ["id", 12]]
3553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3554
+ Redirected to http://test.host/dbhero/dataclips/07f32b94-c59c-40fa-bd0f-2537fa0153d3/edit
3555
+ Completed 302 Found in 11ms (ActiveRecord: 2.0ms)
3556
+  (0.2ms) ROLLBACK
3557
+  (0.1ms) BEGIN
3558
+  (0.2ms) SAVEPOINT active_record_1
3559
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.969124"], ["updated_at", "2015-03-24 01:56:03.969124"], ["token", "99eb516f-5d63-488d-977c-9692ca6a1536"]]
3560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3561
+ Processing by Dbhero::DataclipsController#update as HTML
3562
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"99eb516f-5d63-488d-977c-9692ca6a1536"}
3563
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "99eb516f-5d63-488d-977c-9692ca6a1536"]]
3564
+  (0.1ms) SAVEPOINT active_record_1
3565
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:03.973576"], ["id", 13]]
3566
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3567
+ Redirected to http://test.host/dbhero/dataclips/99eb516f-5d63-488d-977c-9692ca6a1536/edit
3568
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
3569
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3570
+  (0.2ms) ROLLBACK
3571
+  (0.1ms) BEGIN
3572
+  (0.1ms) SAVEPOINT active_record_1
3573
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.980456"], ["updated_at", "2015-03-24 01:56:03.980456"], ["token", "cf5f7323-0c57-4d15-9780-51ad12eef19b"]]
3574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3575
+ Processing by Dbhero::DataclipsController#update as HTML
3576
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"cf5f7323-0c57-4d15-9780-51ad12eef19b"}
3577
+ Dbhero::Dataclip Load (0.4ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "cf5f7323-0c57-4d15-9780-51ad12eef19b"]]
3578
+  (0.1ms) SAVEPOINT active_record_1
3579
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:03.984917"], ["id", 14]]
3580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3581
+ Redirected to http://test.host/dbhero/dataclips/cf5f7323-0c57-4d15-9780-51ad12eef19b/edit
3582
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
3583
+  (0.2ms) ROLLBACK
3584
+  (0.1ms) BEGIN
3585
+  (0.2ms) SAVEPOINT active_record_1
3586
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:03.990773"], ["updated_at", "2015-03-24 01:56:03.990773"], ["token", "1d1f8a0d-c0a9-4085-8f7c-d778fa87c5d2"]]
3587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3588
+ Processing by Dbhero::DataclipsController#update as HTML
3589
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"1d1f8a0d-c0a9-4085-8f7c-d778fa87c5d2"}
3590
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "1d1f8a0d-c0a9-4085-8f7c-d778fa87c5d2"]]
3591
+  (0.2ms) SAVEPOINT active_record_1
3592
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:03.995278"], ["id", 15]]
3593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3594
+ Redirected to http://test.host/dbhero/dataclips/1d1f8a0d-c0a9-4085-8f7c-d778fa87c5d2/edit
3595
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
3596
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3597
+  (0.1ms) ROLLBACK
3598
+  (0.1ms) BEGIN
3599
+  (0.2ms) SAVEPOINT active_record_1
3600
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:04.002760"], ["updated_at", "2015-03-24 01:56:04.002760"], ["token", "0fa83f4b-6c1e-49ed-80d1-2112c1fb8fe2"]]
3601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3602
+ Processing by Dbhero::DataclipsController#update as HTML
3603
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0fa83f4b-6c1e-49ed-80d1-2112c1fb8fe2"}
3604
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
3605
+  (0.2ms) ROLLBACK
3606
+  (0.1ms) BEGIN
3607
+  (0.1ms) SAVEPOINT active_record_1
3608
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:04.009104"], ["updated_at", "2015-03-24 01:56:04.009104"], ["token", "da6793fb-c0f3-434d-b03e-6887dc487541"]]
3609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3610
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
3611
+  (0.1ms) ROLLBACK
3612
+  (0.1ms) BEGIN
3613
+  (0.1ms) SAVEPOINT active_record_1
3614
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:04.014780"], ["updated_at", "2015-03-24 01:56:04.014780"], ["token", "2fea74b6-14cf-407a-915b-df91e2b2f490"]]
3615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3616
+ Processing by Dbhero::DataclipsController#update as HTML
3617
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"2fea74b6-14cf-407a-915b-df91e2b2f490"}
3618
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2fea74b6-14cf-407a-915b-df91e2b2f490"]]
3619
+  (0.1ms) SAVEPOINT active_record_1
3620
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:04.018919"], ["id", 18]]
3621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3622
+ Redirected to http://test.host/dbhero/dataclips/2fea74b6-14cf-407a-915b-df91e2b2f490/edit
3623
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
3624
+  (0.1ms) ROLLBACK
3625
+  (0.1ms) BEGIN
3626
+  (0.1ms) SAVEPOINT active_record_1
3627
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-03-24 01:56:04.024490"], ["updated_at", "2015-03-24 01:56:04.024490"], ["token", "a05e8586-4141-4ce5-8334-8f76c7c6ea85"]]
3628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3629
+ Processing by Dbhero::DataclipsController#update as HTML
3630
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"a05e8586-4141-4ce5-8334-8f76c7c6ea85"}
3631
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "a05e8586-4141-4ce5-8334-8f76c7c6ea85"]]
3632
+  (0.1ms) SAVEPOINT active_record_1
3633
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-24 01:56:04.028369"], ["id", 19]]
3634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3635
+ Redirected to http://test.host/dbhero/dataclips/a05e8586-4141-4ce5-8334-8f76c7c6ea85/edit
3636
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
3637
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
3638
+  (0.2ms) ROLLBACK
3639
+  (0.1ms) BEGIN
3640
+  (0.2ms) ROLLBACK
3641
+  (0.1ms) BEGIN
3642
+  (0.2ms) ROLLBACK
3643
+  (0.1ms) BEGIN
3644
+  (0.1ms) ROLLBACK
3645
+  (0.1ms) BEGIN
3646
+  (0.1ms) SAVEPOINT active_record_1
3647
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.055924"], ["updated_at", "2015-03-24 01:56:04.055924"], ["token", "b43c5cea-dd0c-4845-8048-f344077184d9"]]
3648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3649
+  (0.1ms) ROLLBACK
3650
+  (0.1ms) BEGIN
3651
+  (0.1ms) SAVEPOINT active_record_1
3652
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-22 01:56:04.058703"], ["created_at", "2015-03-24 01:56:04.060908"], ["token", "7ff7c4e7-71fb-4764-bc3e-59dde8565be2"]]
3653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3654
+  (0.1ms) SAVEPOINT active_record_1
3655
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-23 01:56:04.062851"], ["created_at", "2015-03-24 01:56:04.063769"], ["token", "fc23ed06-8023-452a-8579-4425311b608f"]]
3656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3657
+  (0.1ms) SAVEPOINT active_record_1
3658
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-03-20 01:56:04.065691"], ["created_at", "2015-03-24 01:56:04.066518"], ["token", "88ca1f22-10cf-4470-a4be-d9b89cee6489"]]
3659
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3660
+ Dbhero::Dataclip Load (1.7ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
3661
+  (0.2ms) ROLLBACK
3662
+  (0.1ms) BEGIN
3663
+  (0.1ms) SAVEPOINT active_record_1
3664
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.072747"], ["updated_at", "2015-03-24 01:56:04.072747"], ["token", "81f2bc28-dab1-4a46-bcce-24099edc2788"]]
3665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3666
+  (0.1ms) ROLLBACK
3667
+  (0.1ms) BEGIN
3668
+  (0.1ms) SAVEPOINT active_record_1
3669
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.076319"], ["updated_at", "2015-03-24 01:56:04.076319"], ["token", "1360b447-217f-4a16-99a4-c015da26af4c"]]
3670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3671
+  (0.1ms) ROLLBACK
3672
+  (0.1ms) BEGIN
3673
+  (0.1ms) SAVEPOINT active_record_1
3674
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.079953"], ["updated_at", "2015-03-24 01:56:04.079953"], ["token", "8e3e806c-5e30-42c0-bd75-d13dea2ba3d5"]]
3675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3676
+  (0.1ms) ROLLBACK
3677
+  (0.1ms) BEGIN
3678
+  (0.1ms) SAVEPOINT active_record_1
3679
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-24 01:56:04.083520"], ["updated_at", "2015-03-24 01:56:04.083520"], ["token", "f50d6720-f2d6-464c-9505-567f03abf6e4"]]
3680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3681
+  (0.1ms) SAVEPOINT active_record_1
3682
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
3683
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3684
+  (0.1ms) ROLLBACK
3685
+  (0.1ms) BEGIN
3686
+  (0.1ms) SAVEPOINT active_record_1
3687
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-03-24 01:56:04.088226"], ["updated_at", "2015-03-24 01:56:04.088226"], ["token", "edf5d6fa-4159-491c-a196-c7c1fb322a30"]]
3688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3689
+  (0.1ms) SAVEPOINT active_record_1
3690
+  (0.9ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
3691
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3692
+  (0.1ms) ROLLBACK
3693
+  (0.1ms) BEGIN
3694
+  (0.2ms) SAVEPOINT active_record_1
3695
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-24 01:56:04.094580"], ["updated_at", "2015-03-24 01:56:04.094580"], ["token", "e05b4e14-cec4-4f49-90b3-15b6de5565a0"]]
3696
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3697
+  (0.1ms) SAVEPOINT active_record_1
3698
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
3699
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3700
+  (0.2ms) ROLLBACK
3701
+  (0.1ms) BEGIN
3702
+  (0.2ms) SAVEPOINT active_record_1
3703
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-03-24 01:56:04.115264"], ["updated_at", "2015-03-24 01:56:04.115264"], ["token", "29113fbb-0281-4a2f-8cb5-c7621a2a60e3"]]
3704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3705
+  (0.1ms) SAVEPOINT active_record_1
3706
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
3707
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3708
+  (0.1ms) ROLLBACK
3709
+  (0.1ms) BEGIN
3710
+  (0.1ms) SAVEPOINT active_record_1
3711
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.119515"], ["updated_at", "2015-03-24 01:56:04.119515"], ["token", "63889283-1177-42f0-8c87-9ed9aa9880c8"]]
3712
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3713
+  (0.2ms) SAVEPOINT active_record_1
3714
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.121658"], ["updated_at", "2015-03-24 01:56:04.121658"], ["token", "79c1d720-d0dd-4317-95f3-333a7e07e231"]]
3715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3716
+  (0.1ms) SAVEPOINT active_record_1
3717
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.124398"], ["updated_at", "2015-03-24 01:56:04.124398"], ["token", "a8ca5cde-feb9-4110-8eb2-6e118593bdad"]]
3718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3719
+  (0.2ms) SAVEPOINT active_record_1
3720
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.126423"], ["updated_at", "2015-03-24 01:56:04.126423"], ["token", "535b5d30-0c3b-4cbd-82b6-e9b649282f98"]]
3721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3722
+  (0.1ms) SAVEPOINT active_record_1
3723
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.128674"], ["updated_at", "2015-03-24 01:56:04.128674"], ["token", "0dfebe03-5feb-4863-9d9a-718e9d1a24ef"]]
3724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3725
+  (0.1ms) SAVEPOINT active_record_1
3726
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-03-24 01:56:04.131219"], ["updated_at", "2015-03-24 01:56:04.131219"], ["token", "8c561fcf-9668-4f60-bad7-8a16be90fd27"]]
3727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3728
+  (0.1ms) SAVEPOINT active_record_1
3729
+  (4.4ms) TRUNCATE table dbhero_dataclips
3730
+  (1.6ms) ROLLBACK TO SAVEPOINT active_record_1
3731
+  (0.7ms) SELECT COUNT(*) FROM "dbhero_dataclips"
3732
+  (0.3ms) ROLLBACK
3733
+  (0.1ms) BEGIN
3734
+  (0.2ms) SAVEPOINT active_record_1
3735
+ SQL (0.5ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.143469"], ["updated_at", "2015-03-24 01:56:04.143469"], ["token", "5405b044-7edc-48e4-a39d-c67ba367bb7c"]]
3736
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3737
+  (0.1ms) SAVEPOINT active_record_1
3738
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.146598"], ["updated_at", "2015-03-24 01:56:04.146598"], ["token", "e31ca542-2497-47de-b526-c669e575142c"]]
3739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3740
+  (0.1ms) SAVEPOINT active_record_1
3741
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.148961"], ["updated_at", "2015-03-24 01:56:04.148961"], ["token", "54c98a3c-1070-4a92-a82d-ae5166f849eb"]]
3742
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3743
+  (0.1ms) SAVEPOINT active_record_1
3744
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.151411"], ["updated_at", "2015-03-24 01:56:04.151411"], ["token", "0064aad4-d6f3-4123-8dc8-f6e85ee70187"]]
3745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3746
+  (0.1ms) SAVEPOINT active_record_1
3747
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-03-24 01:56:04.153327"], ["updated_at", "2015-03-24 01:56:04.153327"], ["token", "320d2d0a-a986-4aab-92d9-0f2505accd7f"]]
3748
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3749
+  (0.1ms) SAVEPOINT active_record_1
3750
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-03-24 01:56:04.155303"], ["updated_at", "2015-03-24 01:56:04.155303"], ["token", "d263b5f7-bb08-4f22-aba8-ec75b8b92c15"]]
3751
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3752
+  (0.1ms) SAVEPOINT active_record_1
3753
+  (0.2ms) TRUNCATE table dbhero_dataclips; commit;
3754
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
3755
+ : TRUNCATE table dbhero_dataclips; commit;
3756
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3757
+  (0.4ms) SELECT COUNT(*) FROM "dbhero_dataclips"
3758
+  (0.2ms) ROLLBACK