after_commit_queue 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/after_commit_queue.rb +9 -9
- data/lib/after_commit_queue/version.rb +1 -1
- data/test/after_commit_queue_test.rb +18 -1
- data/test/dummy/app/models/server.rb +2 -1
- data/test/dummy/app/models/server_observer.rb +5 -0
- data/test/dummy/config/application.rb +1 -7
- data/test/dummy/config/environments/development.rb +2 -6
- data/test/dummy/config/environments/production.rb +1 -0
- data/test/dummy/config/environments/test.rb +2 -6
- data/test/dummy/db/schema.rb +5 -5
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +39 -103
- data/test/dummy/log/test.log +557 -269
- metadata +21 -19
data/lib/after_commit_queue.rb
CHANGED
@@ -6,24 +6,24 @@ module AfterCommitQueue
|
|
6
6
|
after_rollback :_clear_after_commit_queue
|
7
7
|
end
|
8
8
|
|
9
|
+
# Public: Add method to after commit queue
|
10
|
+
def run_after_commit(method = nil, &block)
|
11
|
+
_after_commit_queue << Proc.new { self.send(method) } if method
|
12
|
+
_after_commit_queue << block if block
|
13
|
+
true
|
14
|
+
end
|
15
|
+
|
9
16
|
protected
|
10
17
|
|
11
18
|
# Protected: Is called as after_commit callback
|
12
19
|
# runs methods from the queue and clears the queue afterwards
|
13
20
|
def _run_after_commit_queue
|
14
21
|
_after_commit_queue.each do |action|
|
15
|
-
action
|
22
|
+
self.instance_eval &action
|
16
23
|
end
|
17
24
|
@after_commit_queue.clear
|
18
25
|
end
|
19
26
|
|
20
|
-
# Protected: Add method to after commit queue
|
21
|
-
def run_after_commit(method = nil, &block)
|
22
|
-
_after_commit_queue << Proc.new { self.send(method) } if method
|
23
|
-
_after_commit_queue << block if block
|
24
|
-
true
|
25
|
-
end
|
26
|
-
|
27
27
|
# Protected: Return after commit queue
|
28
28
|
# Returns: Array with methods to run
|
29
29
|
def _after_commit_queue
|
@@ -31,6 +31,6 @@ module AfterCommitQueue
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def _clear_after_commit_queue
|
34
|
-
|
34
|
+
_after_commit_queue.clear
|
35
35
|
end
|
36
36
|
end
|
@@ -28,6 +28,19 @@ class AfterCommitQueueTest < ActiveSupport::TestCase
|
|
28
28
|
assert @server.meditating
|
29
29
|
end
|
30
30
|
|
31
|
+
test "external observer changes state" do
|
32
|
+
@server.start!
|
33
|
+
@server.stop!
|
34
|
+
assert !@server.uninstalled
|
35
|
+
|
36
|
+
@server.transaction do
|
37
|
+
@server.uninstall!
|
38
|
+
assert !@server.uninstalled
|
39
|
+
end
|
40
|
+
|
41
|
+
assert @server.uninstalled
|
42
|
+
end
|
43
|
+
|
31
44
|
test "clear queue after methods from are called" do
|
32
45
|
@server.start!
|
33
46
|
@server.started = false
|
@@ -45,8 +58,12 @@ class AfterCommitQueueTest < ActiveSupport::TestCase
|
|
45
58
|
assert !@server.started
|
46
59
|
raise ActiveRecord::Rollback
|
47
60
|
end
|
48
|
-
|
61
|
+
|
49
62
|
assert @server.__send__(:_after_commit_queue).empty?
|
50
63
|
assert !@server.started
|
51
64
|
end
|
65
|
+
|
66
|
+
test "clears queue even when no callback was enqueued" do
|
67
|
+
@server.rolledback!(false)
|
68
|
+
end
|
52
69
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Server < ActiveRecord::Base
|
2
2
|
include AfterCommitQueue
|
3
3
|
|
4
|
-
attr_accessor :started, :stopped, :meditating
|
4
|
+
attr_accessor :started, :stopped, :meditating, :uninstalled
|
5
5
|
|
6
6
|
state_machine :state, :initial => :pending do
|
7
7
|
after_transition :pending => :running, :do => :schedule_start
|
@@ -11,6 +11,7 @@ class Server < ActiveRecord::Base
|
|
11
11
|
event(:start) { transition :pending => :running }
|
12
12
|
event(:stop) { transition :running => :turned_off }
|
13
13
|
event(:crash) { transition :running => :crashed }
|
14
|
+
event(:uninstall) { transition :turned_off => :uninstalled }
|
14
15
|
end
|
15
16
|
|
16
17
|
def schedule_start
|
@@ -19,7 +19,7 @@ module Dummy
|
|
19
19
|
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
20
20
|
|
21
21
|
# Activate observers that should always be running.
|
22
|
-
|
22
|
+
config.active_record.observers = :server_observer
|
23
23
|
|
24
24
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
25
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
@@ -43,12 +43,6 @@ module Dummy
|
|
43
43
|
# like if you have constraints or database-specific column types
|
44
44
|
# config.active_record.schema_format = :sql
|
45
45
|
|
46
|
-
# Enforce whitelist mode for mass assignment.
|
47
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
48
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
49
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
50
|
-
config.active_record.whitelist_attributes = true
|
51
|
-
|
52
46
|
# Enable the asset pipeline
|
53
47
|
config.assets.enabled = true
|
54
48
|
|
@@ -6,9 +6,6 @@ Dummy::Application.configure do
|
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
9
|
# Show full error reports and disable caching
|
13
10
|
config.consider_all_requests_local = true
|
14
11
|
config.action_controller.perform_caching = false
|
@@ -22,9 +19,6 @@ Dummy::Application.configure do
|
|
22
19
|
# Only use best-standards-support built into browsers
|
23
20
|
config.action_dispatch.best_standards_support = :builtin
|
24
21
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
22
|
# Log the query plan for queries taking more than this (works
|
29
23
|
# with SQLite, MySQL, and PostgreSQL)
|
30
24
|
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
@@ -34,4 +28,6 @@ Dummy::Application.configure do
|
|
34
28
|
|
35
29
|
# Expands the lines which load the assets
|
36
30
|
config.assets.debug = true
|
31
|
+
|
32
|
+
config.eager_load = false
|
37
33
|
end
|
@@ -11,9 +11,6 @@ Dummy::Application.configure do
|
|
11
11
|
config.serve_static_assets = true
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
13
13
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
14
|
# Show full error reports and disable caching
|
18
15
|
config.consider_all_requests_local = true
|
19
16
|
config.action_controller.perform_caching = false
|
@@ -29,9 +26,8 @@ Dummy::Application.configure do
|
|
29
26
|
# ActionMailer::Base.deliveries array.
|
30
27
|
config.action_mailer.delivery_method = :test
|
31
28
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
29
|
# Print deprecation notices to the stderr
|
36
30
|
config.active_support.deprecation = :stderr
|
31
|
+
|
32
|
+
config.eager_load = false
|
37
33
|
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -9,14 +9,14 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20120622135717) do
|
15
15
|
|
16
|
-
create_table "servers", :
|
16
|
+
create_table "servers", force: true do |t|
|
17
17
|
t.string "state"
|
18
|
-
t.datetime "created_at"
|
19
|
-
t.datetime "updated_at"
|
18
|
+
t.datetime "created_at"
|
19
|
+
t.datetime "updated_at"
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,119 +1,55 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
1
|
Connecting to database specified by database.yml
|
4
2
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
3
|
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
-
[1m[36m (0.
|
7
|
-
[1m[35m (1.
|
8
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
9
|
-
Migrating to CreateServers (20120622135717)
|
10
|
-
[1m[35m (0.0ms)[0m begin transaction
|
11
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
12
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')
|
13
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
14
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
15
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
16
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("servers")
|
17
|
-
Connecting to database specified by database.yml
|
18
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
4
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
|
+
[1m[35m (1.0ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
19
6
|
Migrating to CreateServers (20120622135717)
|
20
|
-
[1m[
|
21
|
-
[1m[
|
22
|
-
[1m[
|
23
|
-
|
24
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
25
|
-
[1m[35m (0.
|
26
|
-
[1m[36m (
|
27
|
-
[1m[35m (
|
28
|
-
[1m[36m (
|
29
|
-
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
30
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
31
|
-
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
32
|
-
Connecting to database specified by database.yml
|
33
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
34
|
-
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
35
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
7
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
9
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')[0m
|
10
|
+
[1m[35m (1.1ms)[0m commit transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
12
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
13
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
14
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
15
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
36
16
|
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
37
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
38
|
-
Migrating to CreateServers (20120622135717)
|
39
|
-
[1m[35m (0.0ms)[0m begin transaction
|
40
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
41
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')
|
42
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
43
|
-
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
44
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
45
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("servers")
|
46
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
47
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
48
|
-
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
49
|
-
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
50
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
51
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
52
17
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
53
|
-
[1m[35m (
|
18
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
54
19
|
Connecting to database specified by database.yml
|
55
20
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
56
|
-
[1m[35m (
|
57
|
-
[1m[36m (
|
58
|
-
[1m[35m (1.
|
59
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
21
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
22
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
23
|
+
[1m[35m (1.0ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
60
24
|
Migrating to CreateServers (20120622135717)
|
61
|
-
[1m[
|
62
|
-
[1m[
|
63
|
-
[1m[
|
64
|
-
[1m[
|
65
|
-
[1m[
|
66
|
-
[1m[
|
67
|
-
[1m[
|
68
|
-
[1m[
|
69
|
-
[1m[
|
70
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
71
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
72
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
25
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
26
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
27
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')[0m
|
28
|
+
[1m[35m (1.2ms)[0m commit transaction
|
29
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
30
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
31
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
32
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
33
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
73
34
|
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
74
35
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
75
|
-
[1m[35m (
|
36
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
76
37
|
Connecting to database specified by database.yml
|
77
|
-
[1m[36m (0.6ms)[0m [1mselect sqlite_version(*)[0m
|
78
|
-
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
79
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
80
|
-
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
81
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
82
|
-
Migrating to CreateServers (20120622135717)
|
83
|
-
[1m[35m (0.0ms)[0m begin transaction
|
84
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
85
|
-
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')
|
86
|
-
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
87
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
88
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
89
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("servers")
|
90
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
91
|
-
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
92
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
93
|
-
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
94
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
95
|
-
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
96
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
97
|
-
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
98
38
|
Connecting to database specified by database.yml
|
99
|
-
[1m[36m (0.
|
100
|
-
[1m[35m (1.
|
101
|
-
[1m[36m (
|
102
|
-
[1m[35m (
|
103
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
39
|
+
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
40
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
41
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
42
|
+
[1m[35m (3.6ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
104
43
|
Migrating to CreateServers (20120622135717)
|
105
|
-
[1m[
|
106
|
-
[1m[
|
107
|
-
[1m[
|
108
|
-
[1m[
|
109
|
-
[1m[
|
110
|
-
[1m[
|
111
|
-
[1m[
|
112
|
-
[1m[
|
113
|
-
[1m[
|
114
|
-
[1m[
|
115
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
116
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
117
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
44
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
46
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')[0m
|
47
|
+
[1m[35m (1.1ms)[0m commit transaction
|
48
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
49
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
50
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
51
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
52
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
53
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
118
54
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
119
55
|
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
data/test/dummy/log/test.log
CHANGED
@@ -1,337 +1,625 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
-
Connecting to database specified by database.yml
|
5
|
-
Connecting to database specified by database.yml
|
6
|
-
Connecting to database specified by database.yml
|
7
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
9
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
-
Connecting to database specified by database.yml
|
12
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
13
|
-
[1m[35m (1.6ms)[0m SAVEPOINT active_record_1
|
14
|
-
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
|
15
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
17
|
-
[1m[35m (0.1ms)[0m begin transaction
|
18
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
19
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
|
20
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
21
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
22
|
-
Connecting to database specified by database.yml
|
23
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
24
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
25
|
-
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
|
26
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
27
|
-
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
28
|
-
[1m[35m (0.1ms)[0m begin transaction
|
29
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
30
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
|
31
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
33
|
-
Connecting to database specified by database.yml
|
34
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
35
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36
|
-
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00]]
|
37
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
38
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
39
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:32:50.318470' WHERE "servers"."id" = 1
|
40
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
41
|
-
[1m[35m (1.6ms)[0m rollback transaction
|
42
2
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
43
|
-
[1m[
|
44
|
-
[1m[
|
45
|
-
[1m[35m (0.1ms)[0m
|
46
|
-
[1m[36m (0.4ms)[0m [
|
47
|
-
|
48
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
49
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
50
|
-
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
|
51
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
52
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
53
|
-
[1m[35m (0.4ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:33:50.364494' WHERE "servers"."id" = 1
|
54
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
-
[1m[35m (1.4ms)[0m rollback transaction
|
3
|
+
[1m[35mSQL (10.2ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00]]
|
4
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2013-06-01 22:14:16.525379' WHERE "servers"."id" = 1[0m
|
7
|
+
[1m[35m (3.0ms)[0m commit transaction
|
56
8
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
-
[1m[
|
58
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
|
59
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
60
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
61
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00]]
|
62
10
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
63
|
-
|
64
|
-
[1m[
|
65
|
-
[1m[35m (
|
66
|
-
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
|
67
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
68
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
69
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:22.376388' WHERE "servers"."id" = 1
|
70
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
71
|
-
[1m[35m (1.6ms)[0m rollback transaction
|
72
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
73
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
74
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
|
75
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
76
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
77
|
-
Connecting to database specified by database.yml
|
78
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
79
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
80
|
-
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
|
81
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:33.777347' WHERE "servers"."id" = 1
|
84
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
85
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
86
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
88
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
|
89
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
90
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
91
|
-
Connecting to database specified by database.yml
|
92
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
93
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
94
|
-
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
|
95
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
96
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:50.157970' WHERE "servers"."id" = 1
|
98
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
-
[1m[35m (1.6ms)[0m rollback transaction
|
100
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
101
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
102
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
|
103
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
104
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
105
|
-
Connecting to database specified by database.yml
|
106
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
107
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
108
|
-
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00]]
|
109
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
110
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
111
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:58.016351' WHERE "servers"."id" = 1
|
112
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
113
|
-
[1m[35m (1.4ms)[0m rollback transaction
|
11
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00]]
|
13
|
+
[1m[35m (6.4ms)[0m commit transaction
|
114
14
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
115
|
-
[1m[35m (0.
|
116
|
-
[1m[
|
117
|
-
[1m[35m (0.
|
118
|
-
[1m[
|
15
|
+
[1m[35m (0.4ms)[0m UPDATE "servers" SET "state" = 'crashed', "updated_at" = '2013-06-01 22:14:16.547687' WHERE "servers"."id" = 2
|
16
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:16 UTC +00:00]]
|
19
|
+
[1m[35m (0.8ms)[0m commit transaction
|
119
20
|
Connecting to database specified by database.yml
|
120
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
121
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
122
|
-
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
|
123
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
-
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:36:42.874011' WHERE "servers"."id" = 1
|
126
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
127
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
128
21
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
129
|
-
[1m[
|
130
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
|
131
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
132
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
133
|
-
Connecting to database specified by database.yml
|
134
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
135
|
-
[1m[35mSQL (3.2ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00]]
|
22
|
+
[1m[35mSQL (3.2ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00]]
|
136
23
|
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
137
|
-
[1m[35m (0.
|
138
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = '
|
139
|
-
[1m[35m (0.
|
24
|
+
[1m[35m (0.0ms)[0m begin transaction
|
25
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2013-06-01 22:14:26.675346' WHERE "servers"."id" = 1[0m
|
26
|
+
[1m[35m (0.9ms)[0m commit transaction
|
140
27
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141
|
-
[1m[35mSQL (0.
|
142
|
-
[1m[36m (0.
|
28
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00]]
|
29
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
30
|
+
[1m[35m (0.0ms)[0m begin transaction
|
31
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00]]
|
32
|
+
[1m[35m (1.4ms)[0m commit transaction
|
33
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35m (0.5ms)[0m UPDATE "servers" SET "state" = 'crashed', "updated_at" = '2013-06-01 22:14:26.684702' WHERE "servers"."id" = 2
|
35
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
36
|
+
[1m[35m (0.0ms)[0m begin transaction
|
37
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00], ["state", "running"], ["updated_at", Sat, 01 Jun 2013 22:14:26 UTC +00:00]]
|
38
|
+
[1m[35m (0.6ms)[0m commit transaction
|
143
39
|
Connecting to database specified by database.yml
|
144
40
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
145
|
-
[1m[35mSQL (
|
146
|
-
[1m[36m (
|
147
|
-
[1m[35m (0.
|
148
|
-
[1m[36m (0.
|
149
|
-
[1m[35m (
|
41
|
+
[1m[35mSQL (5.8ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00]]
|
42
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
43
|
+
[1m[35m (0.0ms)[0m begin transaction
|
44
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2013-07-24 06:43:51.699293' WHERE "servers"."id" = 1[0m
|
45
|
+
[1m[35m (0.9ms)[0m commit transaction
|
150
46
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
151
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at",
|
152
|
-
[1m[36m (0.
|
153
|
-
|
47
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00]]
|
48
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
49
|
+
[1m[35m (0.2ms)[0m begin transaction
|
50
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00]]
|
51
|
+
[1m[35m (0.6ms)[0m commit transaction
|
154
52
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
155
|
-
[1m[
|
156
|
-
[1m[36m (
|
157
|
-
[1m[35m (0.
|
158
|
-
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = '
|
159
|
-
[1m[35m (
|
53
|
+
[1m[35m (0.2ms)[0m UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2013-07-24 06:43:51.711309' WHERE "servers"."id" = 2
|
54
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m begin transaction
|
56
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'uninstalled', "updated_at" = '2013-07-24 06:43:51.713271' WHERE "servers"."id" = 2[0m
|
57
|
+
[1m[35m (0.5ms)[0m commit transaction
|
160
58
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
161
|
-
[1m[35mSQL (0.
|
162
|
-
[1m[36m (
|
163
|
-
|
59
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00]]
|
60
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
61
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'crashed', "updated_at" = '2013-07-24 06:43:51.717490' WHERE "servers"."id" = 3[0m
|
63
|
+
[1m[35m (0.5ms)[0m commit transaction
|
164
64
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
165
|
-
[1m[35mSQL (
|
65
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:43:51 UTC +00:00]]
|
166
66
|
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
67
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
68
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
Migrating to CreateServers (20120622135717)
|
167
71
|
[1m[35m (0.0ms)[0m begin transaction
|
168
|
-
[1m[36m (0.
|
169
|
-
[1m[
|
170
|
-
[1m[36m (0.
|
171
|
-
[1m[
|
72
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
73
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
74
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
75
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
76
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
77
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
78
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
79
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
80
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
81
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
82
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
83
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
84
|
+
Migrating to CreateServers (20120622135717)
|
85
|
+
[1m[35m (0.0ms)[0m begin transaction
|
86
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
87
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
88
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
89
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
90
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
91
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
92
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
93
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
94
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
95
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
96
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
97
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
98
|
+
Migrating to CreateServers (20120622135717)
|
99
|
+
[1m[35m (0.0ms)[0m begin transaction
|
100
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
101
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
172
102
|
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
173
|
-
|
103
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
104
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
105
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
106
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
107
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
108
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
109
|
+
--------------------------------------------------------------------
|
110
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
111
|
+
--------------------------------------------------------------------
|
174
112
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
175
|
-
[1m[35mSQL (3.
|
176
|
-
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
177
|
-
[1m[35m (0.0ms)[0m begin transaction
|
178
|
-
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:46:44.233785' WHERE "servers"."id" = 9[0m
|
179
|
-
[1m[35m (0.8ms)[0m commit transaction
|
180
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
181
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00]]
|
113
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
182
114
|
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
183
|
-
|
115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
116
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
117
|
+
[1m[35m (0.9ms)[0m commit transaction
|
118
|
+
------------------------------------------------------
|
119
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
120
|
+
------------------------------------------------------
|
121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
122
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
123
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
124
|
+
--------------------------------------------------------------------------
|
125
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
126
|
+
--------------------------------------------------------------------------
|
127
|
+
----------------------------------------------------------
|
128
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
129
|
+
----------------------------------------------------------
|
130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
132
|
+
[1m[35m (0.6ms)[0m commit transaction
|
184
133
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
185
|
-
[1m[35mSQL (
|
186
|
-
[1m[36m (
|
134
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
135
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
187
136
|
[1m[35m (0.0ms)[0m begin transaction
|
188
|
-
[1m[
|
189
|
-
[1m[35m (0.
|
137
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
138
|
+
[1m[35m (0.7ms)[0m commit transaction
|
139
|
+
--------------------------------------------------------------------
|
140
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
141
|
+
--------------------------------------------------------------------
|
190
142
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at",
|
192
|
-
[1m[36m (
|
193
|
-
|
143
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
144
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
146
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
147
|
+
[1m[35m (1.0ms)[0m commit transaction
|
148
|
+
---------------------------------------------------------------------
|
149
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
150
|
+
---------------------------------------------------------------------
|
194
151
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
195
|
-
[1m[35mSQL (
|
196
|
-
[1m[36m (1.
|
152
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:49:16 UTC +00:00]]
|
153
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
154
|
+
[1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
155
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
156
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
157
|
+
Migrating to CreateServers (20120622135717)
|
197
158
|
[1m[35m (0.0ms)[0m begin transaction
|
198
|
-
[1m[36m (0.
|
199
|
-
[1m[
|
200
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
201
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00]]
|
159
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
160
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
202
161
|
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
203
|
-
|
204
|
-
[1m[36m (
|
205
|
-
[1m[
|
206
|
-
[1m[36m (
|
162
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
163
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
164
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
165
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
166
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
167
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
168
|
+
--------------------------------------------------------------------
|
169
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
170
|
+
--------------------------------------------------------------------
|
171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
172
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
173
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
207
174
|
[1m[35m (0.0ms)[0m begin transaction
|
208
|
-
[1m[
|
175
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
176
|
+
[1m[35m (0.6ms)[0m commit transaction
|
177
|
+
------------------------------------------------------
|
178
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
179
|
+
------------------------------------------------------
|
180
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
181
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
182
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
183
|
+
--------------------------------------------------------------------------
|
184
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
185
|
+
--------------------------------------------------------------------------
|
186
|
+
----------------------------------------------------------
|
187
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
188
|
+
----------------------------------------------------------
|
189
|
+
[1m[35m (0.1ms)[0m begin transaction
|
190
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
209
191
|
[1m[35m (1.0ms)[0m commit transaction
|
210
192
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
211
|
-
[1m[
|
212
|
-
[1m[36m (0.
|
193
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
194
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
213
195
|
[1m[35m (0.0ms)[0m begin transaction
|
214
|
-
[1m[36mSQL (0.3ms)[0m [
|
196
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
215
197
|
[1m[35m (0.9ms)[0m commit transaction
|
198
|
+
--------------------------------------------------------------------
|
199
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
200
|
+
--------------------------------------------------------------------
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
203
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
205
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
206
|
+
[1m[35m (1.0ms)[0m commit transaction
|
207
|
+
---------------------------------------------------------------------
|
208
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
209
|
+
---------------------------------------------------------------------
|
216
210
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
-
[1m[
|
218
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
219
|
-
Connecting to database specified by database.yml
|
220
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
221
|
-
[1m[35mSQL (6.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00]]
|
211
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:04 UTC +00:00]]
|
222
212
|
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
213
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
214
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
215
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
216
|
+
Migrating to CreateServers (20120622135717)
|
223
217
|
[1m[35m (0.0ms)[0m begin transaction
|
224
|
-
[1m[36m (0.3ms)[0m [
|
218
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
219
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
220
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
221
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
222
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
223
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
224
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
225
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
226
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
227
|
+
--------------------------------------------------------------------
|
228
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
229
|
+
--------------------------------------------------------------------
|
230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
232
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
233
|
+
[1m[35m (0.1ms)[0m begin transaction
|
234
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
225
235
|
[1m[35m (0.6ms)[0m commit transaction
|
236
|
+
------------------------------------------------------
|
237
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
238
|
+
------------------------------------------------------
|
226
239
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
227
|
-
[1m[35mSQL (0.
|
228
|
-
[1m[36m (0.
|
229
|
-
|
240
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
241
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
242
|
+
--------------------------------------------------------------------------
|
243
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
244
|
+
--------------------------------------------------------------------------
|
245
|
+
----------------------------------------------------------
|
246
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
247
|
+
----------------------------------------------------------
|
248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
249
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
250
|
+
[1m[35m (0.5ms)[0m commit transaction
|
230
251
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231
|
-
[1m[35mSQL (
|
232
|
-
[1m[36m (
|
233
|
-
[1m[35m (0.
|
234
|
-
[1m[
|
235
|
-
[1m[35m (
|
252
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
253
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
255
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
256
|
+
[1m[35m (1.2ms)[0m commit transaction
|
257
|
+
--------------------------------------------------------------------
|
258
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
259
|
+
--------------------------------------------------------------------
|
236
260
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
-
[1m[35mSQL (0.
|
261
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
238
262
|
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
239
|
-
Connecting to database specified by database.yml
|
240
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241
|
-
[1m[35mSQL (10.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00]]
|
242
|
-
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
243
263
|
[1m[35m (0.0ms)[0m begin transaction
|
244
|
-
[1m[
|
264
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
245
265
|
[1m[35m (1.1ms)[0m commit transaction
|
266
|
+
---------------------------------------------------------------------
|
267
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
268
|
+
---------------------------------------------------------------------
|
246
269
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
247
|
-
[1m[35mSQL (0.
|
248
|
-
[1m[36m (0.
|
249
|
-
|
250
|
-
[1m[
|
251
|
-
[1m[
|
252
|
-
|
253
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
254
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
255
|
-
[1m[35m (0.5ms)[0m UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:21:45.041318' WHERE "servers"."id" = 23
|
256
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
258
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
259
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
260
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00]]
|
261
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
262
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
263
|
-
Connecting to database specified by database.yml
|
264
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
265
|
-
[1m[35mSQL (7.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
|
266
|
-
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
270
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:50:54 UTC +00:00]]
|
271
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
272
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
273
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
+
Migrating to CreateServers (20120622135717)
|
267
276
|
[1m[35m (0.0ms)[0m begin transaction
|
268
|
-
[1m[36m (0.3ms)[0m [
|
269
|
-
[1m[
|
270
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
271
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
|
272
|
-
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
273
|
-
Connecting to database specified by database.yml
|
274
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
275
|
-
[1m[35mSQL (5.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:58:05 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:58:05 UTC +00:00]]
|
277
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
278
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
276
279
|
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
277
|
-
[1m[
|
278
|
-
[1m[36m (
|
279
|
-
[1m[35m (
|
280
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
281
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
282
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
283
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
284
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
285
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
286
|
+
--------------------------------------------------------------------
|
287
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
288
|
+
--------------------------------------------------------------------
|
280
289
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
281
|
-
[1m[35mSQL (
|
282
|
-
[1m[36m (
|
283
|
-
Connecting to database specified by database.yml
|
284
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
285
|
-
[1m[35mSQL (5.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Jul 2012 21:11:10 UTC +00:00], ["state", "running"], ["updated_at", Wed, 18 Jul 2012 21:11:10 UTC +00:00]]
|
286
|
-
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
290
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
291
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
287
292
|
[1m[35m (0.0ms)[0m begin transaction
|
288
|
-
[1m[
|
289
|
-
[1m[35m (
|
293
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
294
|
+
[1m[35m (1.1ms)[0m commit transaction
|
295
|
+
------------------------------------------------------
|
296
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
297
|
+
------------------------------------------------------
|
290
298
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
291
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed,
|
292
|
-
[1m[36m (0.
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
300
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
301
|
+
--------------------------------------------------------------------------
|
302
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
303
|
+
--------------------------------------------------------------------------
|
304
|
+
----------------------------------------------------------
|
305
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
306
|
+
----------------------------------------------------------
|
307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
308
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
299
309
|
[1m[35m (1.1ms)[0m commit transaction
|
300
310
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
301
|
-
[1m[35mSQL (0.
|
311
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
302
312
|
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
303
|
-
|
313
|
+
[1m[35m (0.0ms)[0m begin transaction
|
314
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
315
|
+
[1m[35m (1.2ms)[0m commit transaction
|
316
|
+
--------------------------------------------------------------------
|
317
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
318
|
+
--------------------------------------------------------------------
|
304
319
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
305
|
-
[1m[35mSQL (
|
320
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
306
321
|
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
307
322
|
[1m[35m (0.0ms)[0m begin transaction
|
308
|
-
[1m[
|
323
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
309
324
|
[1m[35m (0.9ms)[0m commit transaction
|
325
|
+
---------------------------------------------------------------------
|
326
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
327
|
+
---------------------------------------------------------------------
|
328
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:12 UTC +00:00]]
|
330
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
331
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
332
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
333
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
334
|
+
Migrating to CreateServers (20120622135717)
|
335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
336
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
337
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
338
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
339
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
340
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
341
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
342
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
343
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
344
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
345
|
+
--------------------------------------------------------------------
|
346
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
347
|
+
--------------------------------------------------------------------
|
310
348
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
311
|
-
[1m[35mSQL (
|
349
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
350
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
351
|
+
[1m[35m (0.1ms)[0m begin transaction
|
352
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
353
|
+
[1m[35m (1.0ms)[0m commit transaction
|
354
|
+
------------------------------------------------------
|
355
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
356
|
+
------------------------------------------------------
|
357
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
358
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
359
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
360
|
+
--------------------------------------------------------------------------
|
361
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
362
|
+
--------------------------------------------------------------------------
|
363
|
+
----------------------------------------------------------
|
364
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
365
|
+
----------------------------------------------------------
|
366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
367
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
368
|
+
[1m[35m (1.0ms)[0m commit transaction
|
369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
370
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
312
371
|
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
313
372
|
[1m[35m (0.0ms)[0m begin transaction
|
314
|
-
[1m[
|
315
|
-
[1m[35m (
|
373
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
374
|
+
[1m[35m (1.0ms)[0m commit transaction
|
375
|
+
--------------------------------------------------------------------
|
376
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
377
|
+
--------------------------------------------------------------------
|
316
378
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
317
|
-
[1m[35mSQL (0.
|
318
|
-
[1m[36m (1.
|
319
|
-
|
379
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
380
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
382
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
383
|
+
[1m[35m (1.0ms)[0m commit transaction
|
384
|
+
---------------------------------------------------------------------
|
385
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
386
|
+
---------------------------------------------------------------------
|
320
387
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
321
|
-
[1m[35mSQL (
|
322
|
-
[1m[36m (0.
|
388
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:51:40 UTC +00:00]]
|
389
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
390
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
391
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
392
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
393
|
+
Migrating to CreateServers (20120622135717)
|
323
394
|
[1m[35m (0.0ms)[0m begin transaction
|
324
|
-
[1m[36m (0.3ms)[0m [
|
395
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
396
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
397
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
398
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
399
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
400
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
401
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
402
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
403
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
404
|
+
--------------------------------------------------------------------
|
405
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
406
|
+
--------------------------------------------------------------------
|
407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
408
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
409
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
411
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
325
412
|
[1m[35m (0.9ms)[0m commit transaction
|
413
|
+
------------------------------------------------------
|
414
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
415
|
+
------------------------------------------------------
|
416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
417
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
418
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
419
|
+
--------------------------------------------------------------------------
|
420
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
421
|
+
--------------------------------------------------------------------------
|
422
|
+
----------------------------------------------------------
|
423
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
424
|
+
----------------------------------------------------------
|
425
|
+
[1m[35m (0.1ms)[0m begin transaction
|
426
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
427
|
+
[1m[35m (0.6ms)[0m commit transaction
|
326
428
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
327
|
-
[1m[35mSQL (0.
|
328
|
-
[1m[36m (0.
|
429
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
430
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
431
|
+
[1m[35m (0.0ms)[0m begin transaction
|
432
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
433
|
+
[1m[35m (0.9ms)[0m commit transaction
|
434
|
+
--------------------------------------------------------------------
|
435
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
436
|
+
--------------------------------------------------------------------
|
437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
438
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
439
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
329
440
|
[1m[35m (0.0ms)[0m begin transaction
|
330
|
-
[1m[36mSQL (0.
|
441
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
442
|
+
[1m[35m (0.9ms)[0m commit transaction
|
443
|
+
---------------------------------------------------------------------
|
444
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
445
|
+
---------------------------------------------------------------------
|
446
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
447
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:03 UTC +00:00]]
|
448
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
449
|
+
[1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
450
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
451
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
452
|
+
Migrating to CreateServers (20120622135717)
|
453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
454
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
455
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
456
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
457
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
458
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
459
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
460
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
461
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
462
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
463
|
+
--------------------------------------------------------------------
|
464
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
465
|
+
--------------------------------------------------------------------
|
466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
467
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
468
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
469
|
+
[1m[35m (0.1ms)[0m begin transaction
|
470
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
331
471
|
[1m[35m (0.7ms)[0m commit transaction
|
472
|
+
------------------------------------------------------
|
473
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
474
|
+
------------------------------------------------------
|
475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
476
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
477
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
478
|
+
--------------------------------------------------------------------------
|
479
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
480
|
+
--------------------------------------------------------------------------
|
481
|
+
----------------------------------------------------------
|
482
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
483
|
+
----------------------------------------------------------
|
484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
485
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
486
|
+
[1m[35m (0.6ms)[0m commit transaction
|
332
487
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
333
|
-
[1m[
|
488
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
334
489
|
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
490
|
+
[1m[35m (0.1ms)[0m begin transaction
|
491
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
492
|
+
[1m[35m (0.9ms)[0m commit transaction
|
493
|
+
--------------------------------------------------------------------
|
494
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
495
|
+
--------------------------------------------------------------------
|
496
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
497
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
498
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
335
499
|
[1m[35m (0.0ms)[0m begin transaction
|
336
|
-
[1m[36mSQL (0.
|
500
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
501
|
+
[1m[35m (1.0ms)[0m commit transaction
|
502
|
+
---------------------------------------------------------------------
|
503
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
504
|
+
---------------------------------------------------------------------
|
505
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
506
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:44 UTC +00:00]]
|
507
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
508
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
509
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
510
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
511
|
+
Migrating to CreateServers (20120622135717)
|
512
|
+
[1m[35m (0.1ms)[0m begin transaction
|
513
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
514
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
515
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
516
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
517
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
518
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
519
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
520
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
521
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
522
|
+
--------------------------------------------------------------------
|
523
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
524
|
+
--------------------------------------------------------------------
|
525
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
526
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
527
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
529
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
530
|
+
[1m[35m (0.6ms)[0m commit transaction
|
531
|
+
------------------------------------------------------
|
532
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
533
|
+
------------------------------------------------------
|
534
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
535
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
536
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
537
|
+
--------------------------------------------------------------------------
|
538
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
539
|
+
--------------------------------------------------------------------------
|
540
|
+
----------------------------------------------------------
|
541
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
542
|
+
----------------------------------------------------------
|
543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
544
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
545
|
+
[1m[35m (0.7ms)[0m commit transaction
|
546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
547
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
548
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
549
|
+
[1m[35m (0.1ms)[0m begin transaction
|
550
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
551
|
+
[1m[35m (1.1ms)[0m commit transaction
|
552
|
+
--------------------------------------------------------------------
|
553
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
554
|
+
--------------------------------------------------------------------
|
555
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
556
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
557
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
559
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
560
|
+
[1m[35m (1.1ms)[0m commit transaction
|
561
|
+
---------------------------------------------------------------------
|
562
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
563
|
+
---------------------------------------------------------------------
|
564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
565
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:52:53 UTC +00:00]]
|
566
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
567
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
568
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
569
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
570
|
+
Migrating to CreateServers (20120622135717)
|
571
|
+
[1m[35m (0.1ms)[0m begin transaction
|
572
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
573
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
574
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
575
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
576
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
577
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
578
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
579
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
580
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
581
|
+
--------------------------------------------------------------------
|
582
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
583
|
+
--------------------------------------------------------------------
|
584
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
585
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
586
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
587
|
+
[1m[35m (0.1ms)[0m begin transaction
|
588
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
589
|
+
[1m[35m (1.1ms)[0m commit transaction
|
590
|
+
------------------------------------------------------
|
591
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
592
|
+
------------------------------------------------------
|
593
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
594
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
595
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
596
|
+
--------------------------------------------------------------------------
|
597
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
598
|
+
--------------------------------------------------------------------------
|
599
|
+
----------------------------------------------------------
|
600
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
601
|
+
----------------------------------------------------------
|
602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
603
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
337
604
|
[1m[35m (1.0ms)[0m commit transaction
|
605
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
606
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
607
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
608
|
+
[1m[35m (0.1ms)[0m begin transaction
|
609
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
610
|
+
[1m[35m (0.8ms)[0m commit transaction
|
611
|
+
--------------------------------------------------------------------
|
612
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
613
|
+
--------------------------------------------------------------------
|
614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
615
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
616
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
617
|
+
[1m[35m (0.0ms)[0m begin transaction
|
618
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
619
|
+
[1m[35m (0.8ms)[0m commit transaction
|
620
|
+
---------------------------------------------------------------------
|
621
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
622
|
+
---------------------------------------------------------------------
|
623
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
624
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00], ["state", "running"], ["updated_at", Wed, 24 Jul 2013 06:53:11 UTC +00:00]]
|
625
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|