snaps 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +157 -0
- data/Rakefile +30 -0
- data/app/assets/javascripts/snaps/application.js +13 -0
- data/app/assets/stylesheets/snaps/application.css +15 -0
- data/app/controllers/snaps/application_controller.rb +4 -0
- data/app/helpers/snaps/application_helper.rb +4 -0
- data/app/models/concerns/snaps/suppressor.rb +55 -0
- data/app/models/snaps/tag.rb +45 -0
- data/app/views/layouts/snaps/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20150321131740_create_snaps_tags.rb +12 -0
- data/lib/snaps.rb +61 -0
- data/lib/snaps/engine.rb +13 -0
- data/lib/snaps/snapshot.rb +42 -0
- data/lib/snaps/version.rb +3 -0
- data/lib/tasks/snaps_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/post.rb +3 -0
- data/spec/dummy/app/models/post_with_sections.rb +7 -0
- data/spec/dummy/app/models/section.rb +5 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150321145225_create_posts.rb +11 -0
- data/spec/dummy/db/migrate/20150323173024_create_sections.rb +11 -0
- data/spec/dummy/db/migrate/20150324074047_create_snaps_tags.snaps.rb +13 -0
- data/spec/dummy/db/schema.rb +41 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +36 -0
- data/spec/dummy/log/test.log +472 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/factories/posts.rb +11 -0
- data/spec/dummy/spec/factories/sections.rb +8 -0
- data/spec/integration/revision_spec.rb +214 -0
- data/spec/integration/revision_spec.rb! +8 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/config/timecop.rb +11 -0
- metadata +247 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -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,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,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: d845e0a09d7354f792444de853e8dc71efb7eda392bd738236903ffa200208d264b49c1b3bc2a4adcead9f8eb20a8ae04c52904097040d77628329e04382f7d2
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 7c7f5733e39ed4d8a9c808c171dde2becfec7a4a7344ec20eb63b892e54f18b622bdab6be31f2c64681a3d3483d5cab69782ce74b36acbd4ee65a5ecb41e0e10
|
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"] %>
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This migration comes from snaps (originally 20150321131740)
|
2
|
+
class CreateSnapsTags < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :snaps_tags do |t|
|
5
|
+
t.integer :record_id
|
6
|
+
t.string :record_type
|
7
|
+
t.string :tag
|
8
|
+
t.timestamp :superseded_at
|
9
|
+
|
10
|
+
t.timestamps null: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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: 20150324074047) do
|
15
|
+
|
16
|
+
create_table "posts", force: :cascade do |t|
|
17
|
+
t.integer "perma_id"
|
18
|
+
t.string "title"
|
19
|
+
t.text "body"
|
20
|
+
t.datetime "created_at", null: false
|
21
|
+
t.datetime "updated_at", null: false
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table "sections", force: :cascade do |t|
|
25
|
+
t.integer "post_id"
|
26
|
+
t.integer "perma_id"
|
27
|
+
t.string "title"
|
28
|
+
t.datetime "created_at", null: false
|
29
|
+
t.datetime "updated_at", null: false
|
30
|
+
end
|
31
|
+
|
32
|
+
create_table "snaps_tags", force: :cascade do |t|
|
33
|
+
t.integer "record_id"
|
34
|
+
t.string "record_type"
|
35
|
+
t.string "tag"
|
36
|
+
t.datetime "superseded_at"
|
37
|
+
t.datetime "created_at", null: false
|
38
|
+
t.datetime "updated_at", null: false
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
Binary file
|
@@ -0,0 +1,36 @@
|
|
1
|
+
[1m[36m (24.0ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "title" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
|
+
[1m[35m (40.3ms)[0m CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "perma_id" integer, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
3
|
+
[1m[36m (37.8ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
4
|
+
[1m[35m (35.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5
|
+
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
6
|
+
[1m[35m (29.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (28.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150324074047')
|
9
|
+
[1m[36m (32.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150321145225')[0m
|
10
|
+
[1m[35m (34.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150323173024')
|
11
|
+
[1m[36m (24.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150321131740')[0m
|
12
|
+
[1m[35m (38.4ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "title" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
13
|
+
[1m[36m (24.3ms)[0m [1mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "perma_id" integer, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
14
|
+
[1m[35m (29.9ms)[0m CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
15
|
+
[1m[36m (40.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
16
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
17
|
+
[1m[36m (32.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
18
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
19
|
+
[1m[36m (35.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150324074047')[0m
|
20
|
+
[1m[35m (29.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150321145225')
|
21
|
+
[1m[36m (46.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150323173024')[0m
|
22
|
+
[1m[35m (26.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150321131740')
|
23
|
+
[1m[36m (23.4ms)[0m [1mDROP TABLE "posts"[0m
|
24
|
+
[1m[35m (42.5ms)[0m CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "title" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
25
|
+
[1m[36m (41.9ms)[0m [1mDROP TABLE "sections"[0m
|
26
|
+
[1m[35m (24.2ms)[0m CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "perma_id" integer, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
27
|
+
[1m[36m (45.4ms)[0m [1mDROP TABLE "snaps_tags"[0m
|
28
|
+
[1m[35m (38.7ms)[0m CREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
29
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
30
|
+
[1m[35m (48.8ms)[0m DROP TABLE "posts"
|
31
|
+
[1m[36m (29.1ms)[0m [1mCREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "perma_id" integer, "title" varchar, "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
32
|
+
[1m[35m (44.8ms)[0m DROP TABLE "sections"
|
33
|
+
[1m[36m (35.5ms)[0m [1mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "perma_id" integer, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
34
|
+
[1m[35m (34.4ms)[0m DROP TABLE "snaps_tags"
|
35
|
+
[1m[36m (39.1ms)[0m [1mCREATE TABLE "snaps_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "record_id" integer, "record_type" varchar, "tag" varchar, "superseded_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
36
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
@@ -0,0 +1,472 @@
|
|
1
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
2
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
4
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
5
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
6
|
+
ON posts.id = snaps_tags.record_id
|
7
|
+
AND snaps_tags.record_type = 'Post'
|
8
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
9
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
10
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11
|
+
[1m[35mSnaps::Tag Load (0.0ms)[0m SELECT "snaps_tags".* FROM "snaps_tags" WHERE "snaps_tags"."record_type" = 'Post' AND "snaps_tags"."record_id" = 1 LIMIT 1
|
12
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
13
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
16
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
17
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
18
|
+
ON posts.id = snaps_tags.record_id
|
19
|
+
AND snaps_tags.record_type = 'Post'
|
20
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
21
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
22
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
23
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
25
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 2], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
26
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
27
|
+
ON posts.id = snaps_tags.record_id
|
28
|
+
AND snaps_tags.record_type = 'Post'
|
29
|
+
AND perma_id = 2 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
30
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
31
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
32
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
33
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
36
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
37
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
38
|
+
ON posts.id = snaps_tags.record_id
|
39
|
+
AND snaps_tags.record_type = 'Post'
|
40
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
41
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
42
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
43
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
44
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
45
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
46
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
47
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
48
|
+
ON posts.id = snaps_tags.record_id
|
49
|
+
AND snaps_tags.record_type = 'Post'
|
50
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
51
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
52
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
54
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
55
|
+
ON posts.id = snaps_tags.record_id
|
56
|
+
AND snaps_tags.record_type = 'Post'
|
57
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "foo"]]
|
58
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "foo"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
59
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
60
|
+
[1m[35mSnaps::Tag Load (0.0ms)[0m SELECT "snaps_tags".* FROM "snaps_tags" WHERE "snaps_tags"."id" = ? LIMIT 1 [["id", 2]]
|
61
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
62
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
65
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
66
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
67
|
+
ON posts.id = snaps_tags.record_id
|
68
|
+
AND snaps_tags.record_type = 'Post'
|
69
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
70
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
71
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
72
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
73
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
74
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
75
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
76
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
77
|
+
ON posts.id = snaps_tags.record_id
|
78
|
+
AND snaps_tags.record_type = 'Post'
|
79
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
80
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
81
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
83
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
84
|
+
ON posts.id = snaps_tags.record_id
|
85
|
+
AND snaps_tags.record_type = 'Post'
|
86
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
87
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
88
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89
|
+
[1m[35mSnaps::Tag Load (0.0ms)[0m SELECT "snaps_tags".* FROM "snaps_tags" WHERE "snaps_tags"."id" = ? LIMIT 1 [["id", 2]]
|
90
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
91
|
+
[1m[35m (0.1ms)[0m begin transaction
|
92
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
93
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
94
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
95
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
96
|
+
ON posts.id = snaps_tags.record_id
|
97
|
+
AND snaps_tags.record_type = 'Post'
|
98
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
99
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
100
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
102
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
103
|
+
ON posts.id = snaps_tags.record_id
|
104
|
+
AND snaps_tags.record_type = 'Post'
|
105
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
106
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
107
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
108
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
112
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
113
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
114
|
+
ON posts.id = snaps_tags.record_id
|
115
|
+
AND snaps_tags.record_type = 'Post'
|
116
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
117
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
119
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
121
|
+
ON posts.id = snaps_tags.record_id
|
122
|
+
AND snaps_tags.record_type = 'Post'
|
123
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
124
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
126
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
127
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
128
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
129
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
130
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
131
|
+
ON posts.id = snaps_tags.record_id
|
132
|
+
AND snaps_tags.record_type = 'Post'
|
133
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
134
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
135
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2013-01-14 23:00:00.000000"], ["updated_at", "2013-01-14 23:00:00.000000"]]
|
138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2013-01-14 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
141
|
+
ON posts.id = snaps_tags.record_id
|
142
|
+
AND snaps_tags.record_type = 'Post'
|
143
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
144
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 3], ["record_type", "Post"], ["tag", "published"], ["created_at", "2013-01-14 23:00:00.000000"], ["updated_at", "2013-01-14 23:00:00.000000"]]
|
145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
146
|
+
[1m[36mSnaps::Tag Load (0.0ms)[0m [1mSELECT "snaps_tags".* FROM "snaps_tags" WHERE "snaps_tags"."id" = ? LIMIT 1[0m [["id", 2]]
|
147
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
149
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
150
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
151
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
152
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
153
|
+
ON posts.id = snaps_tags.record_id
|
154
|
+
AND snaps_tags.record_type = 'Post'
|
155
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
156
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
157
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
158
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
159
|
+
ON posts.id = snaps_tags.record_id
|
160
|
+
AND snaps_tags.record_type = 'Post'
|
161
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL)
|
162
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
164
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
165
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
166
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
167
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
168
|
+
ON posts.id = snaps_tags.record_id
|
169
|
+
AND snaps_tags.record_type = 'Post'
|
170
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
171
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
173
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
174
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
175
|
+
ON posts.id = snaps_tags.record_id
|
176
|
+
AND snaps_tags.record_type = 'Post'
|
177
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
178
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
180
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
181
|
+
ON posts.id = snaps_tags.record_id
|
182
|
+
AND snaps_tags.record_type = 'Post'
|
183
|
+
AND snaps_tags.tag = 'other' WHERE (snaps_tags.superseded_at IS NULL)[0m
|
184
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
187
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
188
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
189
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
190
|
+
ON posts.id = snaps_tags.record_id
|
191
|
+
AND snaps_tags.record_type = 'Post'
|
192
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
193
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
196
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
197
|
+
ON posts.id = snaps_tags.record_id
|
198
|
+
AND snaps_tags.record_type = 'Post'
|
199
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
200
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
202
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
203
|
+
ON posts.id = snaps_tags.record_id
|
204
|
+
AND snaps_tags.record_type = 'Post'
|
205
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL)
|
206
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
210
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
211
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
212
|
+
ON posts.id = snaps_tags.record_id
|
213
|
+
AND snaps_tags.record_type = 'Post'
|
214
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
215
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
218
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
221
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
222
|
+
ON posts.id = snaps_tags.record_id
|
223
|
+
AND snaps_tags.record_type = 'Post'
|
224
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
225
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
226
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
228
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
229
|
+
ON posts.id = snaps_tags.record_id
|
230
|
+
AND snaps_tags.record_type = 'Post'
|
231
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
232
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
233
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
234
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
235
|
+
ON posts.id = snaps_tags.record_id
|
236
|
+
AND snaps_tags.record_type = 'Post'
|
237
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL)
|
238
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
239
|
+
ON posts.id = snaps_tags.record_id
|
240
|
+
AND snaps_tags.record_type = 'Post'
|
241
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
242
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
245
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
246
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
247
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
248
|
+
ON posts.id = snaps_tags.record_id
|
249
|
+
AND snaps_tags.record_type = 'Post'
|
250
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
251
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
254
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
257
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
258
|
+
ON posts.id = snaps_tags.record_id
|
259
|
+
AND snaps_tags.record_type = 'Post'
|
260
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
261
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
262
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
263
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
264
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
265
|
+
ON posts.id = snaps_tags.record_id
|
266
|
+
AND snaps_tags.record_type = 'Post'
|
267
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "published"]]
|
268
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
269
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
270
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
271
|
+
ON posts.id = snaps_tags.record_id
|
272
|
+
AND snaps_tags.record_type = 'Post'
|
273
|
+
AND snaps_tags.tag = 'published'[0m
|
274
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
277
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
278
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
279
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
280
|
+
ON posts.id = snaps_tags.record_id
|
281
|
+
AND snaps_tags.record_type = 'Post'
|
282
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
283
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
284
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
285
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
286
|
+
ON posts.id = snaps_tags.record_id
|
287
|
+
AND snaps_tags.record_type = 'Post'
|
288
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL
|
289
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
290
|
+
ON posts.id = snaps_tags.record_id
|
291
|
+
AND snaps_tags.record_type = 'Post'
|
292
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL)[0m
|
293
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
294
|
+
ON posts.id = snaps_tags.record_id
|
295
|
+
AND snaps_tags.record_type = 'Post'
|
296
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL
|
297
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
298
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
301
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
302
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
303
|
+
ON posts.id = snaps_tags.record_id
|
304
|
+
AND snaps_tags.record_type = 'Post'
|
305
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
306
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
307
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "ein titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
310
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
311
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
312
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
313
|
+
ON posts.id = snaps_tags.record_id
|
314
|
+
AND snaps_tags.record_type = 'Post'
|
315
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
316
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
318
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
319
|
+
ON posts.id = snaps_tags.record_id
|
320
|
+
AND snaps_tags.record_type = 'Post'
|
321
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'published' AND "snaps_tags"."superseded_at" IS NULL
|
322
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
323
|
+
ON posts.id = snaps_tags.record_id
|
324
|
+
AND snaps_tags.record_type = 'Post'
|
325
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL)[0m
|
326
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
327
|
+
ON posts.id = snaps_tags.record_id
|
328
|
+
AND snaps_tags.record_type = 'Post'
|
329
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'published' AND "snaps_tags"."superseded_at" IS NULL
|
330
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
331
|
+
[1m[35m (0.1ms)[0m begin transaction
|
332
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
333
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
334
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
335
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
336
|
+
ON posts.id = snaps_tags.record_id
|
337
|
+
AND snaps_tags.record_type = 'Post'
|
338
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
339
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
340
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
341
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
342
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
343
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "ein titel"], ["body", "MyText"], ["perma_id", 2], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
344
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
345
|
+
ON posts.id = snaps_tags.record_id
|
346
|
+
AND snaps_tags.record_type = 'Post'
|
347
|
+
AND perma_id = 2 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
348
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 2], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
350
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
351
|
+
ON posts.id = snaps_tags.record_id
|
352
|
+
AND snaps_tags.record_type = 'Post'
|
353
|
+
AND perma_id = 2 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL[0m
|
354
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
355
|
+
ON posts.id = snaps_tags.record_id
|
356
|
+
AND snaps_tags.record_type = 'Post'
|
357
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL)
|
358
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "snaps_tags" INNER JOIN posts
|
359
|
+
ON posts.id = snaps_tags.record_id
|
360
|
+
AND snaps_tags.record_type = 'Post'
|
361
|
+
AND perma_id = 2 WHERE "snaps_tags"."tag" = 'draft' AND "snaps_tags"."superseded_at" IS NULL[0m
|
362
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
364
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
365
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
366
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "MyString"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
367
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
368
|
+
ON posts.id = snaps_tags.record_id
|
369
|
+
AND snaps_tags.record_type = 'Post'
|
370
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
371
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
374
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["perma_id", 1], ["title", "MyString"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
376
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."perma_id" = ?[0m [["perma_id", 1]]
|
377
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
378
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
380
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
381
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
382
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
383
|
+
ON posts.id = snaps_tags.record_id
|
384
|
+
AND snaps_tags.record_type = 'Post'
|
385
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
386
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
389
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["perma_id", 1], ["title", "zwei titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
390
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
391
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["id", 2]]
|
392
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
393
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
394
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
395
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
396
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
397
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
398
|
+
ON posts.id = snaps_tags.record_id
|
399
|
+
AND snaps_tags.record_type = 'PostWithSections'
|
400
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
401
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "PostWithSections"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
402
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
404
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("sections"."perma_id") FROM "sections"[0m
|
405
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "sections" ("title", "post_id", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "section"], ["post_id", 1], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
406
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
408
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["perma_id", 1], ["title", "ein titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
409
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
410
|
+
[1m[36mSection Load (0.0ms)[0m [1mSELECT "sections".* FROM "sections" WHERE "sections"."post_id" = ?[0m [["post_id", 1]]
|
411
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
412
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "sections" ("post_id", "perma_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["post_id", 2], ["perma_id", 1], ["title", "section"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
413
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
414
|
+
[1m[36mSection Load (0.0ms)[0m [1mSELECT "sections".* FROM "sections" WHERE "sections"."post_id" = ?[0m [["post_id", 2]]
|
415
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
417
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
418
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("posts"."perma_id") FROM "posts"[0m
|
419
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
420
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
421
|
+
ON posts.id = snaps_tags.record_id
|
422
|
+
AND snaps_tags.record_type = 'Post'
|
423
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "draft"]]
|
424
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
425
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
426
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags"
|
427
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "ein titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
430
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "snaps_tags"
|
431
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
432
|
+
[1m[35m (0.1ms)[0m begin transaction
|
433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
434
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
435
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
436
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
437
|
+
ON posts.id = snaps_tags.record_id
|
438
|
+
AND snaps_tags.record_type = 'Post'
|
439
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
440
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
441
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
442
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
443
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "ein titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
444
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
445
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
446
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
447
|
+
ON posts.id = snaps_tags.record_id
|
448
|
+
AND snaps_tags.record_type = 'Post'
|
449
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL)[0m [["tag", "published"]]
|
450
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["record_id", 2], ["record_type", "Post"], ["tag", "published"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
452
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts" INNER JOIN snaps_tags
|
453
|
+
ON posts.id = snaps_tags.record_id
|
454
|
+
AND snaps_tags.record_type = 'Post'
|
455
|
+
AND snaps_tags.tag = 'published' WHERE (snaps_tags.superseded_at IS NULL) ORDER BY "posts"."id" ASC LIMIT 1
|
456
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
459
|
+
[1m[35m (0.0ms)[0m SELECT MAX("posts"."perma_id") FROM "posts"
|
460
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "perma_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "ein titel"], ["body", "MyText"], ["perma_id", 1], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
461
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "snaps_tags" SET "superseded_at" = '2012-12-31 23:00:00.000000' WHERE "snaps_tags"."id" IN (SELECT "snaps_tags"."id" FROM "snaps_tags" INNER JOIN posts
|
462
|
+
ON posts.id = snaps_tags.record_id
|
463
|
+
AND snaps_tags.record_type = 'Post'
|
464
|
+
AND perma_id = 1 WHERE "snaps_tags"."tag" = ? AND "snaps_tags"."superseded_at" IS NULL) [["tag", "draft"]]
|
465
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "snaps_tags" ("record_id", "record_type", "tag", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["record_id", 1], ["record_type", "Post"], ["tag", "draft"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
468
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "posts" ("perma_id", "title", "body", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["perma_id", 1], ["title", "ein titel"], ["body", "MyText"], ["created_at", "2012-12-31 23:00:00.000000"], ["updated_at", "2012-12-31 23:00:00.000000"]]
|
469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
470
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts"
|
471
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
472
|
+
[1m[35m (0.2ms)[0m rollback transaction
|