activator 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +32 -0
- data/lib/activator.rb +36 -0
- data/lib/activator/version.rb +3 -0
- data/lib/tasks/activator_tasks.rake +4 -0
- data/test/activator_test.rb +50 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/project.rb +3 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140424234705_create_projects.rb +9 -0
- data/test/dummy/db/migrate/20140425024510_create_users.rb +8 -0
- data/test/dummy/db/schema.rb +27 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +52 -0
- data/test/dummy/log/test.log +1660 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/projects.yml +7 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/project_test.rb +7 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- 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,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,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,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,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
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateProjects (20140424232258)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140424232258"]]
|
8
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
11
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
Migrating to CreateProjects (20140424234705)
|
14
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
16
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140424234705"]]
|
17
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
18
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
19
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
20
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
21
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
22
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
23
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140424234705')[0m
|
24
|
+
[1m[36mProject Load (0.8ms)[0m [1mSELECT "projects".* FROM "projects"[0m
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
+
Migrating to CreateUsers (20140425024510)
|
27
|
+
[1m[35m (0.1ms)[0m begin transaction
|
28
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
29
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
|
30
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
Migrating to CreateUsers (20140425024510)
|
33
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
35
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
|
36
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
37
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
38
|
+
Migrating to CreateUsers (20140425024510)
|
39
|
+
[1m[35m (0.1ms)[0m begin transaction
|
40
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
41
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140425024510"]]
|
42
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
43
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
44
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
45
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
46
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
47
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
48
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
49
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
50
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
51
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140425024510')
|
52
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140424234705')[0m
|
@@ -0,0 +1,1660 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2
|
+
-------------------------
|
3
|
+
ActivatorTest: test_truth
|
4
|
+
-------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
7
|
+
-------------------------
|
8
|
+
ActivatorTest: test_truth
|
9
|
+
-------------------------
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
12
|
+
-------------------------
|
13
|
+
ActivatorTest: test_truth
|
14
|
+
-------------------------
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
17
|
+
-------------------------------------------
|
18
|
+
ActAsActivatortest: test_that_it_does_stuff
|
19
|
+
-------------------------------------------
|
20
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
+
-------------------------------------------
|
23
|
+
ActAsActivatortest: test_that_it_does_stuff
|
24
|
+
-------------------------------------------
|
25
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
27
|
+
-------------------------------------------
|
28
|
+
ActAsActivatortest: test_that_it_does_stuff
|
29
|
+
-------------------------------------------
|
30
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
32
|
+
-------------------------------------------
|
33
|
+
ActAsActivatortest: test_that_it_does_stuff
|
34
|
+
-------------------------------------------
|
35
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
37
|
+
-------------------------------------------
|
38
|
+
ActAsActivatortest: test_that_it_does_stuff
|
39
|
+
-------------------------------------------
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
42
|
+
-------------------------------------------
|
43
|
+
ActAsActivatortest: test_that_it_does_stuff
|
44
|
+
-------------------------------------------
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
47
|
+
-------------------------------------------
|
48
|
+
ActAsActivatortest: test_that_it_does_stuff
|
49
|
+
-------------------------------------------
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52
|
+
-------------------------
|
53
|
+
ActivatorTest: test_truth
|
54
|
+
-------------------------
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
57
|
+
--------------------------
|
58
|
+
ActivatorTest: test_things
|
59
|
+
--------------------------
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
-------------------------
|
63
|
+
ActivatorTest: test_truth
|
64
|
+
-------------------------
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
67
|
+
--------------------------
|
68
|
+
ActivatorTest: test_things
|
69
|
+
--------------------------
|
70
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
-------------------------
|
73
|
+
ActivatorTest: test_truth
|
74
|
+
-------------------------
|
75
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
77
|
+
--------------------------
|
78
|
+
ActivatorTest: test_things
|
79
|
+
--------------------------
|
80
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82
|
+
-------------------------
|
83
|
+
ActivatorTest: test_truth
|
84
|
+
-------------------------
|
85
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
87
|
+
--------------------------
|
88
|
+
ActivatorTest: test_things
|
89
|
+
--------------------------
|
90
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
91
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
92
|
+
-------------------------
|
93
|
+
ActivatorTest: test_truth
|
94
|
+
-------------------------
|
95
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
96
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
97
|
+
--------------------------
|
98
|
+
ActivatorTest: test_things
|
99
|
+
--------------------------
|
100
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
102
|
+
-------------------------
|
103
|
+
ActivatorTest: test_truth
|
104
|
+
-------------------------
|
105
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
107
|
+
-------------------------
|
108
|
+
ActivatorTest: test_truth
|
109
|
+
-------------------------
|
110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
112
|
+
-------------------------
|
113
|
+
ActivatorTest: test_truth
|
114
|
+
-------------------------
|
115
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
117
|
+
-------------------------
|
118
|
+
ActivatorTest: test_truth
|
119
|
+
-------------------------
|
120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
121
|
+
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
123
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
124
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
125
|
+
-------------------------
|
126
|
+
ActivatorTest: test_truth
|
127
|
+
-------------------------
|
128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
129
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
131
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
132
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
133
|
+
-------------------------
|
134
|
+
ActivatorTest: test_truth
|
135
|
+
-------------------------
|
136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
137
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
140
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
141
|
+
-------------------------
|
142
|
+
ActivatorTest: test_truth
|
143
|
+
-------------------------
|
144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
145
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
147
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
148
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
149
|
+
-------------------------
|
150
|
+
ActivatorTest: test_truth
|
151
|
+
-------------------------
|
152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
153
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
154
|
+
-------------------------
|
155
|
+
ActivatorTest: test_truth
|
156
|
+
-------------------------
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
159
|
+
-------------------------
|
160
|
+
ActivatorTest: test_truth
|
161
|
+
-------------------------
|
162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
163
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
165
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
166
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
167
|
+
-------------------------
|
168
|
+
ActivatorTest: test_truth
|
169
|
+
-------------------------
|
170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
171
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
173
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
174
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
175
|
+
-------------------------
|
176
|
+
ActivatorTest: test_truth
|
177
|
+
-------------------------
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
180
|
+
-------------------------
|
181
|
+
ActivatorTest: test_truth
|
182
|
+
-------------------------
|
183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
184
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
186
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
187
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
188
|
+
-------------------------
|
189
|
+
ActivatorTest: test_truth
|
190
|
+
-------------------------
|
191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
192
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
194
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
195
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
197
|
+
-------------------------
|
198
|
+
ActivatorTest: test_truth
|
199
|
+
-------------------------
|
200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
201
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
203
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
204
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
205
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
206
|
+
-------------------------
|
207
|
+
ActivatorTest: test_truth
|
208
|
+
-------------------------
|
209
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
212
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
213
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
214
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
215
|
+
-------------------------
|
216
|
+
ActivatorTest: test_truth
|
217
|
+
-------------------------
|
218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
221
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."@_active" = 't' LIMIT 1[0m
|
222
|
+
SQLite3::SQLException: no such column: projects.@_active: SELECT "projects".* FROM "projects" WHERE "projects"."@_active" = 't' LIMIT 1
|
223
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
224
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
225
|
+
-------------------------
|
226
|
+
ActivatorTest: test_truth
|
227
|
+
-------------------------
|
228
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
232
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
233
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
234
|
+
-------------------------
|
235
|
+
ActivatorTest: test_truth
|
236
|
+
-------------------------
|
237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
241
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
242
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
243
|
+
-------------------------
|
244
|
+
ActivatorTest: test_truth
|
245
|
+
-------------------------
|
246
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
247
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
249
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
250
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
251
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
252
|
+
-------------------------
|
253
|
+
ActivatorTest: test_truth
|
254
|
+
-------------------------
|
255
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
256
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
258
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
259
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
260
|
+
-------------------------
|
261
|
+
ActivatorTest: test_truth
|
262
|
+
-------------------------
|
263
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
264
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
266
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
267
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
268
|
+
-------------------------
|
269
|
+
ActivatorTest: test_truth
|
270
|
+
-------------------------
|
271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
272
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
274
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
275
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
276
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
277
|
+
-------------------------
|
278
|
+
ActivatorTest: test_truth
|
279
|
+
-------------------------
|
280
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
281
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
283
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
284
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
285
|
+
-------------------------
|
286
|
+
ActivatorTest: test_truth
|
287
|
+
-------------------------
|
288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
289
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
291
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
292
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
293
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
294
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
295
|
+
-------------------------
|
296
|
+
ActivatorTest: test_truth
|
297
|
+
-------------------------
|
298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
301
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
302
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
303
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
304
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
305
|
+
-------------------------
|
306
|
+
ActivatorTest: test_truth
|
307
|
+
-------------------------
|
308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
309
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
311
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
312
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
313
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
314
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
315
|
+
-------------------------
|
316
|
+
ActivatorTest: test_truth
|
317
|
+
-------------------------
|
318
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
319
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
321
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
323
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
324
|
+
[1m[35mSQL (1.1ms)[0m 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
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
326
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
328
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
331
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
332
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
333
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
334
|
+
-------------------------
|
335
|
+
ActivatorTest: test_truth
|
336
|
+
-------------------------
|
337
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
338
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
340
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
341
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
342
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
343
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
345
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
347
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
350
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
351
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
352
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
353
|
+
------------------------------------------------
|
354
|
+
ActivatorTest: test_it_can_find_the_active_items
|
355
|
+
------------------------------------------------
|
356
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
357
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
360
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
361
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
363
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
364
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
366
|
+
--------------------------------------------
|
367
|
+
ActivatorTest: test_it_deactivates_old_items
|
368
|
+
--------------------------------------------
|
369
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
370
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
373
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
374
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
375
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
377
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
379
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
381
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
382
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
383
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
384
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
385
|
+
------------------------------------------------
|
386
|
+
ActivatorTest: test_it_can_find_the_active_items
|
387
|
+
------------------------------------------------
|
388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
389
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
393
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
395
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
397
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
398
|
+
[1m[35m (0.2ms)[0m begin transaction
|
399
|
+
--------------------------------------------
|
400
|
+
ActivatorTest: test_it_deactivates_old_items
|
401
|
+
--------------------------------------------
|
402
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
406
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
408
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
410
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
|
411
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
412
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:06:30 UTC +00:00]]
|
413
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
414
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
415
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
416
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
417
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
418
|
+
------------------------------------------------
|
419
|
+
ActivatorTest: test_it_can_find_the_active_items
|
420
|
+
------------------------------------------------
|
421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
422
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
424
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
425
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
426
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
428
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
429
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
430
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
432
|
+
--------------------------------------------
|
433
|
+
ActivatorTest: test_it_deactivates_old_items
|
434
|
+
--------------------------------------------
|
435
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
436
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
437
|
+
------------------------------------------------
|
438
|
+
ActivatorTest: test_it_can_find_the_active_items
|
439
|
+
------------------------------------------------
|
440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
441
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
444
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
445
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
447
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
448
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
449
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
450
|
+
[1m[35m (0.1ms)[0m begin transaction
|
451
|
+
--------------------------------------------
|
452
|
+
ActivatorTest: test_it_deactivates_old_items
|
453
|
+
--------------------------------------------
|
454
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
455
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
458
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
459
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
460
|
+
------------------------------------------------
|
461
|
+
ActivatorTest: test_it_can_find_the_active_items
|
462
|
+
------------------------------------------------
|
463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
464
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
466
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
468
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
470
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
471
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
472
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
473
|
+
[1m[35m (0.2ms)[0m begin transaction
|
474
|
+
--------------------------------------------
|
475
|
+
ActivatorTest: test_it_deactivates_old_items
|
476
|
+
--------------------------------------------
|
477
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
478
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
480
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
482
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
484
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
486
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
488
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
489
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
490
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
491
|
+
------------------------------------------------
|
492
|
+
ActivatorTest: test_it_can_find_the_active_items
|
493
|
+
------------------------------------------------
|
494
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
495
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
497
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
498
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
499
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
501
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
502
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
503
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
504
|
+
[1m[35m (0.1ms)[0m begin transaction
|
505
|
+
--------------------------------------------
|
506
|
+
ActivatorTest: test_it_deactivates_old_items
|
507
|
+
--------------------------------------------
|
508
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
513
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
515
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
517
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
519
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
520
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
521
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
522
|
+
------------------------------------------------
|
523
|
+
ActivatorTest: test_it_can_find_the_active_items
|
524
|
+
------------------------------------------------
|
525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
526
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
530
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
533
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
534
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
535
|
+
[1m[35m (0.1ms)[0m begin transaction
|
536
|
+
--------------------------------------------
|
537
|
+
ActivatorTest: test_it_deactivates_old_items
|
538
|
+
--------------------------------------------
|
539
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
540
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
542
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
543
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
544
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
546
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
548
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
550
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
551
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
552
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
553
|
+
------------------------------------------------
|
554
|
+
ActivatorTest: test_it_can_find_the_active_items
|
555
|
+
------------------------------------------------
|
556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
557
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
559
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
560
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
561
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
563
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
564
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
565
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
566
|
+
[1m[35m (0.1ms)[0m begin transaction
|
567
|
+
--------------------------------------------
|
568
|
+
ActivatorTest: test_it_deactivates_old_items
|
569
|
+
--------------------------------------------
|
570
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
571
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
573
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
577
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
579
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
581
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
582
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
583
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
584
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
585
|
+
------------------------------------------------
|
586
|
+
ActivatorTest: test_it_can_find_the_active_items
|
587
|
+
------------------------------------------------
|
588
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
589
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
591
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
592
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
593
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
595
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
596
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
597
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
599
|
+
--------------------------------------------------------------------------
|
600
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
601
|
+
--------------------------------------------------------------------------
|
602
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
603
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
605
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
606
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
607
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
609
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
611
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
614
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
615
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
616
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
617
|
+
----------------------------------------------------------------------------------
|
618
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
619
|
+
----------------------------------------------------------------------------------
|
620
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
621
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
624
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
625
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
627
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
628
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
629
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", true], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
|
630
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
631
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
|
632
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
633
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:44 UTC +00:00]]
|
634
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
635
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
636
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
637
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
638
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
639
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
640
|
+
------------------------------------------------
|
641
|
+
ActivatorTest: test_it_can_find_the_active_items
|
642
|
+
------------------------------------------------
|
643
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
644
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
647
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
648
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
650
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
651
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
652
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
654
|
+
--------------------------------------------------------------------------
|
655
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
656
|
+
--------------------------------------------------------------------------
|
657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
658
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
660
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
661
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
662
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
664
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
666
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
668
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
669
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
670
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
671
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
672
|
+
----------------------------------------------------------------------------------
|
673
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
674
|
+
----------------------------------------------------------------------------------
|
675
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
676
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
678
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
679
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
680
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
682
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
683
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
684
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", true], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
|
685
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
686
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
|
687
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
688
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:09:49 UTC +00:00]]
|
689
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
690
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
691
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
692
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
693
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
694
|
+
------------------------------------------------
|
695
|
+
ActivatorTest: test_it_can_find_the_active_items
|
696
|
+
------------------------------------------------
|
697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
698
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
700
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
701
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
702
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
704
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
705
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
706
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
707
|
+
[1m[35m (0.1ms)[0m begin transaction
|
708
|
+
--------------------------------------------------------------------------
|
709
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
710
|
+
--------------------------------------------------------------------------
|
711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
712
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
715
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
716
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
718
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
720
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
723
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
724
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
725
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
726
|
+
----------------------------------------------------------------------------------
|
727
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
728
|
+
----------------------------------------------------------------------------------
|
729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
730
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
732
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
733
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
734
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
736
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
738
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
|
739
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
740
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
|
741
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
742
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:17 UTC +00:00]]
|
743
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
744
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
745
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
746
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
747
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
748
|
+
------------------------------------------------
|
749
|
+
ActivatorTest: test_it_can_find_the_active_items
|
750
|
+
------------------------------------------------
|
751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
752
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
754
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
756
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
758
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
759
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
760
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
762
|
+
--------------------------------------------------------------------------
|
763
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
764
|
+
--------------------------------------------------------------------------
|
765
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
766
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
772
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
774
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
776
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
777
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
778
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
779
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
780
|
+
----------------------------------------------------------------------------------
|
781
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
782
|
+
----------------------------------------------------------------------------------
|
783
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
787
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
788
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
790
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
791
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
792
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
|
793
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
794
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
|
795
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
796
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:23 UTC +00:00]]
|
797
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
798
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 2]]
|
800
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
801
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
802
|
+
------------------------------------------------
|
803
|
+
ActivatorTest: test_it_can_find_the_active_items
|
804
|
+
------------------------------------------------
|
805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
806
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
808
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
809
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
810
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
812
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
813
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1
|
814
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
815
|
+
[1m[35m (0.1ms)[0m begin transaction
|
816
|
+
--------------------------------------------------------------------------
|
817
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
818
|
+
--------------------------------------------------------------------------
|
819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
824
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
826
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
828
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
830
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
831
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
832
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
834
|
+
----------------------------------------------------------------------------------
|
835
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
836
|
+
----------------------------------------------------------------------------------
|
837
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
838
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
840
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
841
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
842
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
845
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
846
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", true], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
|
847
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
848
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 2[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
|
849
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
850
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:10:36 UTC +00:00]]
|
851
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
852
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
853
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
854
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
855
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
856
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
857
|
+
------------------------------------------------
|
858
|
+
ActivatorTest: test_it_can_find_the_active_items
|
859
|
+
------------------------------------------------
|
860
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
866
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
867
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
868
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
869
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
870
|
+
--------------------------------------------------------------------------
|
871
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
872
|
+
--------------------------------------------------------------------------
|
873
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
874
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
876
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
877
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
878
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
880
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:22 UTC +00:00]]
|
881
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
882
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
883
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
884
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
885
|
+
----------------------------------------------------------------------------------
|
886
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
887
|
+
----------------------------------------------------------------------------------
|
888
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
892
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
895
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
896
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
898
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
900
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
901
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
902
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
903
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
904
|
+
------------------------------------------------
|
905
|
+
ActivatorTest: test_it_can_find_the_active_items
|
906
|
+
------------------------------------------------
|
907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
908
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
910
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
911
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
913
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
914
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
915
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
916
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
917
|
+
--------------------------------------------------------------------------
|
918
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
919
|
+
--------------------------------------------------------------------------
|
920
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
921
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
927
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 00:11:27 UTC +00:00]]
|
928
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
929
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
930
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
931
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
932
|
+
----------------------------------------------------------------------------------
|
933
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
934
|
+
----------------------------------------------------------------------------------
|
935
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
936
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
938
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
939
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
941
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
943
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
945
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
947
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
948
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
949
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
950
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
951
|
+
------------------------------------------------
|
952
|
+
ActivatorTest: test_it_can_find_the_active_items
|
953
|
+
------------------------------------------------
|
954
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
955
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
957
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
958
|
+
[1m[35m (0.1ms)[0m begin transaction
|
959
|
+
--------------------------------------------------------------------------
|
960
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
961
|
+
--------------------------------------------------------------------------
|
962
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
963
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
965
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
966
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
967
|
+
----------------------------------------------------------------------------------
|
968
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
969
|
+
----------------------------------------------------------------------------------
|
970
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
971
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
973
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
974
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
975
|
+
------------------------------------------------
|
976
|
+
ActivatorTest: test_it_can_find_the_active_items
|
977
|
+
------------------------------------------------
|
978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
979
|
+
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
981
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
982
|
+
[1m[35m (0.2ms)[0m begin transaction
|
983
|
+
--------------------------------------------------------------------------
|
984
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
985
|
+
--------------------------------------------------------------------------
|
986
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
987
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
989
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
990
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
991
|
+
----------------------------------------------------------------------------------
|
992
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
993
|
+
----------------------------------------------------------------------------------
|
994
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
995
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
997
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
998
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
999
|
+
------------------------------------------------
|
1000
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1001
|
+
------------------------------------------------
|
1002
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1003
|
+
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1005
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1006
|
+
[1m[35mSQL (1.9ms)[0m 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
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1008
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1009
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1010
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1011
|
+
------------------------------------------------
|
1012
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1013
|
+
------------------------------------------------
|
1014
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1015
|
+
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1017
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1018
|
+
[1m[35mSQL (1.5ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1020
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1021
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1022
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1023
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1024
|
+
------------------------------------------------
|
1025
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1026
|
+
------------------------------------------------
|
1027
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1028
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1030
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1031
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1033
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1034
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1035
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
1036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1037
|
+
--------------------------------------------------------------------------
|
1038
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1039
|
+
--------------------------------------------------------------------------
|
1040
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1041
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1043
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1044
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1045
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1047
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:35:11 UTC +00:00]]
|
1048
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1049
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1050
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1051
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1052
|
+
----------------------------------------------------------------------------------
|
1053
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1054
|
+
----------------------------------------------------------------------------------
|
1055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1056
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1058
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1059
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1061
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1062
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1063
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1065
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1067
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1068
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1069
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1070
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1071
|
+
------------------------------------------------
|
1072
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1073
|
+
------------------------------------------------
|
1074
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1075
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1077
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1078
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1080
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1081
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1082
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
1083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1084
|
+
--------------------------------------------------------------------------
|
1085
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1086
|
+
--------------------------------------------------------------------------
|
1087
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1088
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.2ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1090
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1092
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1094
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:39:42 UTC +00:00]]
|
1095
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1096
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1097
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1098
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1099
|
+
----------------------------------------------------------------------------------
|
1100
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1101
|
+
----------------------------------------------------------------------------------
|
1102
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1103
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1105
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1106
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1108
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1109
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1110
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1112
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1114
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1115
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1116
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1117
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1118
|
+
------------------------------------------------
|
1119
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1120
|
+
------------------------------------------------
|
1121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1122
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1124
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
1125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1126
|
+
--------------------------------------------------------------------------
|
1127
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1128
|
+
--------------------------------------------------------------------------
|
1129
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1130
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1132
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1133
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1134
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1135
|
+
----------------------------------------------------------------------------------
|
1136
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1137
|
+
----------------------------------------------------------------------------------
|
1138
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1139
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1141
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1142
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1143
|
+
------------------------------------------------
|
1144
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1145
|
+
------------------------------------------------
|
1146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1147
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1150
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1152
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1153
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1154
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1156
|
+
--------------------------------------------------------------------------
|
1157
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1158
|
+
--------------------------------------------------------------------------
|
1159
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1160
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1162
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1163
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1164
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1166
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:44:40 UTC +00:00]]
|
1167
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1168
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1169
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1170
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1171
|
+
----------------------------------------------------------------------------------
|
1172
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1173
|
+
----------------------------------------------------------------------------------
|
1174
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1175
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1178
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1180
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1181
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1182
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1184
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1187
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1188
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1189
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1190
|
+
------------------------------------------------
|
1191
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1192
|
+
------------------------------------------------
|
1193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1194
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1196
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1197
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1199
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1200
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1201
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1203
|
+
--------------------------------------------------------------------------
|
1204
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1205
|
+
--------------------------------------------------------------------------
|
1206
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1207
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1209
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1213
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:05 UTC +00:00]]
|
1214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1215
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1216
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1218
|
+
----------------------------------------------------------------------------------
|
1219
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1220
|
+
----------------------------------------------------------------------------------
|
1221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1222
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1225
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1227
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1229
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1231
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1233
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1234
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1235
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1236
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1237
|
+
------------------------------------------------
|
1238
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1239
|
+
------------------------------------------------
|
1240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1242
|
+
--------------------------------------------------------------------------
|
1243
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1244
|
+
--------------------------------------------------------------------------
|
1245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1246
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1248
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1249
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1250
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1252
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:45 UTC +00:00]]
|
1253
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1254
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1255
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
1256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1257
|
+
----------------------------------------------------------------------------------
|
1258
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1259
|
+
----------------------------------------------------------------------------------
|
1260
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1261
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1263
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1264
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1266
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1268
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1270
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1272
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1273
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1274
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1275
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1276
|
+
------------------------------------------------
|
1277
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1278
|
+
------------------------------------------------
|
1279
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1280
|
+
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1282
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1283
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1286
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1287
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1288
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1289
|
+
--------------------------------------------------------------------------
|
1290
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1291
|
+
--------------------------------------------------------------------------
|
1292
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1293
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1295
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1297
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1299
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:46:58 UTC +00:00]]
|
1300
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1301
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1302
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1303
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1304
|
+
----------------------------------------------------------------------------------
|
1305
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1306
|
+
----------------------------------------------------------------------------------
|
1307
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1308
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1310
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1311
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1313
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1315
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1317
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1320
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1321
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1322
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1323
|
+
------------------------------------------------
|
1324
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1325
|
+
------------------------------------------------
|
1326
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1327
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1329
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1330
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1332
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1333
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1334
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
1335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1336
|
+
--------------------------------------------------------------------------
|
1337
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1338
|
+
--------------------------------------------------------------------------
|
1339
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1340
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1343
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1344
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1346
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:47:59 UTC +00:00]]
|
1347
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1348
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1349
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1351
|
+
----------------------------------------------------------------------------------
|
1352
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1353
|
+
----------------------------------------------------------------------------------
|
1354
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1355
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1358
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1360
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1361
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1364
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1366
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1367
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1368
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1369
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1370
|
+
------------------------------------------------
|
1371
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1372
|
+
------------------------------------------------
|
1373
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1374
|
+
[1m[36mSQL (3.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1379
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1380
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1381
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1382
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1383
|
+
--------------------------------------------------------------------------
|
1384
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1385
|
+
--------------------------------------------------------------------------
|
1386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1387
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1389
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1390
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1391
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1393
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:50:18 UTC +00:00]]
|
1394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1395
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1396
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1398
|
+
----------------------------------------------------------------------------------
|
1399
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1400
|
+
----------------------------------------------------------------------------------
|
1401
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1402
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1404
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1405
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1407
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1408
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1409
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1411
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1413
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1414
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1415
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1417
|
+
-----------------------------------------------------------------------------------
|
1418
|
+
ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
|
1419
|
+
-----------------------------------------------------------------------------------
|
1420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1421
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1422
|
+
------------------------------------------------
|
1423
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1424
|
+
------------------------------------------------
|
1425
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1426
|
+
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1429
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1432
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1433
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1434
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1435
|
+
--------------------------------------------------------------------------
|
1436
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1437
|
+
--------------------------------------------------------------------------
|
1438
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1439
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.2ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1441
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1442
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1443
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1445
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:51:17 UTC +00:00]]
|
1446
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1447
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1448
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1450
|
+
----------------------------------------------------------------------------------
|
1451
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1452
|
+
----------------------------------------------------------------------------------
|
1453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1454
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1456
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1457
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1459
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1460
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1461
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1463
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1465
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1466
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1467
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1469
|
+
-----------------------------------------------------------------------------------
|
1470
|
+
ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
|
1471
|
+
-----------------------------------------------------------------------------------
|
1472
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1473
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1474
|
+
-----------------------------------------------------------------------------
|
1475
|
+
ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
|
1476
|
+
-----------------------------------------------------------------------------
|
1477
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1478
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "active" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
1479
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1480
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1481
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1482
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140424234705')[0m
|
1483
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1484
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1485
|
+
------------------------------------------------
|
1486
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1487
|
+
------------------------------------------------
|
1488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1489
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1491
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1492
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1494
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1495
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1496
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1497
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1498
|
+
--------------------------------------------------------------------------
|
1499
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1500
|
+
--------------------------------------------------------------------------
|
1501
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1502
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.2ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1504
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1506
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1508
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:52:53 UTC +00:00]]
|
1509
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1510
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1511
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1513
|
+
----------------------------------------------------------------------------------
|
1514
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1515
|
+
----------------------------------------------------------------------------------
|
1516
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1517
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1519
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1520
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1522
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1523
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1524
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1526
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1528
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1529
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1530
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1531
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1532
|
+
-----------------------------------------------------------------------------------
|
1533
|
+
ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
|
1534
|
+
-----------------------------------------------------------------------------------
|
1535
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1537
|
+
-----------------------------------------------------------------------------
|
1538
|
+
ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
|
1539
|
+
-----------------------------------------------------------------------------
|
1540
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1541
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1542
|
+
------------------------------------------------
|
1543
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1544
|
+
------------------------------------------------
|
1545
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1546
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1549
|
+
[1m[35mSQL (3.7ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1551
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1552
|
+
[1m[36mProject Load (0.2ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1553
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1554
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1555
|
+
--------------------------------------------------------------------------
|
1556
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1557
|
+
--------------------------------------------------------------------------
|
1558
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1559
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1561
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1562
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1563
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1565
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 02:53:12 UTC +00:00]]
|
1566
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1567
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1568
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1570
|
+
----------------------------------------------------------------------------------
|
1571
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1572
|
+
----------------------------------------------------------------------------------
|
1573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1574
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1576
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1577
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1579
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1580
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1581
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1583
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1585
|
+
[1m[35mProject Load (0.0ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1586
|
+
[1m[36mProject Load (0.0ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1587
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1588
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1589
|
+
-----------------------------------------------------------------------------------
|
1590
|
+
ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
|
1591
|
+
-----------------------------------------------------------------------------------
|
1592
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1593
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1594
|
+
-----------------------------------------------------------------------------
|
1595
|
+
ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
|
1596
|
+
-----------------------------------------------------------------------------
|
1597
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1598
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1600
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1601
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1602
|
+
------------------------------------------------
|
1603
|
+
ActivatorTest: test_it_can_find_the_active_items
|
1604
|
+
------------------------------------------------
|
1605
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1606
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1608
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1609
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1611
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1612
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."active" = 't' LIMIT 1[0m
|
1613
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1614
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1615
|
+
--------------------------------------------------------------------------
|
1616
|
+
ActivatorTest: test_it_deactivates_old_items_when_creating_new_active_ones
|
1617
|
+
--------------------------------------------------------------------------
|
1618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1619
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'
|
1621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1622
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1623
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'
|
1625
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "projects" SET "active" = ?, "updated_at" = ? WHERE "projects"."id" = 1[0m [["active", false], ["updated_at", Fri, 25 Apr 2014 03:04:24 UTC +00:00]]
|
1626
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1627
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 1]]
|
1628
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1629
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1630
|
+
----------------------------------------------------------------------------------
|
1631
|
+
ActivatorTest: test_it_deactivates_other_items_when_setting_another_item_to_active
|
1632
|
+
----------------------------------------------------------------------------------
|
1633
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1634
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("active", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1636
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1637
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 2) AND "projects"."active" = 't'[0m
|
1639
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1640
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1641
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE (id <> 1) AND "projects"."active" = 't'[0m
|
1643
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1645
|
+
[1m[35mProject Load (0.1ms)[0m SELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1 [["id", 1]]
|
1646
|
+
[1m[36mProject Load (0.1ms)[0m [1mSELECT "projects".* FROM "projects" WHERE "projects"."id" = ? LIMIT 1[0m [["id", 2]]
|
1647
|
+
[1m[35m (2.7ms)[0m rollback transaction
|
1648
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1649
|
+
-----------------------------------------------------------------------------------
|
1650
|
+
ActivatorTest: test_it_shouldnt_have_an_active_class_method_if_its_not_an_activator
|
1651
|
+
-----------------------------------------------------------------------------------
|
1652
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1653
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
1654
|
+
-----------------------------------------------------------------------------
|
1655
|
+
ActivatorTest: test_it_shouldnt_have_deactivation_methods_if_not_an_activator
|
1656
|
+
-----------------------------------------------------------------------------
|
1657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1658
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1660
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|