acts_as_interval 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/Rakefile +32 -0
- data/lib/acts_as_interval.rb +3 -0
- data/lib/acts_as_interval/acts_as_interval.rb +31 -0
- data/lib/acts_as_interval/version.rb +3 -0
- data/lib/tasks/acts_as_interval_tasks.rake +4 -0
- data/test/acts_as_interval_test.rb +27 -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 +15 -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/interval.rb +3 -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 +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -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 +4 -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/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150227133736_create_intervals.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +74 -0
- data/test/dummy/log/test.log +1586 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/intervals.yml +9 -0
- data/test/dummy/test/models/interval_test.rb +4 -0
- data/test/test_helper.rb +15 -0
- metadata +165 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Precompile additional assets.
|
7
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.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
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 2587f5d3ab0061185b3b63c8ac156ba15ed94bf6e06e8b95feebe2cdc226db6e0fbca14d8d7de56d6d19ff6d92374219e559f1165e229d8880e48e6848d2246c
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: cdc321b31e1f7b3e2601ac3d5a8e0e5a4115a003c5a21f8048263ebb555ce1ef1b7e1d2d200c381ed65fbb9e6ef71d51181ab6cb1859b5649a05d2d204fee0b3
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
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: 20150227133736) do
|
15
|
+
|
16
|
+
create_table "intervals", force: true do |t|
|
17
|
+
t.datetime "starts_at"
|
18
|
+
t.datetime "ends_at"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
Binary file
|
@@ -0,0 +1,74 @@
|
|
1
|
+
[1m[36m (109.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (66.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateIntervals (20150227121358)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
|
8
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150227121358"]]
|
9
|
+
[1m[35m (94.9ms)[0m commit transaction
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
12
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
13
|
+
Migrating to CreateIntervals (20150227121358)
|
14
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.2ms)[0m DROP TABLE "intervals"
|
16
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'[0m
|
17
|
+
[1m[35m (118.3ms)[0m commit transaction
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20
|
+
Migrating to CreateIntervals (20150227121358)
|
21
|
+
[1m[35m (0.0ms)[0m begin transaction
|
22
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
+
Migrating to CreateIntervals (20150227121358)
|
25
|
+
[1m[35m (0.0ms)[0m begin transaction
|
26
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
27
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
|
28
|
+
[1m[36m (113.4ms)[0m [1mcommit transaction[0m
|
29
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
32
|
+
Migrating to CreateIntervals (20150227121358)
|
33
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35m (0.2ms)[0m DROP TABLE "intervals"
|
35
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'[0m
|
36
|
+
[1m[35m (101.3ms)[0m commit transaction
|
37
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
39
|
+
Migrating to CreateIntervals (20150227121358)
|
40
|
+
[1m[35m (0.0ms)[0m begin transaction
|
41
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
42
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
43
|
+
Migrating to CreateIntervals (20150227121358)
|
44
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
46
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
|
47
|
+
[1m[36m (128.2ms)[0m [1mcommit transaction[0m
|
48
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
51
|
+
Migrating to CreateIntervals (20150227121358)
|
52
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.2ms)[0m DROP TABLE "intervals"
|
54
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'[0m
|
55
|
+
[1m[35m (115.2ms)[0m commit transaction
|
56
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
58
|
+
Migrating to CreateIntervals (20150227121358)
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
Migrating to CreateInterval (20150227121358)
|
61
|
+
[1m[35m (0.0ms)[0m begin transaction
|
62
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "interval" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
63
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
|
64
|
+
[1m[36m (112.0ms)[0m [1mcommit transaction[0m
|
65
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
Migrating to CreateIntervals (20150227133736)
|
68
|
+
[1m[35m (0.0ms)[0m begin transaction
|
69
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "starts_at" datetime, "ends_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
70
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227133736"]]
|
71
|
+
[1m[36m (111.8ms)[0m [1mcommit transaction[0m
|
72
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
73
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
74
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
@@ -0,0 +1,1586 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
------------------------------
|
3
|
+
ActsAsIntervalTest: test_truth
|
4
|
+
------------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
----------------------------------------
|
8
|
+
ActsAsIntervalTest: test_intervals_after
|
9
|
+
----------------------------------------
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
-----------------------------------------
|
13
|
+
ActsAsIntervalTest: test_intervals_before
|
14
|
+
-----------------------------------------
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
----------------------------------------
|
18
|
+
ActsAsIntervalTest: test_intervals_after
|
19
|
+
----------------------------------------
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
+
-----------------------------------------
|
23
|
+
ActsAsIntervalTest: test_intervals_before
|
24
|
+
-----------------------------------------
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
----------------------------------------
|
28
|
+
ActsAsIntervalTest: test_intervals_after
|
29
|
+
----------------------------------------
|
30
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
+
-----------------------------------------
|
33
|
+
ActsAsIntervalTest: test_intervals_before
|
34
|
+
-----------------------------------------
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
+
------------------------------
|
38
|
+
ActsAsIntervalTest: test_truth
|
39
|
+
------------------------------
|
40
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
------------------------------------------
|
43
|
+
ActsAsIntervalTest: test_check_if_interval
|
44
|
+
------------------------------------------
|
45
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
47
|
+
---------------------------------
|
48
|
+
ActsAsIntervalTest: test_whatever
|
49
|
+
---------------------------------
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
------------------------------------------
|
53
|
+
ActsAsIntervalTest: test_check_if_interval
|
54
|
+
------------------------------------------
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
------------------------------------------
|
58
|
+
ActsAsIntervalTest: test_check_if_interval
|
59
|
+
------------------------------------------
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
------------------------------------------
|
63
|
+
ActsAsIntervalTest: test_check_if_interval
|
64
|
+
------------------------------------------
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
+
------------------------------------------
|
68
|
+
ActsAsIntervalTest: test_check_if_interval
|
69
|
+
------------------------------------------
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
72
|
+
---------------------------------
|
73
|
+
IntervalTest: test_interval_model
|
74
|
+
---------------------------------
|
75
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
|
76
|
+
SQLite3::SQLException: no such table: intervals: SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
|
77
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
78
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
79
|
+
---------------------------------
|
80
|
+
IntervalTest: test_interval_model
|
81
|
+
---------------------------------
|
82
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
|
83
|
+
SQLite3::SQLException: no such table: intervals: SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
|
84
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
85
|
+
[1m[35m (0.0ms)[0m begin transaction
|
86
|
+
------------------------------------------
|
87
|
+
ActsAsIntervalTest: test_check_if_interval
|
88
|
+
------------------------------------------
|
89
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90
|
+
[1m[36m (121.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
91
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
92
|
+
[1m[36m (134.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
93
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
94
|
+
Migrating to CreateIntervals (20150227133736)
|
95
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
96
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "starts_at" datetime, "ends_at" datetime, "created_at" datetime, "updated_at" datetime)
|
97
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150227133736"]]
|
98
|
+
[1m[35m (97.0ms)[0m commit transaction
|
99
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
100
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
101
|
+
[1m[35m (0.1ms)[0m begin transaction
|
102
|
+
------------------------------------------
|
103
|
+
ActsAsIntervalTest: test_check_if_interval
|
104
|
+
------------------------------------------
|
105
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
107
|
+
---------------------------------
|
108
|
+
IntervalTest: test_interval_model
|
109
|
+
---------------------------------
|
110
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1[0m
|
111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
112
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
113
|
+
[1m[35m (0.1ms)[0m begin transaction
|
114
|
+
---------------------------------
|
115
|
+
IntervalTest: test_interval_model
|
116
|
+
---------------------------------
|
117
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1[0m
|
118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
120
|
+
------------------------------------------
|
121
|
+
ActsAsIntervalTest: test_check_if_interval
|
122
|
+
------------------------------------------
|
123
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
126
|
+
---------------------------------
|
127
|
+
IntervalTest: test_interval_model
|
128
|
+
---------------------------------
|
129
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
130
|
+
[1m[35m (0.0ms)[0m begin transaction
|
131
|
+
------------------------------------------
|
132
|
+
ActsAsIntervalTest: test_check_if_interval
|
133
|
+
------------------------------------------
|
134
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
135
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
137
|
+
---------------------------------
|
138
|
+
IntervalTest: test_interval_model
|
139
|
+
---------------------------------
|
140
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
141
|
+
[1m[35m (0.0ms)[0m begin transaction
|
142
|
+
------------------------------------------
|
143
|
+
ActsAsIntervalTest: test_check_if_interval
|
144
|
+
------------------------------------------
|
145
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
146
|
+
[1m[35m (0.0ms)[0m begin transaction
|
147
|
+
-----------------------------------------
|
148
|
+
ActsAsIntervalTest: test_intervals_before
|
149
|
+
-----------------------------------------
|
150
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
151
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:01:39.702635"], ["ends_at", "2015-02-20 14:01:39.697382"], ["starts_at", "2015-01-27 14:01:39.697253"], ["updated_at", "2015-02-27 14:01:39.702635"]]
|
152
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
153
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
154
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:01:39.705604"], ["ends_at", "2015-02-27 13:01:39.705313"], ["starts_at", "2015-02-26 14:01:39.705242"], ["updated_at", "2015-02-27 14:01:39.705604"]]
|
155
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
156
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
157
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
159
|
+
------------------------------------------
|
160
|
+
ActsAsIntervalTest: test_check_if_interval
|
161
|
+
------------------------------------------
|
162
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
163
|
+
[1m[35m (0.0ms)[0m begin transaction
|
164
|
+
-----------------------------------------
|
165
|
+
ActsAsIntervalTest: test_intervals_before
|
166
|
+
-----------------------------------------
|
167
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
168
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:03:39.507938"], ["ends_at", "2015-02-20 14:03:39.502560"], ["starts_at", "2015-01-27 14:03:39.502419"], ["updated_at", "2015-02-27 14:03:39.507938"]]
|
169
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
170
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:03:39.510770"], ["ends_at", "2015-02-27 13:03:39.510491"], ["starts_at", "2015-02-26 14:03:39.510398"], ["updated_at", "2015-02-27 14:03:39.510770"]]
|
172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
173
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
174
|
+
[1m[35m (0.0ms)[0m begin transaction
|
175
|
+
---------------------------------
|
176
|
+
IntervalTest: test_interval_model
|
177
|
+
---------------------------------
|
178
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
179
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
181
|
+
---------------------------------
|
182
|
+
IntervalTest: test_interval_model
|
183
|
+
---------------------------------
|
184
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
186
|
+
------------------------------------------
|
187
|
+
ActsAsIntervalTest: test_check_if_interval
|
188
|
+
------------------------------------------
|
189
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191
|
+
-----------------------------------------
|
192
|
+
ActsAsIntervalTest: test_intervals_before
|
193
|
+
-----------------------------------------
|
194
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
195
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:04:25.741962"], ["ends_at", "2015-02-20 14:04:25.736790"], ["starts_at", "2015-01-27 14:04:25.736657"], ["updated_at", "2015-02-27 14:04:25.741962"]]
|
196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
197
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
198
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:04:25.744903"], ["ends_at", "2015-02-27 13:04:25.744615"], ["starts_at", "2015-02-26 14:04:25.744549"], ["updated_at", "2015-02-27 14:04:25.744903"]]
|
199
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
201
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
203
|
+
---------------------------------
|
204
|
+
IntervalTest: test_interval_model
|
205
|
+
---------------------------------
|
206
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
207
|
+
[1m[35m (0.0ms)[0m begin transaction
|
208
|
+
------------------------------------------
|
209
|
+
ActsAsIntervalTest: test_check_if_interval
|
210
|
+
------------------------------------------
|
211
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
212
|
+
[1m[35m (0.0ms)[0m begin transaction
|
213
|
+
-----------------------------------------
|
214
|
+
ActsAsIntervalTest: test_intervals_before
|
215
|
+
-----------------------------------------
|
216
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
217
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:06:36.663476"], ["ends_at", "2015-02-20 14:06:36.659428"], ["starts_at", "2015-01-27 14:06:36.659283"], ["updated_at", "2015-02-27 14:06:36.663476"]]
|
218
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
220
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:06:36.665745"], ["ends_at", "2015-02-27 13:06:36.665484"], ["starts_at", "2015-02-26 14:06:36.665381"], ["updated_at", "2015-02-27 14:06:36.665745"]]
|
221
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
222
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
223
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
224
|
+
[1m[35m (0.1ms)[0m begin transaction
|
225
|
+
------------------------------------------
|
226
|
+
ActsAsIntervalTest: test_check_if_interval
|
227
|
+
------------------------------------------
|
228
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230
|
+
-----------------------------------------
|
231
|
+
ActsAsIntervalTest: test_intervals_before
|
232
|
+
-----------------------------------------
|
233
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
234
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:08:08.100954"], ["ends_at", "2015-02-20 14:08:08.099643"], ["starts_at", "2015-01-27 14:08:08.099512"], ["updated_at", "2015-02-27 14:08:08.100954"]]
|
235
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
236
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:08:08.103311"], ["ends_at", "2015-02-27 13:08:08.103078"], ["starts_at", "2015-02-26 14:08:08.103010"], ["updated_at", "2015-02-27 14:08:08.103311"]]
|
238
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
240
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
241
|
+
[1m[35m (0.1ms)[0m begin transaction
|
242
|
+
------------------------------------------
|
243
|
+
ActsAsIntervalTest: test_check_if_interval
|
244
|
+
------------------------------------------
|
245
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
246
|
+
[1m[35m (0.1ms)[0m begin transaction
|
247
|
+
-----------------------------------------
|
248
|
+
ActsAsIntervalTest: test_intervals_before
|
249
|
+
-----------------------------------------
|
250
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:08:24.719072"], ["ends_at", "2015-02-20 14:08:24.717337"], ["starts_at", "2015-01-27 14:08:24.717180"], ["updated_at", "2015-02-27 14:08:24.719072"]]
|
252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
254
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:08:24.722113"], ["ends_at", "2015-02-27 13:08:24.721777"], ["starts_at", "2015-02-26 14:08:24.721705"], ["updated_at", "2015-02-27 14:08:24.722113"]]
|
255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
256
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
257
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
258
|
+
[1m[35m (0.1ms)[0m begin transaction
|
259
|
+
------------------------------------------
|
260
|
+
ActsAsIntervalTest: test_check_if_interval
|
261
|
+
------------------------------------------
|
262
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
264
|
+
-----------------------------------------
|
265
|
+
ActsAsIntervalTest: test_intervals_before
|
266
|
+
-----------------------------------------
|
267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
268
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:09:00.564997"], ["ends_at", "2015-02-20 14:09:00.563656"], ["starts_at", "2015-01-27 14:09:00.563528"], ["updated_at", "2015-02-27 14:09:00.564997"]]
|
269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
271
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:09:00.567223"], ["ends_at", "2015-02-27 13:09:00.566989"], ["starts_at", "2015-02-26 14:09:00.566940"], ["updated_at", "2015-02-27 14:09:00.567223"]]
|
272
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
273
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
276
|
+
------------------------------------------
|
277
|
+
ActsAsIntervalTest: test_check_if_interval
|
278
|
+
------------------------------------------
|
279
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
280
|
+
[1m[35m (0.0ms)[0m begin transaction
|
281
|
+
-----------------------------------------
|
282
|
+
ActsAsIntervalTest: test_intervals_before
|
283
|
+
-----------------------------------------
|
284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
285
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:09:24.023759"], ["ends_at", "2015-02-20 14:09:24.022381"], ["starts_at", "2015-01-27 14:09:24.022248"], ["updated_at", "2015-02-27 14:09:24.023759"]]
|
286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
287
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
288
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:09:24.025942"], ["ends_at", "2015-02-27 13:09:24.025705"], ["starts_at", "2015-02-26 14:09:24.025657"], ["updated_at", "2015-02-27 14:09:24.025942"]]
|
289
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
290
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
291
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
293
|
+
------------------------------------------
|
294
|
+
ActsAsIntervalTest: test_check_if_interval
|
295
|
+
------------------------------------------
|
296
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
298
|
+
-----------------------------------------
|
299
|
+
ActsAsIntervalTest: test_intervals_before
|
300
|
+
-----------------------------------------
|
301
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
302
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:10:31.350608"], ["ends_at", "2015-02-20 14:10:31.349165"], ["starts_at", "2015-01-27 14:10:31.349029"], ["updated_at", "2015-02-27 14:10:31.350608"]]
|
303
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
305
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:10:31.352762"], ["ends_at", "2015-02-27 13:10:31.352523"], ["starts_at", "2015-02-26 14:10:31.352474"], ["updated_at", "2015-02-27 14:10:31.352762"]]
|
306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
307
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
308
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
309
|
+
[1m[35m (0.1ms)[0m begin transaction
|
310
|
+
------------------------------------------
|
311
|
+
ActsAsIntervalTest: test_check_if_interval
|
312
|
+
------------------------------------------
|
313
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
314
|
+
[1m[35m (0.0ms)[0m begin transaction
|
315
|
+
-----------------------------------------
|
316
|
+
ActsAsIntervalTest: test_intervals_before
|
317
|
+
-----------------------------------------
|
318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
319
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:11:27.408281"], ["ends_at", "2015-02-20 14:11:27.406874"], ["starts_at", "2015-01-27 14:11:27.406736"], ["updated_at", "2015-02-27 14:11:27.408281"]]
|
320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
322
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:11:27.410682"], ["ends_at", "2015-02-27 13:11:27.410374"], ["starts_at", "2015-02-26 14:11:27.410286"], ["updated_at", "2015-02-27 14:11:27.410682"]]
|
323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
324
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
325
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
327
|
+
------------------------------------------
|
328
|
+
ActsAsIntervalTest: test_check_if_interval
|
329
|
+
------------------------------------------
|
330
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
331
|
+
[1m[35m (0.0ms)[0m begin transaction
|
332
|
+
-----------------------------------------
|
333
|
+
ActsAsIntervalTest: test_intervals_before
|
334
|
+
-----------------------------------------
|
335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
336
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:13:31.091591"], ["ends_at", "2015-02-20 14:13:31.089584"], ["starts_at", "2015-01-27 14:13:31.089394"], ["updated_at", "2015-02-27 14:13:31.091591"]]
|
337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
338
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
339
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:13:31.094834"], ["ends_at", "2015-02-27 13:13:31.094402"], ["starts_at", "2015-02-26 14:13:31.094324"], ["updated_at", "2015-02-27 14:13:31.094834"]]
|
340
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
341
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
342
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
343
|
+
[1m[35m (0.1ms)[0m begin transaction
|
344
|
+
------------------------------------------
|
345
|
+
ActsAsIntervalTest: test_check_if_interval
|
346
|
+
------------------------------------------
|
347
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
349
|
+
-----------------------------------------
|
350
|
+
ActsAsIntervalTest: test_intervals_before
|
351
|
+
-----------------------------------------
|
352
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
353
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:13:33.964077"], ["ends_at", "2015-02-20 14:13:33.962760"], ["starts_at", "2015-01-27 14:13:33.962628"], ["updated_at", "2015-02-27 14:13:33.964077"]]
|
354
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
356
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:13:33.966253"], ["ends_at", "2015-02-27 13:13:33.966000"], ["starts_at", "2015-02-26 14:13:33.965949"], ["updated_at", "2015-02-27 14:13:33.966253"]]
|
357
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
358
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
359
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
361
|
+
------------------------------------------
|
362
|
+
ActsAsIntervalTest: test_check_if_interval
|
363
|
+
------------------------------------------
|
364
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
365
|
+
[1m[35m (0.1ms)[0m begin transaction
|
366
|
+
-----------------------------------------
|
367
|
+
ActsAsIntervalTest: test_intervals_before
|
368
|
+
-----------------------------------------
|
369
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
370
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:13:59.500505"], ["updated_at", "2015-02-27 14:13:59.500505"]]
|
371
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
373
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-27 14:13:59.504838"], ["updated_at", "2015-02-27 14:13:59.504838"]]
|
374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
375
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
376
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
377
|
+
[1m[35m (0.1ms)[0m begin transaction
|
378
|
+
------------------------------------------
|
379
|
+
ActsAsIntervalTest: test_check_if_interval
|
380
|
+
------------------------------------------
|
381
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
382
|
+
[1m[35m (0.0ms)[0m begin transaction
|
383
|
+
-----------------------------------------
|
384
|
+
ActsAsIntervalTest: test_intervals_before
|
385
|
+
-----------------------------------------
|
386
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
387
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:03.034865"], ["updated_at", "2015-02-27 14:14:03.034865"]]
|
388
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
389
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
390
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-27 14:14:03.039206"], ["updated_at", "2015-02-27 14:14:03.039206"]]
|
391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
392
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
393
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
395
|
+
------------------------------------------
|
396
|
+
ActsAsIntervalTest: test_check_if_interval
|
397
|
+
------------------------------------------
|
398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
400
|
+
-----------------------------------------
|
401
|
+
ActsAsIntervalTest: test_intervals_before
|
402
|
+
-----------------------------------------
|
403
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
404
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:31.394985"], ["updated_at", "2015-02-27 14:14:31.394985"]]
|
405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
406
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
407
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-27 14:14:31.399137"], ["updated_at", "2015-02-27 14:14:31.399137"]]
|
408
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
409
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
410
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
412
|
+
------------------------------------------
|
413
|
+
ActsAsIntervalTest: test_check_if_interval
|
414
|
+
------------------------------------------
|
415
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
417
|
+
-----------------------------------------
|
418
|
+
ActsAsIntervalTest: test_intervals_before
|
419
|
+
-----------------------------------------
|
420
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
421
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:34.412336"], ["updated_at", "2015-02-27 14:14:34.412336"]]
|
422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
423
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
424
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-02-27 14:14:34.416481"], ["updated_at", "2015-02-27 14:14:34.416481"]]
|
425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
426
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
427
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
429
|
+
------------------------------------------
|
430
|
+
ActsAsIntervalTest: test_check_if_interval
|
431
|
+
------------------------------------------
|
432
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
434
|
+
-----------------------------------------
|
435
|
+
ActsAsIntervalTest: test_intervals_before
|
436
|
+
-----------------------------------------
|
437
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
438
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:14:51.384238"], ["ends_at", "2015-02-20 14:14:51.379622"], ["starts_at", "2015-01-27 14:14:51.379455"], ["updated_at", "2015-02-27 14:14:51.384238"]]
|
439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
440
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
441
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:14:51.386900"], ["ends_at", "2015-02-27 13:14:51.386592"], ["starts_at", "2015-02-26 14:14:51.386530"], ["updated_at", "2015-02-27 14:14:51.386900"]]
|
442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
443
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
444
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
446
|
+
------------------------------------------
|
447
|
+
ActsAsIntervalTest: test_check_if_interval
|
448
|
+
------------------------------------------
|
449
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m begin transaction
|
451
|
+
-----------------------------------------
|
452
|
+
ActsAsIntervalTest: test_intervals_before
|
453
|
+
-----------------------------------------
|
454
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
455
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:15:12.154958"], ["ends_at", "2015-02-20 14:15:12.151745"], ["starts_at", "2015-01-27 14:15:12.151616"], ["updated_at", "2015-02-27 14:15:12.154958"]]
|
456
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
458
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:15:12.157300"], ["ends_at", "2015-02-27 13:15:12.157043"], ["starts_at", "2015-02-26 14:15:12.156960"], ["updated_at", "2015-02-27 14:15:12.157300"]]
|
459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
460
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
461
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
463
|
+
------------------------------------------
|
464
|
+
ActsAsIntervalTest: test_check_if_interval
|
465
|
+
------------------------------------------
|
466
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
467
|
+
[1m[35m (0.0ms)[0m begin transaction
|
468
|
+
-----------------------------------------
|
469
|
+
ActsAsIntervalTest: test_intervals_before
|
470
|
+
-----------------------------------------
|
471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
472
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:16:00.877359"], ["ends_at", "2015-02-20 14:16:00.874092"], ["starts_at", "2015-01-27 14:16:00.873964"], ["updated_at", "2015-02-27 14:16:00.877359"]]
|
473
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
474
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
475
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:16:00.879543"], ["ends_at", "2015-02-27 13:16:00.879316"], ["starts_at", "2015-02-26 14:16:00.879264"], ["updated_at", "2015-02-27 14:16:00.879543"]]
|
476
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
477
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
478
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
479
|
+
[1m[35m (0.1ms)[0m begin transaction
|
480
|
+
------------------------------------------
|
481
|
+
ActsAsIntervalTest: test_check_if_interval
|
482
|
+
------------------------------------------
|
483
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m begin transaction
|
485
|
+
-----------------------------------------
|
486
|
+
ActsAsIntervalTest: test_intervals_before
|
487
|
+
-----------------------------------------
|
488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
489
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:16:28.654129"], ["ends_at", "2015-02-20 14:16:28.650865"], ["starts_at", "2015-01-27 14:16:28.650737"], ["updated_at", "2015-02-27 14:16:28.654129"]]
|
490
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
492
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:16:28.656339"], ["ends_at", "2015-02-27 13:16:28.656116"], ["starts_at", "2015-02-26 14:16:28.656065"], ["updated_at", "2015-02-27 14:16:28.656339"]]
|
493
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
494
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:16:28.656065')[0m
|
495
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
496
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
497
|
+
[1m[35m (0.1ms)[0m begin transaction
|
498
|
+
------------------------------------------
|
499
|
+
ActsAsIntervalTest: test_check_if_interval
|
500
|
+
------------------------------------------
|
501
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.0ms)[0m begin transaction
|
503
|
+
-----------------------------------------
|
504
|
+
ActsAsIntervalTest: test_intervals_before
|
505
|
+
-----------------------------------------
|
506
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
507
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:16:57.062931"], ["ends_at", "2015-02-20 14:16:57.059475"], ["starts_at", "2015-01-27 14:16:57.059336"], ["updated_at", "2015-02-27 14:16:57.062931"]]
|
508
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
510
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:16:57.065203"], ["ends_at", "2015-02-27 13:16:57.064939"], ["starts_at", "2015-02-26 14:16:57.064880"], ["updated_at", "2015-02-27 14:16:57.065203"]]
|
511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
512
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:16:57.064880')[0m
|
513
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE "intervals"."id" = 1
|
514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
515
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
517
|
+
------------------------------------------
|
518
|
+
ActsAsIntervalTest: test_check_if_interval
|
519
|
+
------------------------------------------
|
520
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
522
|
+
-----------------------------------------
|
523
|
+
ActsAsIntervalTest: test_intervals_before
|
524
|
+
-----------------------------------------
|
525
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
526
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:18:42.359370"], ["ends_at", "2015-02-20 14:18:42.355897"], ["starts_at", "2015-01-27 14:18:42.355741"], ["updated_at", "2015-02-27 14:18:42.359370"]]
|
527
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
528
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
529
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:18:42.361740"], ["ends_at", "2015-02-27 13:18:42.361465"], ["starts_at", "2015-02-26 14:18:42.361401"], ["updated_at", "2015-02-27 14:18:42.361740"]]
|
530
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
531
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:18:42.361401')[0m
|
532
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
533
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
535
|
+
------------------------------------------
|
536
|
+
ActsAsIntervalTest: test_check_if_interval
|
537
|
+
------------------------------------------
|
538
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
539
|
+
[1m[35m (0.0ms)[0m begin transaction
|
540
|
+
-----------------------------------------
|
541
|
+
ActsAsIntervalTest: test_intervals_before
|
542
|
+
-----------------------------------------
|
543
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
544
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:14.140443"], ["ends_at", "2015-02-20 14:20:14.137130"], ["starts_at", "2015-01-27 14:20:14.136991"], ["updated_at", "2015-02-27 14:20:14.140443"]]
|
545
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
547
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:14.142909"], ["ends_at", "2014-02-27 14:20:14.142591"], ["starts_at", "2013-02-27 14:20:14.142532"], ["updated_at", "2015-02-27 14:20:14.142909"]]
|
548
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
550
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:14.143776"], ["ends_at", "2016-02-27 14:20:14.143532"], ["starts_at", "2015-03-27 14:20:14.143484"], ["updated_at", "2015-02-27 14:20:14.143776"]]
|
551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
552
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
553
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:14.144501"], ["ends_at", "2015-02-27 13:20:14.144301"], ["starts_at", "2015-02-26 14:20:14.144254"], ["updated_at", "2015-02-27 14:20:14.144501"]]
|
554
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
555
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:14.144254')[0m
|
556
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
557
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
559
|
+
------------------------------------------
|
560
|
+
ActsAsIntervalTest: test_check_if_interval
|
561
|
+
------------------------------------------
|
562
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
564
|
+
-----------------------------------------
|
565
|
+
ActsAsIntervalTest: test_intervals_before
|
566
|
+
-----------------------------------------
|
567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:29.984968"], ["ends_at", "2015-02-20 14:20:29.981626"], ["starts_at", "2015-01-27 14:20:29.981499"], ["updated_at", "2015-02-27 14:20:29.984968"]]
|
569
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
570
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
571
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:29.987389"], ["ends_at", "2014-02-27 14:20:29.987091"], ["starts_at", "2013-02-27 14:20:29.987028"], ["updated_at", "2015-02-27 14:20:29.987389"]]
|
572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
574
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:29.988249"], ["ends_at", "2016-02-27 14:20:29.988002"], ["starts_at", "2015-03-27 14:20:29.987953"], ["updated_at", "2015-02-27 14:20:29.988249"]]
|
575
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
577
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:29.989003"], ["ends_at", "2015-02-27 13:20:29.988774"], ["starts_at", "2015-02-26 14:20:29.988728"], ["updated_at", "2015-02-27 14:20:29.989003"]]
|
578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
579
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:29.988728')[0m
|
580
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
581
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
582
|
+
[1m[35m (0.1ms)[0m begin transaction
|
583
|
+
------------------------------------------
|
584
|
+
ActsAsIntervalTest: test_check_if_interval
|
585
|
+
------------------------------------------
|
586
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
587
|
+
[1m[35m (0.0ms)[0m begin transaction
|
588
|
+
-----------------------------------------
|
589
|
+
ActsAsIntervalTest: test_intervals_before
|
590
|
+
-----------------------------------------
|
591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
592
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:44.552902"], ["ends_at", "2015-02-20 14:20:44.549530"], ["starts_at", "2015-01-27 14:20:44.549392"], ["updated_at", "2015-02-27 14:20:44.552902"]]
|
593
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
594
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
595
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:44.555301"], ["ends_at", "2014-02-27 14:20:44.555031"], ["starts_at", "2013-02-27 14:20:44.554967"], ["updated_at", "2015-02-27 14:20:44.555301"]]
|
596
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
598
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:20:44.556166"], ["ends_at", "2016-02-27 14:20:44.555939"], ["starts_at", "2015-03-27 14:20:44.555889"], ["updated_at", "2015-02-27 14:20:44.556166"]]
|
599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
600
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
601
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:20:44.556930"], ["ends_at", "2015-02-27 13:20:44.556727"], ["starts_at", "2015-02-26 14:20:44.556680"], ["updated_at", "2015-02-27 14:20:44.556930"]]
|
602
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
603
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:44.556680')[0m
|
604
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
605
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
606
|
+
[1m[35m (0.1ms)[0m begin transaction
|
607
|
+
------------------------------------------
|
608
|
+
ActsAsIntervalTest: test_check_if_interval
|
609
|
+
------------------------------------------
|
610
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
611
|
+
[1m[35m (0.0ms)[0m begin transaction
|
612
|
+
-----------------------------------------
|
613
|
+
ActsAsIntervalTest: test_intervals_before
|
614
|
+
-----------------------------------------
|
615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
616
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:21:13.099731"], ["ends_at", "2015-02-20 14:21:13.096436"], ["starts_at", "2015-01-27 14:21:13.096281"], ["updated_at", "2015-02-27 14:21:13.099731"]]
|
617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
619
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:21:13.102065"], ["ends_at", "2014-02-27 14:21:13.101808"], ["starts_at", "2013-02-27 14:21:13.101753"], ["updated_at", "2015-02-27 14:21:13.102065"]]
|
620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
622
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:21:13.102934"], ["ends_at", "2016-02-27 14:21:13.102717"], ["starts_at", "2015-03-27 14:21:13.102670"], ["updated_at", "2015-02-27 14:21:13.102934"]]
|
623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
627
|
+
------------------------------------------
|
628
|
+
ActsAsIntervalTest: test_check_if_interval
|
629
|
+
------------------------------------------
|
630
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
631
|
+
[1m[35m (0.0ms)[0m begin transaction
|
632
|
+
-----------------------------------------
|
633
|
+
ActsAsIntervalTest: test_intervals_before
|
634
|
+
-----------------------------------------
|
635
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
636
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:21:24.763592"], ["ends_at", "2015-02-20 14:21:24.759591"], ["starts_at", "2015-01-27 14:21:24.759375"], ["updated_at", "2015-02-27 14:21:24.763592"]]
|
637
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
638
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
639
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:21:24.766225"], ["ends_at", "2014-02-27 14:21:24.765919"], ["starts_at", "2013-02-27 14:21:24.765851"], ["updated_at", "2015-02-27 14:21:24.766225"]]
|
640
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
641
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
642
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:21:24.767237"], ["ends_at", "2016-02-27 14:21:24.766975"], ["starts_at", "2015-03-27 14:21:24.766918"], ["updated_at", "2015-02-27 14:21:24.767237"]]
|
643
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
645
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:21:24.768197"], ["ends_at", "2016-02-27 14:21:24.767922"], ["starts_at", "2014-02-27 14:21:24.767864"], ["updated_at", "2015-02-27 14:21:24.768197"]]
|
646
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
647
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
648
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:21:24.769010"], ["ends_at", "2015-02-27 13:21:24.768790"], ["starts_at", "2015-02-26 14:21:24.768740"], ["updated_at", "2015-02-27 14:21:24.769010"]]
|
649
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
650
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:21:24.768740')
|
651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
652
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
654
|
+
------------------------------------------
|
655
|
+
ActsAsIntervalTest: test_check_if_interval
|
656
|
+
------------------------------------------
|
657
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
659
|
+
----------------------------------------
|
660
|
+
ActsAsIntervalTest: test_intervals_after
|
661
|
+
----------------------------------------
|
662
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
663
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.407990"], ["ends_at", "2015-02-20 14:22:27.404506"], ["starts_at", "2015-01-27 14:22:27.404356"], ["updated_at", "2015-02-27 14:22:27.407990"]]
|
664
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
666
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:22:27.410280"], ["ends_at", "2014-02-27 14:22:27.409999"], ["starts_at", "2013-02-27 14:22:27.409938"], ["updated_at", "2015-02-27 14:22:27.410280"]]
|
667
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
669
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.411128"], ["ends_at", "2016-02-27 14:22:27.410901"], ["starts_at", "2015-03-27 14:22:27.410854"], ["updated_at", "2015-02-27 14:22:27.411128"]]
|
670
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
672
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:22:27.411847"], ["ends_at", "2016-02-27 14:22:27.411624"], ["starts_at", "2014-02-27 14:22:27.411579"], ["updated_at", "2015-02-27 14:22:27.411847"]]
|
673
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
674
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
675
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.412572"], ["ends_at", "2015-02-27 13:22:27.412350"], ["starts_at", "2015-02-26 14:22:27.412305"], ["updated_at", "2015-02-27 14:22:27.412572"]]
|
676
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
677
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:22:27.412350')
|
678
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
679
|
+
[1m[35m (0.0ms)[0m begin transaction
|
680
|
+
-----------------------------------------
|
681
|
+
ActsAsIntervalTest: test_intervals_before
|
682
|
+
-----------------------------------------
|
683
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
684
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.414361"], ["ends_at", "2015-02-20 14:22:27.414123"], ["starts_at", "2015-01-27 14:22:27.414064"], ["updated_at", "2015-02-27 14:22:27.414361"]]
|
685
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
686
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:22:27.415483"], ["ends_at", "2014-02-27 14:22:27.415107"], ["starts_at", "2013-02-27 14:22:27.415034"], ["updated_at", "2015-02-27 14:22:27.415483"]]
|
688
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
689
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
690
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.416425"], ["ends_at", "2016-02-27 14:22:27.416178"], ["starts_at", "2015-03-27 14:22:27.416128"], ["updated_at", "2015-02-27 14:22:27.416425"]]
|
691
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
693
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:22:27.417196"], ["ends_at", "2016-02-27 14:22:27.416966"], ["starts_at", "2014-02-27 14:22:27.416918"], ["updated_at", "2015-02-27 14:22:27.417196"]]
|
694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
695
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
696
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:22:27.417942"], ["ends_at", "2015-02-27 13:22:27.417711"], ["starts_at", "2015-02-26 14:22:27.417665"], ["updated_at", "2015-02-27 14:22:27.417942"]]
|
697
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
698
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:22:27.417665')
|
699
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
700
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
701
|
+
[1m[35m (0.1ms)[0m begin transaction
|
702
|
+
------------------------------------------
|
703
|
+
ActsAsIntervalTest: test_check_if_interval
|
704
|
+
------------------------------------------
|
705
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
707
|
+
-----------------------------------------------
|
708
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
709
|
+
-----------------------------------------------
|
710
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
711
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.854148"], ["ends_at", "2015-02-28 14:25:21.850826"], ["starts_at", "2015-02-26 14:25:21.850690"], ["updated_at", "2015-02-27 14:25:21.854148"]]
|
712
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
713
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
714
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.856358"], ["ends_at", "2015-01-27 14:25:21.856105"], ["starts_at", "2014-02-27 14:25:21.856027"], ["updated_at", "2015-02-27 14:25:21.856358"]]
|
715
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
716
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
717
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.857165"], ["ends_at", "2017-02-27 14:25:21.856956"], ["starts_at", "2016-02-27 14:25:21.856909"], ["updated_at", "2015-02-27 14:25:21.857165"]]
|
718
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
720
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.857898"], ["ends_at", "2015-03-27 14:25:21.857689"], ["starts_at", "2015-01-27 14:25:21.857645"], ["updated_at", "2015-02-27 14:25:21.857898"]]
|
721
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
722
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
723
|
+
[1m[35m (0.0ms)[0m begin transaction
|
724
|
+
----------------------------------------
|
725
|
+
ActsAsIntervalTest: test_intervals_after
|
726
|
+
----------------------------------------
|
727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
728
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.859113"], ["ends_at", "2015-02-20 14:25:21.858877"], ["starts_at", "2015-01-27 14:25:21.858828"], ["updated_at", "2015-02-27 14:25:21.859113"]]
|
729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
730
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
731
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.860104"], ["ends_at", "2014-02-27 14:25:21.859829"], ["starts_at", "2013-02-27 14:25:21.859780"], ["updated_at", "2015-02-27 14:25:21.860104"]]
|
732
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
734
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.860987"], ["ends_at", "2016-02-27 14:25:21.860740"], ["starts_at", "2015-03-27 14:25:21.860691"], ["updated_at", "2015-02-27 14:25:21.860987"]]
|
735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
736
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
737
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.862059"], ["ends_at", "2016-02-27 14:25:21.861566"], ["starts_at", "2014-02-27 14:25:21.861493"], ["updated_at", "2015-02-27 14:25:21.862059"]]
|
738
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
740
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.863210"], ["ends_at", "2015-02-27 13:25:21.862956"], ["starts_at", "2015-02-26 14:25:21.862901"], ["updated_at", "2015-02-27 14:25:21.863210"]]
|
741
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
742
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:25:21.862956')
|
743
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
745
|
+
-----------------------------------------
|
746
|
+
ActsAsIntervalTest: test_intervals_before
|
747
|
+
-----------------------------------------
|
748
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
749
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.864986"], ["ends_at", "2015-02-20 14:25:21.864732"], ["starts_at", "2015-01-27 14:25:21.864680"], ["updated_at", "2015-02-27 14:25:21.864986"]]
|
750
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
752
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.865844"], ["ends_at", "2014-02-27 14:25:21.865610"], ["starts_at", "2013-02-27 14:25:21.865562"], ["updated_at", "2015-02-27 14:25:21.865844"]]
|
753
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
754
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
755
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.866737"], ["ends_at", "2016-02-27 14:25:21.866407"], ["starts_at", "2015-03-27 14:25:21.866362"], ["updated_at", "2015-02-27 14:25:21.866737"]]
|
756
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
757
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
758
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:25:21.867481"], ["ends_at", "2016-02-27 14:25:21.867248"], ["starts_at", "2014-02-27 14:25:21.867202"], ["updated_at", "2015-02-27 14:25:21.867481"]]
|
759
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
760
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
761
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:25:21.868191"], ["ends_at", "2015-02-27 13:25:21.867981"], ["starts_at", "2015-02-26 14:25:21.867939"], ["updated_at", "2015-02-27 14:25:21.868191"]]
|
762
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
763
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:25:21.867939')
|
764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
765
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
767
|
+
------------------------------------------
|
768
|
+
ActsAsIntervalTest: test_check_if_interval
|
769
|
+
------------------------------------------
|
770
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
771
|
+
[1m[35m (0.0ms)[0m begin transaction
|
772
|
+
-----------------------------------------------
|
773
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
774
|
+
-----------------------------------------------
|
775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
776
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.660025"], ["ends_at", "2015-02-28 14:27:31.656764"], ["starts_at", "2015-02-26 14:27:31.656636"], ["updated_at", "2015-02-27 14:27:31.660025"]]
|
777
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
779
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.662195"], ["ends_at", "2015-01-27 14:27:31.661950"], ["starts_at", "2014-02-27 14:27:31.661895"], ["updated_at", "2015-02-27 14:27:31.662195"]]
|
780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
782
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.663035"], ["ends_at", "2017-02-27 14:27:31.662828"], ["starts_at", "2016-02-27 14:27:31.662784"], ["updated_at", "2015-02-27 14:27:31.663035"]]
|
783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
785
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.663792"], ["ends_at", "2015-03-27 14:27:31.663585"], ["starts_at", "2015-01-27 14:27:31.663541"], ["updated_at", "2015-02-27 14:27:31.663792"]]
|
786
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
787
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
789
|
+
----------------------------------------
|
790
|
+
ActsAsIntervalTest: test_intervals_after
|
791
|
+
----------------------------------------
|
792
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
793
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.665362"], ["ends_at", "2015-02-20 14:27:31.664978"], ["starts_at", "2015-01-27 14:27:31.664905"], ["updated_at", "2015-02-27 14:27:31.665362"]]
|
794
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
795
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
796
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.666478"], ["ends_at", "2014-02-27 14:27:31.666187"], ["starts_at", "2013-02-27 14:27:31.666110"], ["updated_at", "2015-02-27 14:27:31.666478"]]
|
797
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.667321"], ["ends_at", "2016-02-27 14:27:31.667075"], ["starts_at", "2015-03-27 14:27:31.667028"], ["updated_at", "2015-02-27 14:27:31.667321"]]
|
800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
801
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
802
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.668220"], ["ends_at", "2016-02-27 14:27:31.667936"], ["starts_at", "2014-02-27 14:27:31.667872"], ["updated_at", "2015-02-27 14:27:31.668220"]]
|
803
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
804
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
805
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.668986"], ["ends_at", "2015-02-27 13:27:31.668755"], ["starts_at", "2015-02-26 14:27:31.668711"], ["updated_at", "2015-02-27 14:27:31.668986"]]
|
806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
807
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:27:31.668755')
|
808
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
810
|
+
-----------------------------------------
|
811
|
+
ActsAsIntervalTest: test_intervals_before
|
812
|
+
-----------------------------------------
|
813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
814
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.670684"], ["ends_at", "2015-02-20 14:27:31.670450"], ["starts_at", "2015-01-27 14:27:31.670391"], ["updated_at", "2015-02-27 14:27:31.670684"]]
|
815
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
817
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.671528"], ["ends_at", "2014-02-27 14:27:31.671289"], ["starts_at", "2013-02-27 14:27:31.671242"], ["updated_at", "2015-02-27 14:27:31.671528"]]
|
818
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.672325"], ["ends_at", "2016-02-27 14:27:31.672090"], ["starts_at", "2015-03-27 14:27:31.672045"], ["updated_at", "2015-02-27 14:27:31.672325"]]
|
821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
823
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:27:31.673055"], ["ends_at", "2016-02-27 14:27:31.672825"], ["starts_at", "2014-02-27 14:27:31.672780"], ["updated_at", "2015-02-27 14:27:31.673055"]]
|
824
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:27:31.673774"], ["ends_at", "2015-02-27 13:27:31.673551"], ["starts_at", "2015-02-26 14:27:31.673510"], ["updated_at", "2015-02-27 14:27:31.673774"]]
|
827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
828
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:27:31.673510')
|
829
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
830
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
832
|
+
------------------------------------------
|
833
|
+
ActsAsIntervalTest: test_check_if_interval
|
834
|
+
------------------------------------------
|
835
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
836
|
+
[1m[35m (0.0ms)[0m begin transaction
|
837
|
+
-----------------------------------------------
|
838
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
839
|
+
-----------------------------------------------
|
840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
841
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.011803"], ["ends_at", "2015-02-28 14:28:01.008386"], ["starts_at", "2015-02-26 14:28:01.008247"], ["updated_at", "2015-02-27 14:28:01.011803"]]
|
842
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
843
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
844
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.014014"], ["ends_at", "2015-01-27 14:28:01.013767"], ["starts_at", "2014-02-27 14:28:01.013710"], ["updated_at", "2015-02-27 14:28:01.014014"]]
|
845
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
846
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
847
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.014859"], ["ends_at", "2017-02-27 14:28:01.014647"], ["starts_at", "2016-02-27 14:28:01.014602"], ["updated_at", "2015-02-27 14:28:01.014859"]]
|
848
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
849
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
850
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.015596"], ["ends_at", "2015-03-27 14:28:01.015389"], ["starts_at", "2015-01-27 14:28:01.015345"], ["updated_at", "2015-02-27 14:28:01.015596"]]
|
851
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
852
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
853
|
+
[1m[35m (0.0ms)[0m begin transaction
|
854
|
+
----------------------------------------
|
855
|
+
ActsAsIntervalTest: test_intervals_after
|
856
|
+
----------------------------------------
|
857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.016786"], ["ends_at", "2015-02-20 14:28:01.016536"], ["starts_at", "2015-01-27 14:28:01.016488"], ["updated_at", "2015-02-27 14:28:01.016786"]]
|
859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.017618"], ["ends_at", "2014-02-27 14:28:01.017404"], ["starts_at", "2013-02-27 14:28:01.017346"], ["updated_at", "2015-02-27 14:28:01.017618"]]
|
862
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.018390"], ["ends_at", "2016-02-27 14:28:01.018181"], ["starts_at", "2015-03-27 14:28:01.018136"], ["updated_at", "2015-02-27 14:28:01.018390"]]
|
865
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
867
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.019199"], ["ends_at", "2016-02-27 14:28:01.018987"], ["starts_at", "2014-02-27 14:28:01.018943"], ["updated_at", "2015-02-27 14:28:01.019199"]]
|
868
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
869
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
870
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.019900"], ["ends_at", "2015-02-27 13:28:01.019708"], ["starts_at", "2015-02-26 14:28:01.019667"], ["updated_at", "2015-02-27 14:28:01.019900"]]
|
871
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
872
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:28:01.019708')
|
873
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
874
|
+
[1m[35m (0.0ms)[0m begin transaction
|
875
|
+
-----------------------------------------
|
876
|
+
ActsAsIntervalTest: test_intervals_before
|
877
|
+
-----------------------------------------
|
878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
879
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.021632"], ["ends_at", "2015-02-20 14:28:01.021354"], ["starts_at", "2015-01-27 14:28:01.021305"], ["updated_at", "2015-02-27 14:28:01.021632"]]
|
880
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
881
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
882
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.022485"], ["ends_at", "2014-02-27 14:28:01.022233"], ["starts_at", "2013-02-27 14:28:01.022174"], ["updated_at", "2015-02-27 14:28:01.022485"]]
|
883
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
885
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.023564"], ["ends_at", "2016-02-27 14:28:01.023288"], ["starts_at", "2015-03-27 14:28:01.023148"], ["updated_at", "2015-02-27 14:28:01.023564"]]
|
886
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
888
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:01.024377"], ["ends_at", "2016-02-27 14:28:01.024157"], ["starts_at", "2014-02-27 14:28:01.024111"], ["updated_at", "2015-02-27 14:28:01.024377"]]
|
889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
890
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
891
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:01.025122"], ["ends_at", "2015-02-27 13:28:01.024912"], ["starts_at", "2015-02-26 14:28:01.024868"], ["updated_at", "2015-02-27 14:28:01.025122"]]
|
892
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
893
|
+
[1m[35mInterval Load (0.1ms)[0m SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:28:01.024868')
|
894
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
895
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
896
|
+
[1m[35m (0.1ms)[0m begin transaction
|
897
|
+
------------------------------------------
|
898
|
+
ActsAsIntervalTest: test_check_if_interval
|
899
|
+
------------------------------------------
|
900
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
901
|
+
[1m[35m (0.0ms)[0m begin transaction
|
902
|
+
-----------------------------------------------
|
903
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
904
|
+
-----------------------------------------------
|
905
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
906
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.008217"], ["ends_at", "2015-02-28 14:28:14.004945"], ["starts_at", "2015-02-26 14:28:14.004803"], ["updated_at", "2015-02-27 14:28:14.008217"]]
|
907
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
909
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.010668"], ["ends_at", "2015-01-27 14:28:14.010313"], ["starts_at", "2014-02-27 14:28:14.010248"], ["updated_at", "2015-02-27 14:28:14.010668"]]
|
910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
912
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.011566"], ["ends_at", "2017-02-27 14:28:14.011320"], ["starts_at", "2016-02-27 14:28:14.011273"], ["updated_at", "2015-02-27 14:28:14.011566"]]
|
913
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
915
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.012346"], ["ends_at", "2015-03-27 14:28:14.012097"], ["starts_at", "2015-01-27 14:28:14.012051"], ["updated_at", "2015-02-27 14:28:14.012346"]]
|
916
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
917
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 14:28:14.004945') * DATEDIFF('2015-02-26 14:28:14.004803', end_date) >= 0) AND ("intervals"."id" != 1)[0m
|
918
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 14:28:14.004945') * DATEDIFF('2015-02-26 14:28:14.004803', end_date) >= 0) AND ("intervals"."id" != 1)
|
919
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
920
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
921
|
+
----------------------------------------
|
922
|
+
ActsAsIntervalTest: test_intervals_after
|
923
|
+
----------------------------------------
|
924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.016048"], ["ends_at", "2015-02-20 14:28:14.015706"], ["starts_at", "2015-01-27 14:28:14.015623"], ["updated_at", "2015-02-27 14:28:14.016048"]]
|
926
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
927
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
928
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.016968"], ["ends_at", "2014-02-27 14:28:14.016740"], ["starts_at", "2013-02-27 14:28:14.016677"], ["updated_at", "2015-02-27 14:28:14.016968"]]
|
929
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
930
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
931
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.017797"], ["ends_at", "2016-02-27 14:28:14.017567"], ["starts_at", "2015-03-27 14:28:14.017493"], ["updated_at", "2015-02-27 14:28:14.017797"]]
|
932
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
934
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.018632"], ["ends_at", "2016-02-27 14:28:14.018319"], ["starts_at", "2014-02-27 14:28:14.018274"], ["updated_at", "2015-02-27 14:28:14.018632"]]
|
935
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
936
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
937
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.019357"], ["ends_at", "2015-02-27 13:28:14.019158"], ["starts_at", "2015-02-26 14:28:14.019115"], ["updated_at", "2015-02-27 14:28:14.019357"]]
|
938
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
939
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:28:14.019158')[0m
|
940
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
942
|
+
-----------------------------------------
|
943
|
+
ActsAsIntervalTest: test_intervals_before
|
944
|
+
-----------------------------------------
|
945
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
946
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.020992"], ["ends_at", "2015-02-20 14:28:14.020726"], ["starts_at", "2015-01-27 14:28:14.020674"], ["updated_at", "2015-02-27 14:28:14.020992"]]
|
947
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
948
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
949
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.021809"], ["ends_at", "2014-02-27 14:28:14.021572"], ["starts_at", "2013-02-27 14:28:14.021525"], ["updated_at", "2015-02-27 14:28:14.021809"]]
|
950
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
952
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.022626"], ["ends_at", "2016-02-27 14:28:14.022369"], ["starts_at", "2015-03-27 14:28:14.022321"], ["updated_at", "2015-02-27 14:28:14.022626"]]
|
953
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
954
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
955
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:28:14.023395"], ["ends_at", "2016-02-27 14:28:14.023167"], ["starts_at", "2014-02-27 14:28:14.023097"], ["updated_at", "2015-02-27 14:28:14.023395"]]
|
956
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
957
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
958
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:28:14.024122"], ["ends_at", "2015-02-27 13:28:14.023927"], ["starts_at", "2015-02-26 14:28:14.023865"], ["updated_at", "2015-02-27 14:28:14.024122"]]
|
959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
960
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:28:14.023865')[0m
|
961
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
962
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
963
|
+
[1m[35m (0.1ms)[0m begin transaction
|
964
|
+
------------------------------------------
|
965
|
+
ActsAsIntervalTest: test_check_if_interval
|
966
|
+
------------------------------------------
|
967
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
968
|
+
[1m[35m (0.0ms)[0m begin transaction
|
969
|
+
-----------------------------------------------
|
970
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
971
|
+
-----------------------------------------------
|
972
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
973
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.450800"], ["ends_at", "2015-02-28 14:29:56.441375"], ["starts_at", "2015-02-26 14:29:56.441251"], ["updated_at", "2015-02-27 14:29:56.450800"]]
|
974
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
975
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
976
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.453761"], ["ends_at", "2015-01-27 14:29:56.453390"], ["starts_at", "2014-02-27 14:29:56.453307"], ["updated_at", "2015-02-27 14:29:56.453761"]]
|
977
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
978
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
979
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.454762"], ["ends_at", "2017-02-27 14:29:56.454508"], ["starts_at", "2016-02-27 14:29:56.454455"], ["updated_at", "2015-02-27 14:29:56.454762"]]
|
980
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
982
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.455573"], ["ends_at", "2015-03-27 14:29:56.455341"], ["starts_at", "2015-01-27 14:29:56.455279"], ["updated_at", "2015-02-27 14:29:56.455573"]]
|
983
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
984
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
985
|
+
[1m[35m (0.0ms)[0m begin transaction
|
986
|
+
----------------------------------------
|
987
|
+
ActsAsIntervalTest: test_intervals_after
|
988
|
+
----------------------------------------
|
989
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
990
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.456930"], ["ends_at", "2015-02-20 14:29:56.456677"], ["starts_at", "2015-01-27 14:29:56.456623"], ["updated_at", "2015-02-27 14:29:56.456930"]]
|
991
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
992
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
993
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.457822"], ["ends_at", "2014-02-27 14:29:56.457588"], ["starts_at", "2013-02-27 14:29:56.457541"], ["updated_at", "2015-02-27 14:29:56.457822"]]
|
994
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
995
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
996
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.458753"], ["ends_at", "2016-02-27 14:29:56.458512"], ["starts_at", "2015-03-27 14:29:56.458396"], ["updated_at", "2015-02-27 14:29:56.458753"]]
|
997
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
998
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
999
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.459573"], ["ends_at", "2016-02-27 14:29:56.459358"], ["starts_at", "2014-02-27 14:29:56.459312"], ["updated_at", "2015-02-27 14:29:56.459573"]]
|
1000
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1001
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1002
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.460365"], ["ends_at", "2015-02-27 13:29:56.460165"], ["starts_at", "2015-02-26 14:29:56.460098"], ["updated_at", "2015-02-27 14:29:56.460365"]]
|
1003
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1004
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1005
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1006
|
+
-----------------------------------------
|
1007
|
+
ActsAsIntervalTest: test_intervals_before
|
1008
|
+
-----------------------------------------
|
1009
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1010
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.461707"], ["ends_at", "2015-02-20 14:29:56.461442"], ["starts_at", "2015-01-27 14:29:56.461391"], ["updated_at", "2015-02-27 14:29:56.461707"]]
|
1011
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1012
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1013
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.462638"], ["ends_at", "2014-02-27 14:29:56.462388"], ["starts_at", "2013-02-27 14:29:56.462339"], ["updated_at", "2015-02-27 14:29:56.462638"]]
|
1014
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1015
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1016
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.463472"], ["ends_at", "2016-02-27 14:29:56.463250"], ["starts_at", "2015-03-27 14:29:56.463203"], ["updated_at", "2015-02-27 14:29:56.463472"]]
|
1017
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1019
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:29:56.464250"], ["ends_at", "2016-02-27 14:29:56.464031"], ["starts_at", "2014-02-27 14:29:56.463985"], ["updated_at", "2015-02-27 14:29:56.464250"]]
|
1020
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1021
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1022
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:29:56.464991"], ["ends_at", "2015-02-27 13:29:56.464791"], ["starts_at", "2015-02-26 14:29:56.464747"], ["updated_at", "2015-02-27 14:29:56.464991"]]
|
1023
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1024
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1025
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1026
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1027
|
+
------------------------------------------
|
1028
|
+
ActsAsIntervalTest: test_check_if_interval
|
1029
|
+
------------------------------------------
|
1030
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1031
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1032
|
+
-----------------------------------------------
|
1033
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1034
|
+
-----------------------------------------------
|
1035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1036
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.533022"], ["ends_at", "2015-02-28 14:30:08.529814"], ["starts_at", "2015-02-26 14:30:08.529682"], ["updated_at", "2015-02-27 14:30:08.533022"]]
|
1037
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1038
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1039
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.535270"], ["ends_at", "2015-01-27 14:30:08.534987"], ["starts_at", "2014-02-27 14:30:08.534931"], ["updated_at", "2015-02-27 14:30:08.535270"]]
|
1040
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1041
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1042
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.536093"], ["ends_at", "2017-02-27 14:30:08.535867"], ["starts_at", "2016-02-27 14:30:08.535800"], ["updated_at", "2015-02-27 14:30:08.536093"]]
|
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.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.536832"], ["ends_at", "2015-03-27 14:30:08.536594"], ["starts_at", "2015-01-27 14:30:08.536550"], ["updated_at", "2015-02-27 14:30:08.536832"]]
|
1046
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1047
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 14:30:08.529814') * DATEDIFF('2015-02-26 14:30:08.529682', end_date) >= 0) AND ("intervals"."id" != 1)[0m
|
1048
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 14:30:08.529814') * DATEDIFF('2015-02-26 14:30:08.529682', end_date) >= 0) AND ("intervals"."id" != 1)
|
1049
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1051
|
+
----------------------------------------
|
1052
|
+
ActsAsIntervalTest: test_intervals_after
|
1053
|
+
----------------------------------------
|
1054
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1055
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.541499"], ["ends_at", "2015-02-20 14:30:08.540763"], ["starts_at", "2015-01-27 14:30:08.540582"], ["updated_at", "2015-02-27 14:30:08.541499"]]
|
1056
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1057
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1058
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.542697"], ["ends_at", "2014-02-27 14:30:08.542374"], ["starts_at", "2013-02-27 14:30:08.542297"], ["updated_at", "2015-02-27 14:30:08.542697"]]
|
1059
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1061
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.543559"], ["ends_at", "2016-02-27 14:30:08.543327"], ["starts_at", "2015-03-27 14:30:08.543278"], ["updated_at", "2015-02-27 14:30:08.543559"]]
|
1062
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1064
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.544336"], ["ends_at", "2016-02-27 14:30:08.544107"], ["starts_at", "2014-02-27 14:30:08.544060"], ["updated_at", "2015-02-27 14:30:08.544336"]]
|
1065
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1067
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.545149"], ["ends_at", "2015-02-27 13:30:08.544921"], ["starts_at", "2015-02-26 14:30:08.544875"], ["updated_at", "2015-02-27 14:30:08.545149"]]
|
1068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1069
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:30:08.544921')[0m
|
1070
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1072
|
+
-----------------------------------------
|
1073
|
+
ActsAsIntervalTest: test_intervals_before
|
1074
|
+
-----------------------------------------
|
1075
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1076
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.546728"], ["ends_at", "2015-02-20 14:30:08.546461"], ["starts_at", "2015-01-27 14:30:08.546407"], ["updated_at", "2015-02-27 14:30:08.546728"]]
|
1077
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1078
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1079
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.547565"], ["ends_at", "2014-02-27 14:30:08.547323"], ["starts_at", "2013-02-27 14:30:08.547275"], ["updated_at", "2015-02-27 14:30:08.547565"]]
|
1080
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1081
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1082
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.548382"], ["ends_at", "2016-02-27 14:30:08.548131"], ["starts_at", "2015-03-27 14:30:08.548084"], ["updated_at", "2015-02-27 14:30:08.548382"]]
|
1083
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1084
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1085
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:30:08.549170"], ["ends_at", "2016-02-27 14:30:08.548927"], ["starts_at", "2014-02-27 14:30:08.548857"], ["updated_at", "2015-02-27 14:30:08.549170"]]
|
1086
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1087
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1088
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:30:08.549867"], ["ends_at", "2015-02-27 13:30:08.549676"], ["starts_at", "2015-02-26 14:30:08.549634"], ["updated_at", "2015-02-27 14:30:08.549867"]]
|
1089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1090
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:30:08.549634')[0m
|
1091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1092
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1093
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1094
|
+
------------------------------------------
|
1095
|
+
ActsAsIntervalTest: test_check_if_interval
|
1096
|
+
------------------------------------------
|
1097
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1098
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1099
|
+
-----------------------------------------------
|
1100
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1101
|
+
-----------------------------------------------
|
1102
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1103
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.616025"], ["ends_at", "2015-02-28 14:57:53.612703"], ["starts_at", "2015-02-26 14:57:53.612568"], ["updated_at", "2015-02-27 14:57:53.616025"]]
|
1104
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1105
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1106
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.618280"], ["ends_at", "2015-01-27 14:57:53.618016"], ["starts_at", "2014-02-27 14:57:53.617957"], ["updated_at", "2015-02-27 14:57:53.618280"]]
|
1107
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1109
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.619193"], ["ends_at", "2017-02-27 14:57:53.618966"], ["starts_at", "2016-02-27 14:57:53.618919"], ["updated_at", "2015-02-27 14:57:53.619193"]]
|
1110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.619999"], ["ends_at", "2015-03-27 14:57:53.619774"], ["starts_at", "2015-01-27 14:57:53.619728"], ["updated_at", "2015-02-27 14:57:53.619999"]]
|
1113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1114
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)[0m
|
1115
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)
|
1116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1118
|
+
----------------------------------------
|
1119
|
+
ActsAsIntervalTest: test_intervals_after
|
1120
|
+
----------------------------------------
|
1121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1122
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.623532"], ["ends_at", "2015-02-20 14:57:53.623264"], ["starts_at", "2015-01-27 14:57:53.623200"], ["updated_at", "2015-02-27 14:57:53.623532"]]
|
1123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1124
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1125
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.624403"], ["ends_at", "2014-02-27 14:57:53.624169"], ["starts_at", "2013-02-27 14:57:53.624121"], ["updated_at", "2015-02-27 14:57:53.624403"]]
|
1126
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1127
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1128
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.625216"], ["ends_at", "2016-02-27 14:57:53.624992"], ["starts_at", "2015-03-27 14:57:53.624944"], ["updated_at", "2015-02-27 14:57:53.625216"]]
|
1129
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1131
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.625977"], ["ends_at", "2016-02-27 14:57:53.625754"], ["starts_at", "2014-02-27 14:57:53.625708"], ["updated_at", "2015-02-27 14:57:53.625977"]]
|
1132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1133
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1134
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.626746"], ["ends_at", "2015-02-27 13:57:53.626541"], ["starts_at", "2015-02-26 14:57:53.626497"], ["updated_at", "2015-02-27 14:57:53.626746"]]
|
1135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1136
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1137
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1138
|
+
-----------------------------------------
|
1139
|
+
ActsAsIntervalTest: test_intervals_before
|
1140
|
+
-----------------------------------------
|
1141
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1142
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.627944"], ["ends_at", "2015-02-20 14:57:53.627682"], ["starts_at", "2015-01-27 14:57:53.627635"], ["updated_at", "2015-02-27 14:57:53.627944"]]
|
1143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1145
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.628733"], ["ends_at", "2014-02-27 14:57:53.628496"], ["starts_at", "2013-02-27 14:57:53.628450"], ["updated_at", "2015-02-27 14:57:53.628733"]]
|
1146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.629531"], ["ends_at", "2016-02-27 14:57:53.629285"], ["starts_at", "2015-03-27 14:57:53.629237"], ["updated_at", "2015-02-27 14:57:53.629531"]]
|
1149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1151
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:57:53.630317"], ["ends_at", "2016-02-27 14:57:53.630080"], ["starts_at", "2014-02-27 14:57:53.630035"], ["updated_at", "2015-02-27 14:57:53.630317"]]
|
1152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1154
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:57:53.631166"], ["ends_at", "2015-02-27 13:57:53.630961"], ["starts_at", "2015-02-26 14:57:53.630896"], ["updated_at", "2015-02-27 14:57:53.631166"]]
|
1155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1156
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1157
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1159
|
+
------------------------------------------
|
1160
|
+
ActsAsIntervalTest: test_check_if_interval
|
1161
|
+
------------------------------------------
|
1162
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1163
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1164
|
+
-----------------------------------------------
|
1165
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1166
|
+
-----------------------------------------------
|
1167
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1168
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:25.038574"], ["ends_at", "2015-02-28 14:58:25.035227"], ["starts_at", "2015-02-26 14:58:25.035092"], ["updated_at", "2015-02-27 14:58:25.038574"]]
|
1169
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1170
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:25.040896"], ["ends_at", "2015-01-27 14:58:25.040623"], ["starts_at", "2014-02-27 14:58:25.040560"], ["updated_at", "2015-02-27 14:58:25.040896"]]
|
1172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1173
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1174
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:25.041755"], ["ends_at", "2017-02-27 14:58:25.041533"], ["starts_at", "2016-02-27 14:58:25.041486"], ["updated_at", "2015-02-27 14:58:25.041755"]]
|
1175
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1177
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:25.042547"], ["ends_at", "2015-03-27 14:58:25.042299"], ["starts_at", "2015-01-27 14:58:25.042253"], ["updated_at", "2015-02-27 14:58:25.042547"]]
|
1178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1179
|
+
[1m[36mInterval Load (0.4ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)[0m
|
1180
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)
|
1181
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1182
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1183
|
+
----------------------------------------
|
1184
|
+
ActsAsIntervalTest: test_intervals_after
|
1185
|
+
----------------------------------------
|
1186
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1187
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:50.345715"], ["ends_at", "2015-02-20 14:58:50.344348"], ["starts_at", "2015-01-27 14:58:50.343989"], ["updated_at", "2015-02-27 14:58:50.345715"]]
|
1188
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1189
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1190
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:50.355090"], ["ends_at", "2014-02-27 14:58:50.352456"], ["starts_at", "2013-02-27 14:58:50.351945"], ["updated_at", "2015-02-27 14:58:50.355090"]]
|
1191
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1192
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1193
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:50.360982"], ["ends_at", "2016-02-27 14:58:50.359333"], ["starts_at", "2015-03-27 14:58:50.359002"], ["updated_at", "2015-02-27 14:58:50.360982"]]
|
1194
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1195
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1196
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:50.366666"], ["ends_at", "2016-02-27 14:58:50.364911"], ["starts_at", "2014-02-27 14:58:50.364541"], ["updated_at", "2015-02-27 14:58:50.366666"]]
|
1197
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1198
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1199
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:50.371683"], ["ends_at", "2015-02-27 13:58:50.370265"], ["starts_at", "2015-02-26 14:58:50.370039"], ["updated_at", "2015-02-27 14:58:50.371683"]]
|
1200
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1201
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1203
|
+
-----------------------------------------
|
1204
|
+
ActsAsIntervalTest: test_intervals_before
|
1205
|
+
-----------------------------------------
|
1206
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1207
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:50.378823"], ["ends_at", "2015-02-20 14:58:50.377260"], ["starts_at", "2015-01-27 14:58:50.376986"], ["updated_at", "2015-02-27 14:58:50.378823"]]
|
1208
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1209
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:50.383759"], ["ends_at", "2014-02-27 14:58:50.382372"], ["starts_at", "2013-02-27 14:58:50.382141"], ["updated_at", "2015-02-27 14:58:50.383759"]]
|
1211
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1212
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1213
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:50.388670"], ["ends_at", "2016-02-27 14:58:50.387260"], ["starts_at", "2015-03-27 14:58:50.386995"], ["updated_at", "2015-02-27 14:58:50.388670"]]
|
1214
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1215
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1216
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:58:50.393321"], ["ends_at", "2016-02-27 14:58:50.391958"], ["starts_at", "2014-02-27 14:58:50.391654"], ["updated_at", "2015-02-27 14:58:50.393321"]]
|
1217
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1218
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1219
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:58:50.397907"], ["ends_at", "2015-02-27 13:58:50.396677"], ["starts_at", "2015-02-26 14:58:50.396461"], ["updated_at", "2015-02-27 14:58:50.397907"]]
|
1220
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1221
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1222
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1224
|
+
------------------------------------------
|
1225
|
+
ActsAsIntervalTest: test_check_if_interval
|
1226
|
+
------------------------------------------
|
1227
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1228
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1229
|
+
-----------------------------------------------
|
1230
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1231
|
+
-----------------------------------------------
|
1232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1233
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.130456"], ["ends_at", "2015-02-28 14:59:58.127039"], ["starts_at", "2015-02-26 14:59:58.126862"], ["updated_at", "2015-02-27 14:59:58.130456"]]
|
1234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1236
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.132733"], ["ends_at", "2015-01-27 14:59:58.132468"], ["starts_at", "2014-02-27 14:59:58.132408"], ["updated_at", "2015-02-27 14:59:58.132733"]]
|
1237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1238
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1239
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.133570"], ["ends_at", "2017-02-27 14:59:58.133351"], ["starts_at", "2016-02-27 14:59:58.133304"], ["updated_at", "2015-02-27 14:59:58.133570"]]
|
1240
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1242
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.134306"], ["ends_at", "2015-03-27 14:59:58.134090"], ["starts_at", "2015-01-27 14:59:58.134047"], ["updated_at", "2015-02-27 14:59:58.134306"]]
|
1243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1246
|
+
----------------------------------------
|
1247
|
+
ActsAsIntervalTest: test_intervals_after
|
1248
|
+
----------------------------------------
|
1249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1250
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.135683"], ["ends_at", "2015-02-20 14:59:58.135406"], ["starts_at", "2015-01-27 14:59:58.135357"], ["updated_at", "2015-02-27 14:59:58.135683"]]
|
1251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.136546"], ["ends_at", "2014-02-27 14:59:58.136324"], ["starts_at", "2013-02-27 14:59:58.136278"], ["updated_at", "2015-02-27 14:59:58.136546"]]
|
1254
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1256
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.137323"], ["ends_at", "2016-02-27 14:59:58.137104"], ["starts_at", "2015-03-27 14:59:58.137059"], ["updated_at", "2015-02-27 14:59:58.137323"]]
|
1257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1259
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.138077"], ["ends_at", "2016-02-27 14:59:58.137860"], ["starts_at", "2014-02-27 14:59:58.137816"], ["updated_at", "2015-02-27 14:59:58.138077"]]
|
1260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1262
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.138797"], ["ends_at", "2015-02-27 13:59:58.138598"], ["starts_at", "2015-02-26 14:59:58.138555"], ["updated_at", "2015-02-27 14:59:58.138797"]]
|
1263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1264
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1265
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1266
|
+
-----------------------------------------
|
1267
|
+
ActsAsIntervalTest: test_intervals_before
|
1268
|
+
-----------------------------------------
|
1269
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1270
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.139976"], ["ends_at", "2015-02-20 14:59:58.139746"], ["starts_at", "2015-01-27 14:59:58.139702"], ["updated_at", "2015-02-27 14:59:58.139976"]]
|
1271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1273
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.140758"], ["ends_at", "2014-02-27 14:59:58.140525"], ["starts_at", "2013-02-27 14:59:58.140481"], ["updated_at", "2015-02-27 14:59:58.140758"]]
|
1274
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1275
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1276
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.141498"], ["ends_at", "2016-02-27 14:59:58.141275"], ["starts_at", "2015-03-27 14:59:58.141232"], ["updated_at", "2015-02-27 14:59:58.141498"]]
|
1277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1279
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 14:59:58.142242"], ["ends_at", "2016-02-27 14:59:58.142006"], ["starts_at", "2014-02-27 14:59:58.141962"], ["updated_at", "2015-02-27 14:59:58.142242"]]
|
1280
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1281
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1282
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 14:59:58.143019"], ["ends_at", "2015-02-27 13:59:58.142808"], ["starts_at", "2015-02-26 14:59:58.142767"], ["updated_at", "2015-02-27 14:59:58.143019"]]
|
1283
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1284
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1285
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1287
|
+
------------------------------------------
|
1288
|
+
ActsAsIntervalTest: test_check_if_interval
|
1289
|
+
------------------------------------------
|
1290
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1292
|
+
-----------------------------------------------
|
1293
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1294
|
+
-----------------------------------------------
|
1295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.194639"], ["ends_at", "2015-02-28 15:01:11.193309"], ["starts_at", "2015-02-26 15:01:11.193172"], ["updated_at", "2015-02-27 15:01:11.194639"]]
|
1297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1299
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.196794"], ["ends_at", "2015-01-27 15:01:11.196560"], ["starts_at", "2014-02-27 15:01:11.196504"], ["updated_at", "2015-02-27 15:01:11.196794"]]
|
1300
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1301
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1302
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.197620"], ["ends_at", "2017-02-27 15:01:11.197411"], ["starts_at", "2016-02-27 15:01:11.197366"], ["updated_at", "2015-02-27 15:01:11.197620"]]
|
1303
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1305
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.198348"], ["ends_at", "2015-03-27 15:01:11.198137"], ["starts_at", "2015-01-27 15:01:11.198094"], ["updated_at", "2015-02-27 15:01:11.198348"]]
|
1306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1307
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1309
|
+
----------------------------------------
|
1310
|
+
ActsAsIntervalTest: test_intervals_after
|
1311
|
+
----------------------------------------
|
1312
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.199627"], ["ends_at", "2015-02-20 15:01:11.199391"], ["starts_at", "2015-01-27 15:01:11.199315"], ["updated_at", "2015-02-27 15:01:11.199627"]]
|
1314
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1316
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.200568"], ["ends_at", "2014-02-27 15:01:11.200342"], ["starts_at", "2013-02-27 15:01:11.200270"], ["updated_at", "2015-02-27 15:01:11.200568"]]
|
1317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.201374"], ["ends_at", "2016-02-27 15:01:11.201155"], ["starts_at", "2015-03-27 15:01:11.201085"], ["updated_at", "2015-02-27 15:01:11.201374"]]
|
1320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1322
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.202261"], ["ends_at", "2016-02-27 15:01:11.201976"], ["starts_at", "2014-02-27 15:01:11.201908"], ["updated_at", "2015-02-27 15:01:11.202261"]]
|
1323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1324
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1325
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.203098"], ["ends_at", "2015-02-27 14:01:11.202895"], ["starts_at", "2015-02-26 15:01:11.202852"], ["updated_at", "2015-02-27 15:01:11.203098"]]
|
1326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1327
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1328
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1329
|
+
-----------------------------------------
|
1330
|
+
ActsAsIntervalTest: test_intervals_before
|
1331
|
+
-----------------------------------------
|
1332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.204327"], ["ends_at", "2015-02-20 15:01:11.204096"], ["starts_at", "2015-01-27 15:01:11.204049"], ["updated_at", "2015-02-27 15:01:11.204327"]]
|
1334
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1336
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.205148"], ["ends_at", "2014-02-27 15:01:11.204924"], ["starts_at", "2013-02-27 15:01:11.204877"], ["updated_at", "2015-02-27 15:01:11.205148"]]
|
1337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1338
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1339
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.205961"], ["ends_at", "2016-02-27 15:01:11.205714"], ["starts_at", "2015-03-27 15:01:11.205667"], ["updated_at", "2015-02-27 15:01:11.205961"]]
|
1340
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1341
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1342
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:11.206789"], ["ends_at", "2016-02-27 15:01:11.206546"], ["starts_at", "2014-02-27 15:01:11.206498"], ["updated_at", "2015-02-27 15:01:11.206789"]]
|
1343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1344
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1345
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:11.207518"], ["ends_at", "2015-02-27 14:01:11.207307"], ["starts_at", "2015-02-26 15:01:11.207266"], ["updated_at", "2015-02-27 15:01:11.207518"]]
|
1346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1348
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1350
|
+
-----------------------------------------------
|
1351
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1352
|
+
-----------------------------------------------
|
1353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1354
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.200544"], ["ends_at", "2015-02-28 15:01:28.196657"], ["starts_at", "2015-02-26 15:01:28.196525"], ["updated_at", "2015-02-27 15:01:28.200544"]]
|
1355
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1356
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1357
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.202758"], ["ends_at", "2015-01-27 15:01:28.202497"], ["starts_at", "2014-02-27 15:01:28.202405"], ["updated_at", "2015-02-27 15:01:28.202758"]]
|
1358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1360
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.203616"], ["ends_at", "2017-02-27 15:01:28.203399"], ["starts_at", "2016-02-27 15:01:28.203354"], ["updated_at", "2015-02-27 15:01:28.203616"]]
|
1361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1363
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.204352"], ["ends_at", "2015-03-27 15:01:28.204143"], ["starts_at", "2015-01-27 15:01:28.204099"], ["updated_at", "2015-02-27 15:01:28.204352"]]
|
1364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1367
|
+
----------------------------------------
|
1368
|
+
ActsAsIntervalTest: test_intervals_after
|
1369
|
+
----------------------------------------
|
1370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.205717"], ["ends_at", "2015-02-20 15:01:28.205414"], ["starts_at", "2015-01-27 15:01:28.205350"], ["updated_at", "2015-02-27 15:01:28.205717"]]
|
1372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1374
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.206670"], ["ends_at", "2014-02-27 15:01:28.206382"], ["starts_at", "2013-02-27 15:01:28.206334"], ["updated_at", "2015-02-27 15:01:28.206670"]]
|
1375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.207534"], ["ends_at", "2016-02-27 15:01:28.207278"], ["starts_at", "2015-03-27 15:01:28.207230"], ["updated_at", "2015-02-27 15:01:28.207534"]]
|
1378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1380
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.208538"], ["ends_at", "2016-02-27 15:01:28.208286"], ["starts_at", "2014-02-27 15:01:28.208204"], ["updated_at", "2015-02-27 15:01:28.208538"]]
|
1381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1383
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.209282"], ["ends_at", "2015-02-27 14:01:28.209074"], ["starts_at", "2015-02-26 15:01:28.209017"], ["updated_at", "2015-02-27 15:01:28.209282"]]
|
1384
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1387
|
+
-----------------------------------------
|
1388
|
+
ActsAsIntervalTest: test_intervals_before
|
1389
|
+
-----------------------------------------
|
1390
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1391
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.210517"], ["ends_at", "2015-02-20 15:01:28.210279"], ["starts_at", "2015-01-27 15:01:28.210232"], ["updated_at", "2015-02-27 15:01:28.210517"]]
|
1392
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1394
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.211315"], ["ends_at", "2014-02-27 15:01:28.211098"], ["starts_at", "2013-02-27 15:01:28.211052"], ["updated_at", "2015-02-27 15:01:28.211315"]]
|
1395
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1396
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1397
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.212095"], ["ends_at", "2016-02-27 15:01:28.211889"], ["starts_at", "2015-03-27 15:01:28.211844"], ["updated_at", "2015-02-27 15:01:28.212095"]]
|
1398
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1399
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1400
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:01:28.212827"], ["ends_at", "2016-02-27 15:01:28.212618"], ["starts_at", "2014-02-27 15:01:28.212574"], ["updated_at", "2015-02-27 15:01:28.212827"]]
|
1401
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1403
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:01:28.213536"], ["ends_at", "2015-02-27 14:01:28.213353"], ["starts_at", "2015-02-26 15:01:28.213301"], ["updated_at", "2015-02-27 15:01:28.213536"]]
|
1404
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1405
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1406
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1408
|
+
-----------------------------------------------
|
1409
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1410
|
+
-----------------------------------------------
|
1411
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1412
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:02:07.276068"], ["ends_at", "2015-02-28 15:02:07.271109"], ["starts_at", "2015-02-26 15:02:07.270951"], ["updated_at", "2015-02-27 15:02:07.276068"]]
|
1413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1414
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1415
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:02:07.278900"], ["ends_at", "2015-01-27 15:02:07.278550"], ["starts_at", "2014-02-27 15:02:07.278462"], ["updated_at", "2015-02-27 15:02:07.278900"]]
|
1416
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1417
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1418
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:02:07.280382"], ["ends_at", "2017-02-27 15:02:07.279967"], ["starts_at", "2016-02-27 15:02:07.279845"], ["updated_at", "2015-02-27 15:02:07.280382"]]
|
1419
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1420
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1421
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:02:07.281331"], ["ends_at", "2015-03-27 15:02:07.281104"], ["starts_at", "2015-01-27 15:02:07.281057"], ["updated_at", "2015-02-27 15:02:07.281331"]]
|
1422
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1423
|
+
[1m[36mInterval Load (0.1ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (1)[0m
|
1424
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1425
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1426
|
+
----------------------------------------
|
1427
|
+
ActsAsIntervalTest: test_intervals_after
|
1428
|
+
----------------------------------------
|
1429
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1430
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:00.638299"], ["ends_at", "2015-02-20 15:03:00.635349"], ["starts_at", "2015-01-27 15:03:00.634795"], ["updated_at", "2015-02-27 15:03:00.638299"]]
|
1431
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1432
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1433
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:00.648398"], ["ends_at", "2014-02-27 15:03:00.645837"], ["starts_at", "2013-02-27 15:03:00.645394"], ["updated_at", "2015-02-27 15:03:00.648398"]]
|
1434
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1435
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1436
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:00.654513"], ["ends_at", "2016-02-27 15:03:00.653229"], ["starts_at", "2015-03-27 15:03:00.652999"], ["updated_at", "2015-02-27 15:03:00.654513"]]
|
1437
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1438
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1439
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:00.659163"], ["ends_at", "2016-02-27 15:03:00.657621"], ["starts_at", "2014-02-27 15:03:00.657321"], ["updated_at", "2015-02-27 15:03:00.659163"]]
|
1440
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1441
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1442
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:00.663927"], ["ends_at", "2015-02-27 14:03:00.662593"], ["starts_at", "2015-02-26 15:03:00.662276"], ["updated_at", "2015-02-27 15:03:00.663927"]]
|
1443
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1444
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1446
|
+
-----------------------------------------
|
1447
|
+
ActsAsIntervalTest: test_intervals_before
|
1448
|
+
-----------------------------------------
|
1449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1450
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:00.670036"], ["ends_at", "2015-02-20 15:03:00.668820"], ["starts_at", "2015-01-27 15:03:00.668545"], ["updated_at", "2015-02-27 15:03:00.670036"]]
|
1451
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1452
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1453
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:00.674099"], ["ends_at", "2014-02-27 15:03:00.672956"], ["starts_at", "2013-02-27 15:03:00.672767"], ["updated_at", "2015-02-27 15:03:00.674099"]]
|
1454
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1456
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:00.678114"], ["ends_at", "2016-02-27 15:03:00.676972"], ["starts_at", "2015-03-27 15:03:00.676755"], ["updated_at", "2015-02-27 15:03:00.678114"]]
|
1457
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1458
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1459
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:00.682182"], ["ends_at", "2016-02-27 15:03:00.681054"], ["starts_at", "2014-02-27 15:03:00.680841"], ["updated_at", "2015-02-27 15:03:00.682182"]]
|
1460
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1462
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:00.685879"], ["ends_at", "2015-02-27 14:03:00.684904"], ["starts_at", "2015-02-26 15:03:00.684719"], ["updated_at", "2015-02-27 15:03:00.685879"]]
|
1463
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1464
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1465
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1467
|
+
-----------------------------------------------
|
1468
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1469
|
+
-----------------------------------------------
|
1470
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1471
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:45.147762"], ["ends_at", "2015-02-28 15:03:45.143910"], ["starts_at", "2015-02-26 15:03:45.143779"], ["updated_at", "2015-02-27 15:03:45.147762"]]
|
1472
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1474
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:45.149994"], ["ends_at", "2015-01-27 15:03:45.149722"], ["starts_at", "2014-02-27 15:03:45.149661"], ["updated_at", "2015-02-27 15:03:45.149994"]]
|
1475
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1477
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:45.150845"], ["ends_at", "2017-02-27 15:03:45.150615"], ["starts_at", "2016-02-27 15:03:45.150569"], ["updated_at", "2015-02-27 15:03:45.150845"]]
|
1478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1480
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:45.151573"], ["ends_at", "2015-03-27 15:03:45.151343"], ["starts_at", "2015-01-27 15:03:45.151298"], ["updated_at", "2015-02-27 15:03:45.151573"]]
|
1481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1482
|
+
[1m[36mInterval Load (0.2ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 15:03:45.143910') * DATEDIFF('2015-02-26 15:03:45.143779', ends_at) >= 0) AND ("intervals"."id" != 1)[0m
|
1483
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 15:03:45.143910') * DATEDIFF('2015-02-26 15:03:45.143779', ends_at) >= 0) AND ("intervals"."id" != 1)
|
1484
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1486
|
+
----------------------------------------
|
1487
|
+
ActsAsIntervalTest: test_intervals_after
|
1488
|
+
----------------------------------------
|
1489
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1490
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:47.388820"], ["ends_at", "2015-02-20 15:03:47.387555"], ["starts_at", "2015-01-27 15:03:47.387321"], ["updated_at", "2015-02-27 15:03:47.388820"]]
|
1491
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1492
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1493
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:47.392904"], ["ends_at", "2014-02-27 15:03:47.391780"], ["starts_at", "2013-02-27 15:03:47.391524"], ["updated_at", "2015-02-27 15:03:47.392904"]]
|
1494
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1495
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1496
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:47.396863"], ["ends_at", "2016-02-27 15:03:47.395667"], ["starts_at", "2015-03-27 15:03:47.395481"], ["updated_at", "2015-02-27 15:03:47.396863"]]
|
1497
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1498
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1499
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:47.401132"], ["ends_at", "2016-02-27 15:03:47.399988"], ["starts_at", "2014-02-27 15:03:47.399763"], ["updated_at", "2015-02-27 15:03:47.401132"]]
|
1500
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1501
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1502
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:47.406031"], ["ends_at", "2015-02-27 14:03:47.404689"], ["starts_at", "2015-02-26 15:03:47.404444"], ["updated_at", "2015-02-27 15:03:47.406031"]]
|
1503
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1504
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1505
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1506
|
+
-----------------------------------------
|
1507
|
+
ActsAsIntervalTest: test_intervals_before
|
1508
|
+
-----------------------------------------
|
1509
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1510
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:47.411714"], ["ends_at", "2015-02-20 15:03:47.410559"], ["starts_at", "2015-01-27 15:03:47.410332"], ["updated_at", "2015-02-27 15:03:47.411714"]]
|
1511
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1512
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1513
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:47.415957"], ["ends_at", "2014-02-27 15:03:47.414830"], ["starts_at", "2013-02-27 15:03:47.414620"], ["updated_at", "2015-02-27 15:03:47.415957"]]
|
1514
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1516
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:47.419807"], ["ends_at", "2016-02-27 15:03:47.418724"], ["starts_at", "2015-03-27 15:03:47.418528"], ["updated_at", "2015-02-27 15:03:47.419807"]]
|
1517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1518
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1519
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:03:47.423498"], ["ends_at", "2016-02-27 15:03:47.422439"], ["starts_at", "2014-02-27 15:03:47.422223"], ["updated_at", "2015-02-27 15:03:47.423498"]]
|
1520
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1521
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1522
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:03:47.427166"], ["ends_at", "2015-02-27 14:03:47.426030"], ["starts_at", "2015-02-26 15:03:47.425866"], ["updated_at", "2015-02-27 15:03:47.427166"]]
|
1523
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1524
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1525
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1526
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1527
|
+
-----------------------------------------------
|
1528
|
+
ActsAsIntervalTest: test_intersecting_intervals
|
1529
|
+
-----------------------------------------------
|
1530
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1531
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:35.253426"], ["ends_at", "2015-02-28 15:04:35.249624"], ["starts_at", "2015-02-26 15:04:35.249491"], ["updated_at", "2015-02-27 15:04:35.253426"]]
|
1532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1533
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1534
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:35.255671"], ["ends_at", "2015-01-27 15:04:35.255383"], ["starts_at", "2014-02-27 15:04:35.255324"], ["updated_at", "2015-02-27 15:04:35.255671"]]
|
1535
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1536
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1537
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:35.256520"], ["ends_at", "2017-02-27 15:04:35.256283"], ["starts_at", "2016-02-27 15:04:35.256236"], ["updated_at", "2015-02-27 15:04:35.256520"]]
|
1538
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1540
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:35.257259"], ["ends_at", "2015-03-27 15:04:35.257027"], ["starts_at", "2015-01-27 15:04:35.256983"], ["updated_at", "2015-02-27 15:04:35.257259"]]
|
1541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1542
|
+
[1m[36mInterval Load (0.5ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 15:04:35.249624') * DATEDIFF('2015-02-26 15:04:35.249491', ends_at) >= 0) AND ("intervals"."id" != 1)[0m
|
1543
|
+
SQLite3::SQLException: no such function: DATEDIFF: SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, '2015-02-28 15:04:35.249624') * DATEDIFF('2015-02-26 15:04:35.249491', ends_at) >= 0) AND ("intervals"."id" != 1)
|
1544
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1545
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1546
|
+
----------------------------------------
|
1547
|
+
ActsAsIntervalTest: test_intervals_after
|
1548
|
+
----------------------------------------
|
1549
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1550
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.032265"], ["ends_at", "2015-02-20 15:04:37.031025"], ["starts_at", "2015-01-27 15:04:37.030790"], ["updated_at", "2015-02-27 15:04:37.032265"]]
|
1551
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1552
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1553
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:37.036212"], ["ends_at", "2014-02-27 15:04:37.035138"], ["starts_at", "2013-02-27 15:04:37.034945"], ["updated_at", "2015-02-27 15:04:37.036212"]]
|
1554
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1556
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.040103"], ["ends_at", "2016-02-27 15:04:37.039001"], ["starts_at", "2015-03-27 15:04:37.038819"], ["updated_at", "2015-02-27 15:04:37.040103"]]
|
1557
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1558
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1559
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:37.043949"], ["ends_at", "2016-02-27 15:04:37.042789"], ["starts_at", "2014-02-27 15:04:37.042589"], ["updated_at", "2015-02-27 15:04:37.043949"]]
|
1560
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1561
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1562
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.048856"], ["ends_at", "2015-02-27 14:04:37.047014"], ["starts_at", "2015-02-26 15:04:37.046736"], ["updated_at", "2015-02-27 15:04:37.048856"]]
|
1563
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1564
|
+
[1m[36mInterval Load (0.2ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 14:04:37.047014')[0m
|
1565
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1566
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1567
|
+
-----------------------------------------
|
1568
|
+
ActsAsIntervalTest: test_intervals_before
|
1569
|
+
-----------------------------------------
|
1570
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1571
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.056045"], ["ends_at", "2015-02-20 15:04:37.054730"], ["starts_at", "2015-01-27 15:04:37.054504"], ["updated_at", "2015-02-27 15:04:37.056045"]]
|
1572
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1573
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1574
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:37.060224"], ["ends_at", "2014-02-27 15:04:37.059103"], ["starts_at", "2013-02-27 15:04:37.058906"], ["updated_at", "2015-02-27 15:04:37.060224"]]
|
1575
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1577
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.064548"], ["ends_at", "2016-02-27 15:04:37.063313"], ["starts_at", "2015-03-27 15:04:37.063112"], ["updated_at", "2015-02-27 15:04:37.064548"]]
|
1578
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1579
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1580
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-02-27 15:04:37.068540"], ["ends_at", "2016-02-27 15:04:37.067436"], ["starts_at", "2014-02-27 15:04:37.067218"], ["updated_at", "2015-02-27 15:04:37.068540"]]
|
1581
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1582
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1583
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2015-02-27 15:04:37.072115"], ["ends_at", "2015-02-27 14:04:37.071148"], ["starts_at", "2015-02-26 15:04:37.070983"], ["updated_at", "2015-02-27 15:04:37.072115"]]
|
1584
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1585
|
+
[1m[36mInterval Load (0.2ms)[0m [1mSELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 15:04:37.070983')[0m
|
1586
|
+
[1m[35m (0.1ms)[0m rollback transaction
|