activator 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/lib/activator.rb +36 -0
  5. data/lib/activator/version.rb +3 -0
  6. data/lib/tasks/activator_tasks.rake +4 -0
  7. data/test/activator_test.rb +50 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +5 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/project.rb +3 -0
  15. data/test/dummy/app/models/user.rb +2 -0
  16. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  17. data/test/dummy/bin/bundle +3 -0
  18. data/test/dummy/bin/rails +4 -0
  19. data/test/dummy/bin/rake +4 -0
  20. data/test/dummy/config.ru +4 -0
  21. data/test/dummy/config/application.rb +23 -0
  22. data/test/dummy/config/boot.rb +5 -0
  23. data/test/dummy/config/database.yml +25 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +29 -0
  26. data/test/dummy/config/environments/production.rb +80 -0
  27. data/test/dummy/config/environments/test.rb +36 -0
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/test/dummy/config/initializers/inflections.rb +16 -0
  31. data/test/dummy/config/initializers/mime_types.rb +5 -0
  32. data/test/dummy/config/initializers/secret_token.rb +12 -0
  33. data/test/dummy/config/initializers/session_store.rb +3 -0
  34. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  35. data/test/dummy/config/locales/en.yml +23 -0
  36. data/test/dummy/config/routes.rb +56 -0
  37. data/test/dummy/db/development.sqlite3 +0 -0
  38. data/test/dummy/db/migrate/20140424234705_create_projects.rb +9 -0
  39. data/test/dummy/db/migrate/20140425024510_create_users.rb +8 -0
  40. data/test/dummy/db/schema.rb +27 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
  42. data/test/dummy/log/development.log +52 -0
  43. data/test/dummy/log/test.log +1660 -0
  44. data/test/dummy/public/404.html +58 -0
  45. data/test/dummy/public/422.html +58 -0
  46. data/test/dummy/public/500.html +57 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/test/fixtures/projects.yml +7 -0
  49. data/test/dummy/test/fixtures/users.yml +11 -0
  50. data/test/dummy/test/models/project_test.rb +7 -0
  51. data/test/dummy/test/models/user_test.rb +7 -0
  52. data/test/test_helper.rb +15 -0
  53. metadata +169 -0
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'd9757108f849eff47d49b2e44184f2c02a0687a4eedcacce6ae49c8da807614ec1ee336470690fae1443dd109abe4cec0861eb67f38f2095d6940943ab6e84fc'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
Binary file
@@ -0,0 +1,9 @@
1
+ class CreateProjects < ActiveRecord::Migration
2
+ def change
3
+ create_table :projects do |t|
4
+ t.boolean :active
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140425024510) do
15
+
16
+ create_table "projects", force: true do |t|
17
+ t.boolean "active"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ create_table "users", force: true do |t|
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ end
Binary file
@@ -0,0 +1,52 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateProjects (20140424232258)
5
+  (0.1ms) begin transaction
6
+  (0.4ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140424232258"]]
8
+  (0.7ms) commit transaction
9
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
11
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ Migrating to CreateProjects (20140424234705)
14
+  (0.1ms) begin transaction
15
+  (0.5ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) 
16
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140424234705"]]
17
+  (0.6ms) commit transaction
18
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+  (1.0ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) 
20
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
21
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22
+  (0.1ms) SELECT version FROM "schema_migrations"
23
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140424234705')
24
+ Project Load (0.8ms) SELECT "projects".* FROM "projects"
25
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+ Migrating to CreateUsers (20140425024510)
27
+  (0.1ms) begin transaction
28
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
29
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
30
+  (0.4ms) rollback transaction
31
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ Migrating to CreateUsers (20140425024510)
33
+  (0.1ms) begin transaction
34
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
35
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
36
+  (1.2ms) rollback transaction
37
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ Migrating to CreateUsers (20140425024510)
39
+  (0.1ms) begin transaction
40
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
41
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
42
+  (1.5ms) commit transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
46
+  (2.1ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) 
47
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
48
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
49
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
50
+  (0.1ms) SELECT version FROM "schema_migrations"
51
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140425024510')
52
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140424234705')
@@ -0,0 +1,1660 @@
1
+  (0.2ms) begin transaction
2
+ -------------------------
3
+ ActivatorTest: test_truth
4
+ -------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.4ms) begin transaction
7
+ -------------------------
8
+ ActivatorTest: test_truth
9
+ -------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.2ms) begin transaction
12
+ -------------------------
13
+ ActivatorTest: test_truth
14
+ -------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.2ms) begin transaction
17
+ -------------------------------------------
18
+ ActAsActivatortest: test_that_it_does_stuff
19
+ -------------------------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.2ms) begin transaction
22
+ -------------------------------------------
23
+ ActAsActivatortest: test_that_it_does_stuff
24
+ -------------------------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.2ms) begin transaction
27
+ -------------------------------------------
28
+ ActAsActivatortest: test_that_it_does_stuff
29
+ -------------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.2ms) begin transaction
32
+ -------------------------------------------
33
+ ActAsActivatortest: test_that_it_does_stuff
34
+ -------------------------------------------
35
+  (0.1ms) rollback transaction
36
+  (0.2ms) begin transaction
37
+ -------------------------------------------
38
+ ActAsActivatortest: test_that_it_does_stuff
39
+ -------------------------------------------
40
+  (0.1ms) rollback transaction
41
+  (0.2ms) begin transaction
42
+ -------------------------------------------
43
+ ActAsActivatortest: test_that_it_does_stuff
44
+ -------------------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.2ms) begin transaction
47
+ -------------------------------------------
48
+ ActAsActivatortest: test_that_it_does_stuff
49
+ -------------------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.2ms) begin transaction
52
+ -------------------------
53
+ ActivatorTest: test_truth
54
+ -------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.2ms) begin transaction
57
+ --------------------------
58
+ ActivatorTest: test_things
59
+ --------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ -------------------------
63
+ ActivatorTest: test_truth
64
+ -------------------------
65
+  (0.0ms) rollback transaction
66
+  (0.3ms) begin transaction
67
+ --------------------------
68
+ ActivatorTest: test_things
69
+ --------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+ -------------------------
73
+ ActivatorTest: test_truth
74
+ -------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.2ms) begin transaction
77
+ --------------------------
78
+ ActivatorTest: test_things
79
+ --------------------------
80
+  (0.0ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+ -------------------------
83
+ ActivatorTest: test_truth
84
+ -------------------------
85
+  (0.0ms) rollback transaction
86
+  (0.2ms) begin transaction
87
+ --------------------------
88
+ ActivatorTest: test_things
89
+ --------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.0ms) begin transaction
92
+ -------------------------
93
+ ActivatorTest: test_truth
94
+ -------------------------
95
+  (0.0ms) rollback transaction
96
+  (0.2ms) begin transaction
97
+ --------------------------
98
+ ActivatorTest: test_things
99
+ --------------------------
100
+  (0.0ms) rollback transaction
101
+  (0.0ms) begin transaction
102
+ -------------------------
103
+ ActivatorTest: test_truth
104
+ -------------------------
105
+  (0.0ms) rollback transaction
106
+  (0.2ms) begin transaction
107
+ -------------------------
108
+ ActivatorTest: test_truth
109
+ -------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.3ms) begin transaction
112
+ -------------------------
113
+ ActivatorTest: test_truth
114
+ -------------------------
115
+  (0.1ms) rollback transaction
116
+  (0.2ms) begin transaction
117
+ -------------------------
118
+ ActivatorTest: test_truth
119
+ -------------------------
120
+  (0.0ms) SAVEPOINT active_record_1
121
+ SQL (6.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:49:31 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:49:31 UTC +00:00]]
122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
123
+  (0.4ms) rollback transaction
124
+  (0.3ms) begin transaction
125
+ -------------------------
126
+ ActivatorTest: test_truth
127
+ -------------------------
128
+  (0.0ms) SAVEPOINT active_record_1
129
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:49:50 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:49:50 UTC +00:00]]
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+  (1.1ms) rollback transaction
132
+  (0.2ms) begin transaction
133
+ -------------------------
134
+ ActivatorTest: test_truth
135
+ -------------------------
136
+  (0.0ms) SAVEPOINT active_record_1
137
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:50:02 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:50:02 UTC +00:00]]
138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139
+  (0.9ms) rollback transaction
140
+  (0.2ms) begin transaction
141
+ -------------------------
142
+ ActivatorTest: test_truth
143
+ -------------------------
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:50:07 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:50:07 UTC +00:00]]
146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
147
+  (1.2ms) rollback transaction
148
+  (0.2ms) begin transaction
149
+ -------------------------
150
+ ActivatorTest: test_truth
151
+ -------------------------
152
+  (0.0ms) rollback transaction
153
+  (0.3ms) begin transaction
154
+ -------------------------
155
+ ActivatorTest: test_truth
156
+ -------------------------
157
+  (0.1ms) rollback transaction
158
+  (0.2ms) begin transaction
159
+ -------------------------
160
+ ActivatorTest: test_truth
161
+ -------------------------
162
+  (0.0ms) SAVEPOINT active_record_1
163
+ SQL (2.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:51:53 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:51:53 UTC +00:00]]
164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
165
+  (0.8ms) rollback transaction
166
+  (0.4ms) begin transaction
167
+ -------------------------
168
+ ActivatorTest: test_truth
169
+ -------------------------
170
+  (0.1ms) SAVEPOINT active_record_1
171
+ SQL (2.3ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:52:02 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:52:02 UTC +00:00]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+  (0.9ms) rollback transaction
174
+  (0.2ms) begin transaction
175
+ -------------------------
176
+ ActivatorTest: test_truth
177
+ -------------------------
178
+  (0.0ms) rollback transaction
179
+  (0.2ms) begin transaction
180
+ -------------------------
181
+ ActivatorTest: test_truth
182
+ -------------------------
183
+  (0.0ms) SAVEPOINT active_record_1
184
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:53:27 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:53:27 UTC +00:00]]
185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
186
+  (1.1ms) rollback transaction
187
+  (0.2ms) begin transaction
188
+ -------------------------
189
+ ActivatorTest: test_truth
190
+ -------------------------
191
+  (0.0ms) SAVEPOINT active_record_1
192
+ SQL (2.4ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:53:34 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:53:34 UTC +00:00]]
193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
194
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
195
+  (0.4ms) rollback transaction
196
+  (0.2ms) begin transaction
197
+ -------------------------
198
+ ActivatorTest: test_truth
199
+ -------------------------
200
+  (0.1ms) SAVEPOINT active_record_1
201
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Thu, 24 Apr 2014 23:53:41 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:53:41 UTC +00:00]]
202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
203
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
204
+  (1.0ms) rollback transaction
205
+  (0.3ms) begin transaction
206
+ -------------------------
207
+ ActivatorTest: test_truth
208
+ -------------------------
209
+  (0.0ms) SAVEPOINT active_record_1
210
+ SQL (3.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:53:47 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:53:47 UTC +00:00]]
211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
213
+  (0.9ms) rollback transaction
214
+  (0.2ms) begin transaction
215
+ -------------------------
216
+ ActivatorTest: test_truth
217
+ -------------------------
218
+  (0.0ms) SAVEPOINT active_record_1
219
+ SQL (1.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:54:21 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:54:21 UTC +00:00]]
220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
221
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."@_active" = 't' LIMIT 1
222
+ SQLite3::SQLException: no such column: projects.@_active: SELECT "projects".* FROM "projects" WHERE "projects"."@_active" = 't' LIMIT 1
223
+  (0.9ms) rollback transaction
224
+  (0.2ms) begin transaction
225
+ -------------------------
226
+ ActivatorTest: test_truth
227
+ -------------------------
228
+  (0.0ms) SAVEPOINT active_record_1
229
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 24 Apr 2014 23:54:34 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:54:34 UTC +00:00]]
230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
232
+  (0.8ms) rollback transaction
233
+  (0.2ms) begin transaction
234
+ -------------------------
235
+ ActivatorTest: test_truth
236
+ -------------------------
237
+  (0.0ms) SAVEPOINT active_record_1
238
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Thu, 24 Apr 2014 23:54:39 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:54:39 UTC +00:00]]
239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
241
+  (1.1ms) rollback transaction
242
+  (0.2ms) begin transaction
243
+ -------------------------
244
+ ActivatorTest: test_truth
245
+ -------------------------
246
+  (0.0ms) SAVEPOINT active_record_1
247
+ SQL (2.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Thu, 24 Apr 2014 23:54:54 UTC +00:00], ["updated_at", Thu, 24 Apr 2014 23:54:54 UTC +00:00]]
248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
249
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
250
+  (1.1ms) rollback transaction
251
+  (0.3ms) begin transaction
252
+ -------------------------
253
+ ActivatorTest: test_truth
254
+ -------------------------
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (2.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:01:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:01:17 UTC +00:00]]
257
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
258
+  (1.1ms) rollback transaction
259
+  (0.2ms) begin transaction
260
+ -------------------------
261
+ ActivatorTest: test_truth
262
+ -------------------------
263
+  (0.0ms) SAVEPOINT active_record_1
264
+ SQL (2.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:01:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:01:40 UTC +00:00]]
265
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
266
+  (0.8ms) rollback transaction
267
+  (0.2ms) begin transaction
268
+ -------------------------
269
+ ActivatorTest: test_truth
270
+ -------------------------
271
+  (0.0ms) SAVEPOINT active_record_1
272
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:01:52 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:01:52 UTC +00:00]]
273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
275
+  (0.9ms) rollback transaction
276
+  (0.2ms) begin transaction
277
+ -------------------------
278
+ ActivatorTest: test_truth
279
+ -------------------------
280
+  (0.0ms) SAVEPOINT active_record_1
281
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:03:10 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:03:10 UTC +00:00]]
282
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
283
+  (0.8ms) rollback transaction
284
+  (0.3ms) begin transaction
285
+ -------------------------
286
+ ActivatorTest: test_truth
287
+ -------------------------
288
+  (0.1ms) SAVEPOINT active_record_1
289
+ SQL (2.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:03:26 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:03:26 UTC +00:00]]
290
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
292
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
293
+  (0.5ms) rollback transaction
294
+  (0.3ms) begin transaction
295
+ -------------------------
296
+ ActivatorTest: test_truth
297
+ -------------------------
298
+  (0.0ms) SAVEPOINT active_record_1
299
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:03:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:03:36 UTC +00:00]]
300
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
302
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
303
+  (1.1ms) rollback transaction
304
+  (0.2ms) begin transaction
305
+ -------------------------
306
+ ActivatorTest: test_truth
307
+ -------------------------
308
+  (0.0ms) SAVEPOINT active_record_1
309
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:03:55 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:03:55 UTC +00:00]]
310
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
312
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
313
+  (0.9ms) rollback transaction
314
+  (0.2ms) begin transaction
315
+ -------------------------
316
+ ActivatorTest: test_truth
317
+ -------------------------
318
+  (0.0ms) SAVEPOINT active_record_1
319
+ SQL (2.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00]]
320
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
323
+  (0.1ms) SAVEPOINT active_record_1
324
+ SQL (1.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00]]
325
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
326
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00]]
327
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
328
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:04:15 UTC +00:00]]
329
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
331
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
332
+  (1.2ms) rollback transaction
333
+  (0.3ms) begin transaction
334
+ -------------------------
335
+ ActivatorTest: test_truth
336
+ -------------------------
337
+  (0.0ms) SAVEPOINT active_record_1
338
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00]]
339
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
342
+  (0.0ms) SAVEPOINT active_record_1
343
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00]]
344
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
345
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00]]
346
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
347
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:04:27 UTC +00:00]]
348
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
350
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
351
+  (1.2ms) rollback transaction
352
+  (0.2ms) begin transaction
353
+ ------------------------------------------------
354
+ ActivatorTest: test_it_can_find_the_active_items
355
+ ------------------------------------------------
356
+  (0.0ms) SAVEPOINT active_record_1
357
+ SQL (1.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
358
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
360
+  (0.0ms) SAVEPOINT active_record_1
361
+ SQL (1.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
362
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
364
+  (1.1ms) rollback transaction
365
+  (0.1ms) begin transaction
366
+ --------------------------------------------
367
+ ActivatorTest: test_it_deactivates_old_items
368
+ --------------------------------------------
369
+  (0.0ms) SAVEPOINT active_record_1
370
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
371
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
373
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
374
+  (0.1ms) SAVEPOINT active_record_1
375
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
376
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
377
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
378
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
379
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:21 UTC +00:00]]
380
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
382
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
383
+  (0.5ms) rollback transaction
384
+  (0.2ms) begin transaction
385
+ ------------------------------------------------
386
+ ActivatorTest: test_it_can_find_the_active_items
387
+ ------------------------------------------------
388
+  (0.0ms) SAVEPOINT active_record_1
389
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
390
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
392
+  (0.0ms) SAVEPOINT active_record_1
393
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
394
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
396
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
397
+  (1.1ms) rollback transaction
398
+  (0.2ms) begin transaction
399
+ --------------------------------------------
400
+ ActivatorTest: test_it_deactivates_old_items
401
+ --------------------------------------------
402
+  (0.1ms) SAVEPOINT active_record_1
403
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
404
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
406
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
407
+  (0.0ms) SAVEPOINT active_record_1
408
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
409
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
410
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
411
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
412
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
413
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
415
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
416
+  (0.5ms) rollback transaction
417
+  (0.2ms) begin transaction
418
+ ------------------------------------------------
419
+ ActivatorTest: test_it_can_find_the_active_items
420
+ ------------------------------------------------
421
+  (0.0ms) SAVEPOINT active_record_1
422
+ SQL (1.9ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 00:06:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:40 UTC +00:00]]
423
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
425
+  (0.0ms) SAVEPOINT active_record_1
426
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:06:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:06:40 UTC +00:00]]
427
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
429
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
430
+  (1.1ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+ --------------------------------------------
433
+ ActivatorTest: test_it_deactivates_old_items
434
+ --------------------------------------------
435
+  (0.0ms) rollback transaction
436
+  (0.2ms) begin transaction
437
+ ------------------------------------------------
438
+ ActivatorTest: test_it_can_find_the_active_items
439
+ ------------------------------------------------
440
+  (0.0ms) SAVEPOINT active_record_1
441
+ SQL (1.8ms) INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00]]
442
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
444
+  (0.0ms) SAVEPOINT active_record_1
445
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00]]
446
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
448
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
449
+  (1.2ms) rollback transaction
450
+  (0.1ms) begin transaction
451
+ --------------------------------------------
452
+ ActivatorTest: test_it_deactivates_old_items
453
+ --------------------------------------------
454
+  (0.0ms) SAVEPOINT active_record_1
455
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:02 UTC +00:00]]
456
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
458
+  (0.4ms) rollback transaction
459
+  (0.2ms) begin transaction
460
+ ------------------------------------------------
461
+ ActivatorTest: test_it_can_find_the_active_items
462
+ ------------------------------------------------
463
+  (0.0ms) SAVEPOINT active_record_1
464
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
465
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
467
+  (0.0ms) SAVEPOINT active_record_1
468
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
469
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
471
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
472
+  (1.1ms) rollback transaction
473
+  (0.2ms) begin transaction
474
+ --------------------------------------------
475
+ ActivatorTest: test_it_deactivates_old_items
476
+ --------------------------------------------
477
+  (0.0ms) SAVEPOINT active_record_1
478
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
479
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
481
+  (0.0ms) SAVEPOINT active_record_1
482
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
483
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
484
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
485
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
486
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:28 UTC +00:00]]
487
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
489
+  (0.5ms) rollback transaction
490
+  (0.2ms) begin transaction
491
+ ------------------------------------------------
492
+ ActivatorTest: test_it_can_find_the_active_items
493
+ ------------------------------------------------
494
+  (0.0ms) SAVEPOINT active_record_1
495
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
496
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
498
+  (0.0ms) SAVEPOINT active_record_1
499
+ SQL (0.7ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
500
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
502
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
503
+  (1.2ms) rollback transaction
504
+  (0.1ms) begin transaction
505
+ --------------------------------------------
506
+ ActivatorTest: test_it_deactivates_old_items
507
+ --------------------------------------------
508
+  (0.0ms) SAVEPOINT active_record_1
509
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
510
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
512
+  (0.0ms) SAVEPOINT active_record_1
513
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
514
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
515
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
516
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
517
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:46 UTC +00:00]]
518
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
520
+  (0.4ms) rollback transaction
521
+  (0.2ms) begin transaction
522
+ ------------------------------------------------
523
+ ActivatorTest: test_it_can_find_the_active_items
524
+ ------------------------------------------------
525
+  (0.0ms) SAVEPOINT active_record_1
526
+ SQL (2.0ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
527
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
531
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
533
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
534
+  (0.5ms) rollback transaction
535
+  (0.1ms) begin transaction
536
+ --------------------------------------------
537
+ ActivatorTest: test_it_deactivates_old_items
538
+ --------------------------------------------
539
+  (0.1ms) SAVEPOINT active_record_1
540
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
541
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
543
+  (0.0ms) SAVEPOINT active_record_1
544
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
545
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
546
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
547
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
548
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:07:56 UTC +00:00]]
549
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
551
+  (0.5ms) rollback transaction
552
+  (0.3ms) begin transaction
553
+ ------------------------------------------------
554
+ ActivatorTest: test_it_can_find_the_active_items
555
+ ------------------------------------------------
556
+  (0.1ms) SAVEPOINT active_record_1
557
+ SQL (4.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
558
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
560
+  (0.1ms) SAVEPOINT active_record_1
561
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
562
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
564
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
565
+  (1.1ms) rollback transaction
566
+  (0.1ms) begin transaction
567
+ --------------------------------------------
568
+ ActivatorTest: test_it_deactivates_old_items
569
+ --------------------------------------------
570
+  (0.1ms) SAVEPOINT active_record_1
571
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
572
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+  (0.1ms) SAVEPOINT active_record_1
575
+ SQL (0.6ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
576
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
577
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
578
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
579
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:08:03 UTC +00:00]]
580
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
582
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
583
+  (0.5ms) rollback transaction
584
+  (0.2ms) begin transaction
585
+ ------------------------------------------------
586
+ ActivatorTest: test_it_can_find_the_active_items
587
+ ------------------------------------------------
588
+  (0.0ms) SAVEPOINT active_record_1
589
+ SQL (2.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
590
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
592
+  (0.0ms) SAVEPOINT active_record_1
593
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
594
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
597
+  (1.1ms) rollback transaction
598
+  (0.1ms) begin transaction
599
+ --------------------------------------------------------------------------
600
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
601
+ --------------------------------------------------------------------------
602
+  (0.1ms) SAVEPOINT active_record_1
603
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
604
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
606
+  (0.0ms) SAVEPOINT active_record_1
607
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
608
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
609
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
610
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
611
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
612
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
614
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
615
+  (0.4ms) rollback transaction
616
+  (0.0ms) begin transaction
617
+ ----------------------------------------------------------------------------------
618
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
619
+ ----------------------------------------------------------------------------------
620
+  (0.0ms) SAVEPOINT active_record_1
621
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
622
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
624
+  (0.0ms) SAVEPOINT active_record_1
625
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
626
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
628
+  (0.0ms) SAVEPOINT active_record_1
629
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
630
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
631
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
632
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
633
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
634
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
636
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
637
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
638
+  (0.4ms) rollback transaction
639
+  (0.2ms) begin transaction
640
+ ------------------------------------------------
641
+ ActivatorTest: test_it_can_find_the_active_items
642
+ ------------------------------------------------
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ SQL (2.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
645
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
649
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
651
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
652
+  (1.0ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+ --------------------------------------------------------------------------
655
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
656
+ --------------------------------------------------------------------------
657
+  (0.1ms) SAVEPOINT active_record_1
658
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
659
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
661
+  (0.0ms) SAVEPOINT active_record_1
662
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
663
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
664
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
665
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
666
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
667
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
669
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
670
+  (0.4ms) rollback transaction
671
+  (0.0ms) begin transaction
672
+ ----------------------------------------------------------------------------------
673
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
674
+ ----------------------------------------------------------------------------------
675
+  (0.0ms) SAVEPOINT active_record_1
676
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
677
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679
+  (0.0ms) SAVEPOINT active_record_1
680
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
681
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
683
+  (0.0ms) SAVEPOINT active_record_1
684
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
685
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
686
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
687
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
688
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
689
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
691
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
692
+  (0.4ms) rollback transaction
693
+  (0.2ms) begin transaction
694
+ ------------------------------------------------
695
+ ActivatorTest: test_it_can_find_the_active_items
696
+ ------------------------------------------------
697
+  (0.0ms) SAVEPOINT active_record_1
698
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
699
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
701
+  (0.0ms) SAVEPOINT active_record_1
702
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
703
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
705
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
706
+  (1.0ms) rollback transaction
707
+  (0.1ms) begin transaction
708
+ --------------------------------------------------------------------------
709
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
710
+ --------------------------------------------------------------------------
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
713
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
715
+  (0.0ms) SAVEPOINT active_record_1
716
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
717
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
718
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
719
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
720
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
721
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
723
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
724
+  (0.5ms) rollback transaction
725
+  (0.0ms) begin transaction
726
+ ----------------------------------------------------------------------------------
727
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
728
+ ----------------------------------------------------------------------------------
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
731
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+  (0.0ms) SAVEPOINT active_record_1
734
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
735
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
737
+  (0.0ms) SAVEPOINT active_record_1
738
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
739
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
740
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
741
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
742
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
743
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
745
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
746
+  (0.4ms) rollback transaction
747
+  (0.2ms) begin transaction
748
+ ------------------------------------------------
749
+ ActivatorTest: test_it_can_find_the_active_items
750
+ ------------------------------------------------
751
+  (0.1ms) SAVEPOINT active_record_1
752
+ SQL (2.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
753
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
755
+  (0.0ms) SAVEPOINT active_record_1
756
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
757
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
759
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
760
+  (1.0ms) rollback transaction
761
+  (0.1ms) begin transaction
762
+ --------------------------------------------------------------------------
763
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
764
+ --------------------------------------------------------------------------
765
+  (0.0ms) SAVEPOINT active_record_1
766
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
767
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
769
+  (0.1ms) SAVEPOINT active_record_1
770
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
771
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
772
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
773
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
774
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
775
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
777
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
778
+  (0.5ms) rollback transaction
779
+  (0.1ms) begin transaction
780
+ ----------------------------------------------------------------------------------
781
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
782
+ ----------------------------------------------------------------------------------
783
+  (0.0ms) SAVEPOINT active_record_1
784
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
785
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
787
+  (0.0ms) SAVEPOINT active_record_1
788
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
789
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
791
+  (0.0ms) SAVEPOINT active_record_1
792
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
793
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
794
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
795
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
796
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
797
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
799
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
800
+  (0.4ms) rollback transaction
801
+  (0.2ms) begin transaction
802
+ ------------------------------------------------
803
+ ActivatorTest: test_it_can_find_the_active_items
804
+ ------------------------------------------------
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
807
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
809
+  (0.0ms) SAVEPOINT active_record_1
810
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
811
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
813
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
814
+  (1.2ms) rollback transaction
815
+  (0.1ms) begin transaction
816
+ --------------------------------------------------------------------------
817
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
818
+ --------------------------------------------------------------------------
819
+  (0.0ms) SAVEPOINT active_record_1
820
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
821
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
823
+  (0.0ms) SAVEPOINT active_record_1
824
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
825
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
826
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
827
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
828
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
829
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
831
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
832
+  (0.5ms) rollback transaction
833
+  (0.0ms) begin transaction
834
+ ----------------------------------------------------------------------------------
835
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
836
+ ----------------------------------------------------------------------------------
837
+  (0.0ms) SAVEPOINT active_record_1
838
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
839
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
841
+  (0.0ms) SAVEPOINT active_record_1
842
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
843
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
847
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
848
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
849
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
850
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
851
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
853
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
854
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
855
+  (0.4ms) rollback transaction
856
+  (0.3ms) begin transaction
857
+ ------------------------------------------------
858
+ ActivatorTest: test_it_can_find_the_active_items
859
+ ------------------------------------------------
860
+  (0.1ms) SAVEPOINT active_record_1
861
+ SQL (4.0ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
863
+  (0.1ms) SAVEPOINT active_record_1
864
+ SQL (1.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
865
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
867
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
868
+  (1.0ms) rollback transaction
869
+  (0.1ms) begin transaction
870
+ --------------------------------------------------------------------------
871
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
872
+ --------------------------------------------------------------------------
873
+  (0.1ms) SAVEPOINT active_record_1
874
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
875
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
877
+  (0.1ms) SAVEPOINT active_record_1
878
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
879
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
880
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
882
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
883
+  (0.6ms) rollback transaction
884
+  (0.1ms) begin transaction
885
+ ----------------------------------------------------------------------------------
886
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
887
+ ----------------------------------------------------------------------------------
888
+  (0.0ms) SAVEPOINT active_record_1
889
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
891
+  (0.0ms) SAVEPOINT active_record_1
892
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
893
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
895
+  (0.0ms) SAVEPOINT active_record_1
896
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
897
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
898
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
900
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
901
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
902
+  (0.4ms) rollback transaction
903
+  (0.2ms) begin transaction
904
+ ------------------------------------------------
905
+ ActivatorTest: test_it_can_find_the_active_items
906
+ ------------------------------------------------
907
+  (0.0ms) SAVEPOINT active_record_1
908
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
910
+  (0.0ms) SAVEPOINT active_record_1
911
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
912
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
914
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
915
+  (1.2ms) rollback transaction
916
+  (0.1ms) begin transaction
917
+ --------------------------------------------------------------------------
918
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
919
+ --------------------------------------------------------------------------
920
+  (0.0ms) SAVEPOINT active_record_1
921
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
922
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
926
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
927
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
929
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
930
+  (0.4ms) rollback transaction
931
+  (0.0ms) begin transaction
932
+ ----------------------------------------------------------------------------------
933
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
934
+ ----------------------------------------------------------------------------------
935
+  (0.0ms) SAVEPOINT active_record_1
936
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
938
+  (0.0ms) SAVEPOINT active_record_1
939
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
940
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
942
+  (0.0ms) SAVEPOINT active_record_1
943
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
944
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
945
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
947
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
948
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
949
+  (0.5ms) rollback transaction
950
+  (0.3ms) begin transaction
951
+ ------------------------------------------------
952
+ ActivatorTest: test_it_can_find_the_active_items
953
+ ------------------------------------------------
954
+  (0.0ms) SAVEPOINT active_record_1
955
+ SQL (2.1ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00]]
956
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
957
+  (1.1ms) rollback transaction
958
+  (0.1ms) begin transaction
959
+ --------------------------------------------------------------------------
960
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
961
+ --------------------------------------------------------------------------
962
+  (0.0ms) SAVEPOINT active_record_1
963
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00]]
964
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
965
+  (0.4ms) rollback transaction
966
+  (0.0ms) begin transaction
967
+ ----------------------------------------------------------------------------------
968
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
969
+ ----------------------------------------------------------------------------------
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:14:39 UTC +00:00]]
972
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
973
+  (0.3ms) rollback transaction
974
+  (0.4ms) begin transaction
975
+ ------------------------------------------------
976
+ ActivatorTest: test_it_can_find_the_active_items
977
+ ------------------------------------------------
978
+  (0.1ms) SAVEPOINT active_record_1
979
+ SQL (3.6ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00]]
980
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
981
+  (1.0ms) rollback transaction
982
+  (0.2ms) begin transaction
983
+ --------------------------------------------------------------------------
984
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
985
+ --------------------------------------------------------------------------
986
+  (0.1ms) SAVEPOINT active_record_1
987
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00]]
988
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
989
+  (0.4ms) rollback transaction
990
+  (0.1ms) begin transaction
991
+ ----------------------------------------------------------------------------------
992
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
993
+ ----------------------------------------------------------------------------------
994
+  (0.1ms) SAVEPOINT active_record_1
995
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 00:15:19 UTC +00:00]]
996
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
997
+  (0.5ms) rollback transaction
998
+  (0.4ms) begin transaction
999
+ ------------------------------------------------
1000
+ ActivatorTest: test_it_can_find_the_active_items
1001
+ ------------------------------------------------
1002
+  (0.1ms) SAVEPOINT active_record_1
1003
+ SQL (5.0ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:33:51 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:33:51 UTC +00:00]]
1004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1005
+  (0.1ms) SAVEPOINT active_record_1
1006
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:33:51 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:33:51 UTC +00:00]]
1007
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1009
+  (0.9ms) rollback transaction
1010
+  (0.2ms) begin transaction
1011
+ ------------------------------------------------
1012
+ ActivatorTest: test_it_can_find_the_active_items
1013
+ ------------------------------------------------
1014
+  (0.0ms) SAVEPOINT active_record_1
1015
+ SQL (3.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:34:01 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:34:01 UTC +00:00]]
1016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1017
+  (0.0ms) SAVEPOINT active_record_1
1018
+ SQL (1.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:34:01 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:34:01 UTC +00:00]]
1019
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1021
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1022
+  (0.9ms) rollback transaction
1023
+  (0.2ms) begin transaction
1024
+ ------------------------------------------------
1025
+ ActivatorTest: test_it_can_find_the_active_items
1026
+ ------------------------------------------------
1027
+  (0.0ms) SAVEPOINT active_record_1
1028
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1030
+  (0.0ms) SAVEPOINT active_record_1
1031
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1032
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1034
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1035
+  (1.2ms) rollback transaction
1036
+  (0.1ms) begin transaction
1037
+ --------------------------------------------------------------------------
1038
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1039
+ --------------------------------------------------------------------------
1040
+  (0.0ms) SAVEPOINT active_record_1
1041
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1042
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1044
+  (0.0ms) SAVEPOINT active_record_1
1045
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1046
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1047
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1049
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1050
+  (0.5ms) rollback transaction
1051
+  (0.0ms) begin transaction
1052
+ ----------------------------------------------------------------------------------
1053
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1054
+ ----------------------------------------------------------------------------------
1055
+  (0.0ms) SAVEPOINT active_record_1
1056
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1060
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1061
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1062
+  (0.0ms) SAVEPOINT active_record_1
1063
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1064
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1065
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
1066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1067
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1068
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1069
+  (0.4ms) rollback transaction
1070
+  (0.2ms) begin transaction
1071
+ ------------------------------------------------
1072
+ ActivatorTest: test_it_can_find_the_active_items
1073
+ ------------------------------------------------
1074
+  (0.1ms) SAVEPOINT active_record_1
1075
+ SQL (4.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1077
+  (0.0ms) SAVEPOINT active_record_1
1078
+ SQL (1.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1079
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1081
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1082
+  (1.9ms) rollback transaction
1083
+  (0.1ms) begin transaction
1084
+ --------------------------------------------------------------------------
1085
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1086
+ --------------------------------------------------------------------------
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1089
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1091
+  (0.1ms) SAVEPOINT active_record_1
1092
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1093
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1094
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1096
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1097
+  (0.6ms) rollback transaction
1098
+  (0.1ms) begin transaction
1099
+ ----------------------------------------------------------------------------------
1100
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1101
+ ----------------------------------------------------------------------------------
1102
+  (0.1ms) SAVEPOINT active_record_1
1103
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1104
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1107
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
+  (0.0ms) SAVEPOINT active_record_1
1110
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1111
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1112
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
1113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1114
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1115
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1116
+  (0.5ms) rollback transaction
1117
+  (0.2ms) begin transaction
1118
+ ------------------------------------------------
1119
+ ActivatorTest: test_it_can_find_the_active_items
1120
+ ------------------------------------------------
1121
+  (0.0ms) SAVEPOINT active_record_1
1122
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00]]
1123
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1124
+  (1.1ms) rollback transaction
1125
+  (0.1ms) begin transaction
1126
+ --------------------------------------------------------------------------
1127
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1128
+ --------------------------------------------------------------------------
1129
+  (0.0ms) SAVEPOINT active_record_1
1130
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00]]
1131
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1132
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1133
+  (0.4ms) rollback transaction
1134
+  (0.0ms) begin transaction
1135
+ ----------------------------------------------------------------------------------
1136
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1137
+ ----------------------------------------------------------------------------------
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:13 UTC +00:00]]
1140
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1141
+  (0.4ms) rollback transaction
1142
+  (0.2ms) begin transaction
1143
+ ------------------------------------------------
1144
+ ActivatorTest: test_it_can_find_the_active_items
1145
+ ------------------------------------------------
1146
+  (0.0ms) SAVEPOINT active_record_1
1147
+ SQL (2.0ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
+  (0.0ms) SAVEPOINT active_record_1
1150
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1151
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1153
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1154
+  (1.1ms) rollback transaction
1155
+  (0.1ms) begin transaction
1156
+ --------------------------------------------------------------------------
1157
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1158
+ --------------------------------------------------------------------------
1159
+  (0.0ms) SAVEPOINT active_record_1
1160
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1161
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1163
+  (0.0ms) SAVEPOINT active_record_1
1164
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1165
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1166
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1168
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1169
+  (0.5ms) rollback transaction
1170
+  (0.0ms) begin transaction
1171
+ ----------------------------------------------------------------------------------
1172
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1173
+ ----------------------------------------------------------------------------------
1174
+  (0.0ms) SAVEPOINT active_record_1
1175
+ SQL (0.6ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1177
+  (0.0ms) SAVEPOINT active_record_1
1178
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1179
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1181
+  (0.0ms) SAVEPOINT active_record_1
1182
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1183
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1184
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
1185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1186
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1187
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1188
+  (0.5ms) rollback transaction
1189
+  (0.2ms) begin transaction
1190
+ ------------------------------------------------
1191
+ ActivatorTest: test_it_can_find_the_active_items
1192
+ ------------------------------------------------
1193
+  (0.1ms) SAVEPOINT active_record_1
1194
+ SQL (1.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1196
+  (0.0ms) SAVEPOINT active_record_1
1197
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1198
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1200
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1201
+  (1.0ms) rollback transaction
1202
+  (0.1ms) begin transaction
1203
+ --------------------------------------------------------------------------
1204
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1205
+ --------------------------------------------------------------------------
1206
+  (0.1ms) SAVEPOINT active_record_1
1207
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1208
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1210
+  (0.0ms) SAVEPOINT active_record_1
1211
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1212
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1213
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1215
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1216
+  (0.6ms) rollback transaction
1217
+  (0.1ms) begin transaction
1218
+ ----------------------------------------------------------------------------------
1219
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1220
+ ----------------------------------------------------------------------------------
1221
+  (0.0ms) SAVEPOINT active_record_1
1222
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1224
+  (0.0ms) SAVEPOINT active_record_1
1225
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1226
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1228
+  (0.0ms) SAVEPOINT active_record_1
1229
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1230
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1231
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
1232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1233
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1234
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1235
+  (0.4ms) rollback transaction
1236
+  (0.2ms) begin transaction
1237
+ ------------------------------------------------
1238
+ ActivatorTest: test_it_can_find_the_active_items
1239
+ ------------------------------------------------
1240
+  (0.0ms) rollback transaction
1241
+  (0.1ms) begin transaction
1242
+ --------------------------------------------------------------------------
1243
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1244
+ --------------------------------------------------------------------------
1245
+  (0.0ms) SAVEPOINT active_record_1
1246
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1247
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1251
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1252
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1254
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1255
+  (1.2ms) rollback transaction
1256
+  (0.1ms) begin transaction
1257
+ ----------------------------------------------------------------------------------
1258
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1259
+ ----------------------------------------------------------------------------------
1260
+  (0.0ms) SAVEPOINT active_record_1
1261
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1263
+  (0.0ms) SAVEPOINT active_record_1
1264
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1265
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1267
+  (0.0ms) SAVEPOINT active_record_1
1268
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1269
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1270
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1273
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1274
+  (0.5ms) rollback transaction
1275
+  (0.2ms) begin transaction
1276
+ ------------------------------------------------
1277
+ ActivatorTest: test_it_can_find_the_active_items
1278
+ ------------------------------------------------
1279
+  (0.0ms) SAVEPOINT active_record_1
1280
+ SQL (2.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1282
+  (0.0ms) SAVEPOINT active_record_1
1283
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1284
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1286
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1287
+  (1.0ms) rollback transaction
1288
+  (0.1ms) begin transaction
1289
+ --------------------------------------------------------------------------
1290
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1291
+ --------------------------------------------------------------------------
1292
+  (0.1ms) SAVEPOINT active_record_1
1293
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1294
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1296
+  (0.0ms) SAVEPOINT active_record_1
1297
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1298
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1299
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1302
+  (0.6ms) rollback transaction
1303
+  (0.1ms) begin transaction
1304
+ ----------------------------------------------------------------------------------
1305
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1306
+ ----------------------------------------------------------------------------------
1307
+  (0.0ms) SAVEPOINT active_record_1
1308
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1310
+  (0.0ms) SAVEPOINT active_record_1
1311
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1312
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1314
+  (0.0ms) SAVEPOINT active_record_1
1315
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1316
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1317
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
1318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1320
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1321
+  (0.5ms) rollback transaction
1322
+  (0.2ms) begin transaction
1323
+ ------------------------------------------------
1324
+ ActivatorTest: test_it_can_find_the_active_items
1325
+ ------------------------------------------------
1326
+  (0.0ms) SAVEPOINT active_record_1
1327
+ SQL (2.0ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1329
+  (0.0ms) SAVEPOINT active_record_1
1330
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1331
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1334
+  (1.2ms) rollback transaction
1335
+  (0.1ms) begin transaction
1336
+ --------------------------------------------------------------------------
1337
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1338
+ --------------------------------------------------------------------------
1339
+  (0.1ms) SAVEPOINT active_record_1
1340
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1341
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1343
+  (0.0ms) SAVEPOINT active_record_1
1344
+ SQL (0.2ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1345
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1346
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1348
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1349
+  (0.4ms) rollback transaction
1350
+  (0.0ms) begin transaction
1351
+ ----------------------------------------------------------------------------------
1352
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1353
+ ----------------------------------------------------------------------------------
1354
+  (0.0ms) SAVEPOINT active_record_1
1355
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1357
+  (0.0ms) SAVEPOINT active_record_1
1358
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1359
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1361
+  (0.0ms) SAVEPOINT active_record_1
1362
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1363
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1364
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
1365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1366
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1367
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1368
+  (0.4ms) rollback transaction
1369
+  (0.4ms) begin transaction
1370
+ ------------------------------------------------
1371
+ ActivatorTest: test_it_can_find_the_active_items
1372
+ ------------------------------------------------
1373
+  (0.1ms) SAVEPOINT active_record_1
1374
+ SQL (3.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1376
+  (0.0ms) SAVEPOINT active_record_1
1377
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1378
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1380
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1381
+  (0.4ms) rollback transaction
1382
+  (0.1ms) begin transaction
1383
+ --------------------------------------------------------------------------
1384
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1385
+ --------------------------------------------------------------------------
1386
+  (0.1ms) SAVEPOINT active_record_1
1387
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1388
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+  (0.0ms) SAVEPOINT active_record_1
1391
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1392
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1393
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1395
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1396
+  (0.4ms) rollback transaction
1397
+  (0.1ms) begin transaction
1398
+ ----------------------------------------------------------------------------------
1399
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1400
+ ----------------------------------------------------------------------------------
1401
+  (0.0ms) SAVEPOINT active_record_1
1402
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1404
+  (0.0ms) SAVEPOINT active_record_1
1405
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1406
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1408
+  (0.0ms) SAVEPOINT active_record_1
1409
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1410
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1411
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
1412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1413
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1414
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1415
+  (0.4ms) rollback transaction
1416
+  (0.1ms) begin transaction
1417
+ -----------------------------------------------------------------------------------
1418
+ ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
1419
+ -----------------------------------------------------------------------------------
1420
+  (0.1ms) rollback transaction
1421
+  (0.3ms) begin transaction
1422
+ ------------------------------------------------
1423
+ ActivatorTest: test_it_can_find_the_active_items
1424
+ ------------------------------------------------
1425
+  (0.1ms) SAVEPOINT active_record_1
1426
+ SQL (3.6ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1428
+  (0.0ms) SAVEPOINT active_record_1
1429
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1430
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1432
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1433
+  (1.0ms) rollback transaction
1434
+  (0.2ms) begin transaction
1435
+ --------------------------------------------------------------------------
1436
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1437
+ --------------------------------------------------------------------------
1438
+  (0.1ms) SAVEPOINT active_record_1
1439
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1440
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1442
+  (0.1ms) SAVEPOINT active_record_1
1443
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1444
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1445
+ SQL (0.3ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1447
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1448
+  (0.6ms) rollback transaction
1449
+  (0.1ms) begin transaction
1450
+ ----------------------------------------------------------------------------------
1451
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1452
+ ----------------------------------------------------------------------------------
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1456
+  (0.0ms) SAVEPOINT active_record_1
1457
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1458
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1460
+  (0.1ms) SAVEPOINT active_record_1
1461
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1462
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1463
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
1464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1465
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1466
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1467
+  (0.5ms) rollback transaction
1468
+  (0.1ms) begin transaction
1469
+ -----------------------------------------------------------------------------------
1470
+ ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
1471
+ -----------------------------------------------------------------------------------
1472
+  (0.1ms) rollback transaction
1473
+  (0.1ms) begin transaction
1474
+ -----------------------------------------------------------------------------
1475
+ ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
1476
+ -----------------------------------------------------------------------------
1477
+  (0.1ms) rollback transaction
1478
+  (1.4ms) CREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) 
1479
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1480
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1481
+  (0.1ms) SELECT version FROM "schema_migrations"
1482
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140424234705')
1483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1484
+  (0.2ms) begin transaction
1485
+ ------------------------------------------------
1486
+ ActivatorTest: test_it_can_find_the_active_items
1487
+ ------------------------------------------------
1488
+  (0.1ms) SAVEPOINT active_record_1
1489
+ SQL (2.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1491
+  (0.0ms) SAVEPOINT active_record_1
1492
+ SQL (0.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1493
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1495
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1496
+  (1.0ms) rollback transaction
1497
+  (0.1ms) begin transaction
1498
+ --------------------------------------------------------------------------
1499
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1500
+ --------------------------------------------------------------------------
1501
+  (0.1ms) SAVEPOINT active_record_1
1502
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1503
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1505
+  (0.1ms) SAVEPOINT active_record_1
1506
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1507
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1508
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1509
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1510
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1511
+  (0.6ms) rollback transaction
1512
+  (0.1ms) begin transaction
1513
+ ----------------------------------------------------------------------------------
1514
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1515
+ ----------------------------------------------------------------------------------
1516
+  (0.1ms) SAVEPOINT active_record_1
1517
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1519
+  (0.0ms) SAVEPOINT active_record_1
1520
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1521
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1523
+  (0.0ms) SAVEPOINT active_record_1
1524
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1525
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1526
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
1527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1528
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1529
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1530
+  (0.4ms) rollback transaction
1531
+  (0.1ms) begin transaction
1532
+ -----------------------------------------------------------------------------------
1533
+ ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
1534
+ -----------------------------------------------------------------------------------
1535
+  (0.1ms) rollback transaction
1536
+  (0.0ms) begin transaction
1537
+ -----------------------------------------------------------------------------
1538
+ ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
1539
+ -----------------------------------------------------------------------------
1540
+  (0.0ms) rollback transaction
1541
+  (0.2ms) begin transaction
1542
+ ------------------------------------------------
1543
+ ActivatorTest: test_it_can_find_the_active_items
1544
+ ------------------------------------------------
1545
+  (0.1ms) SAVEPOINT active_record_1
1546
+ SQL (2.8ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1548
+  (0.0ms) SAVEPOINT active_record_1
1549
+ SQL (3.7ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1550
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
+ Project Load (0.2ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1553
+  (1.1ms) rollback transaction
1554
+  (0.1ms) begin transaction
1555
+ --------------------------------------------------------------------------
1556
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1557
+ --------------------------------------------------------------------------
1558
+  (0.1ms) SAVEPOINT active_record_1
1559
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1560
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1562
+  (0.1ms) SAVEPOINT active_record_1
1563
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1564
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1565
+ SQL (0.3ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1567
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1568
+  (0.5ms) rollback transaction
1569
+  (0.0ms) begin transaction
1570
+ ----------------------------------------------------------------------------------
1571
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1572
+ ----------------------------------------------------------------------------------
1573
+  (0.0ms) SAVEPOINT active_record_1
1574
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1576
+  (0.0ms) SAVEPOINT active_record_1
1577
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1578
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1580
+  (0.0ms) SAVEPOINT active_record_1
1581
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1582
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1583
+ SQL (0.1ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1585
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1586
+ Project Load (0.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1587
+  (0.4ms) rollback transaction
1588
+  (0.1ms) begin transaction
1589
+ -----------------------------------------------------------------------------------
1590
+ ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
1591
+ -----------------------------------------------------------------------------------
1592
+  (0.1ms) rollback transaction
1593
+  (0.0ms) begin transaction
1594
+ -----------------------------------------------------------------------------
1595
+ ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
1596
+ -----------------------------------------------------------------------------
1597
+  (0.0ms) SAVEPOINT active_record_1
1598
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
1599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1600
+  (0.4ms) rollback transaction
1601
+  (0.2ms) begin transaction
1602
+ ------------------------------------------------
1603
+ ActivatorTest: test_it_can_find_the_active_items
1604
+ ------------------------------------------------
1605
+  (0.0ms) SAVEPOINT active_record_1
1606
+ SQL (1.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1608
+  (0.0ms) SAVEPOINT active_record_1
1609
+ SQL (0.9ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1610
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1612
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
1613
+  (1.0ms) rollback transaction
1614
+  (0.2ms) begin transaction
1615
+ --------------------------------------------------------------------------
1616
+ ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
1617
+ --------------------------------------------------------------------------
1618
+  (0.0ms) SAVEPOINT active_record_1
1619
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1620
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1622
+  (0.0ms) SAVEPOINT active_record_1
1623
+ SQL (0.4ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1624
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1625
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", false], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1627
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1628
+  (0.5ms) rollback transaction
1629
+  (0.0ms) begin transaction
1630
+ ----------------------------------------------------------------------------------
1631
+ ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
1632
+ ----------------------------------------------------------------------------------
1633
+  (0.0ms) SAVEPOINT active_record_1
1634
+ SQL (0.3ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", false], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1636
+  (0.0ms) SAVEPOINT active_record_1
1637
+ SQL (0.5ms) INSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?) [["active", true], ["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1638
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
1639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1640
+  (0.0ms) SAVEPOINT active_record_1
1641
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1 [["active", true], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1642
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
1643
+ SQL (0.2ms) UPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2 [["active", false], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1645
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
1646
+ Project Load (0.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
1647
+  (2.7ms) rollback transaction
1648
+  (0.1ms) begin transaction
1649
+ -----------------------------------------------------------------------------------
1650
+ ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
1651
+ -----------------------------------------------------------------------------------
1652
+  (0.2ms) rollback transaction
1653
+  (0.9ms) begin transaction
1654
+ -----------------------------------------------------------------------------
1655
+ ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
1656
+ -----------------------------------------------------------------------------
1657
+  (0.1ms) SAVEPOINT active_record_1
1658
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
1659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1660
+  (0.6ms) rollback transaction