acts_as_interval 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +32 -0
  3. data/lib/acts_as_interval.rb +3 -0
  4. data/lib/acts_as_interval/acts_as_interval.rb +31 -0
  5. data/lib/acts_as_interval/version.rb +3 -0
  6. data/lib/tasks/acts_as_interval_tasks.rake +4 -0
  7. data/test/acts_as_interval_test.rb +27 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  12. data/test/dummy/app/controllers/application_controller.rb +5 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/interval.rb +3 -0
  15. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/test/dummy/bin/bundle +3 -0
  17. data/test/dummy/bin/rails +4 -0
  18. data/test/dummy/bin/rake +4 -0
  19. data/test/dummy/config.ru +4 -0
  20. data/test/dummy/config/application.rb +23 -0
  21. data/test/dummy/config/boot.rb +5 -0
  22. data/test/dummy/config/database.yml +25 -0
  23. data/test/dummy/config/environment.rb +5 -0
  24. data/test/dummy/config/environments/development.rb +37 -0
  25. data/test/dummy/config/environments/production.rb +78 -0
  26. data/test/dummy/config/environments/test.rb +39 -0
  27. data/test/dummy/config/initializers/assets.rb +8 -0
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  30. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  31. data/test/dummy/config/initializers/inflections.rb +16 -0
  32. data/test/dummy/config/initializers/mime_types.rb +4 -0
  33. data/test/dummy/config/initializers/session_store.rb +3 -0
  34. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  35. data/test/dummy/config/locales/en.yml +23 -0
  36. data/test/dummy/config/routes.rb +56 -0
  37. data/test/dummy/config/secrets.yml +22 -0
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20150227133736_create_intervals.rb +10 -0
  40. data/test/dummy/db/schema.rb +23 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
  42. data/test/dummy/log/development.log +74 -0
  43. data/test/dummy/log/test.log +1586 -0
  44. data/test/dummy/public/404.html +67 -0
  45. data/test/dummy/public/422.html +67 -0
  46. data/test/dummy/public/500.html +66 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/test/fixtures/intervals.yml +9 -0
  49. data/test/dummy/test/models/interval_test.rb +4 -0
  50. data/test/test_helper.rb +15 -0
  51. 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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ 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"] %>
@@ -0,0 +1,10 @@
1
+ class CreateIntervals < ActiveRecord::Migration
2
+ def change
3
+ create_table :intervals do |t|
4
+ t.datetime :starts_at
5
+ t.datetime :ends_at
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -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
@@ -0,0 +1,74 @@
1
+  (109.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (66.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateIntervals (20150227121358)
6
+  (0.1ms) begin transaction
7
+  (0.2ms) CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
8
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
9
+  (94.9ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ Migrating to CreateIntervals (20150227121358)
14
+  (0.0ms) begin transaction
15
+  (0.2ms) DROP TABLE "intervals"
16
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'
17
+  (118.3ms) commit transaction
18
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+ Migrating to CreateIntervals (20150227121358)
21
+  (0.0ms) begin transaction
22
+  (0.0ms) rollback transaction
23
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ Migrating to CreateIntervals (20150227121358)
25
+  (0.0ms) begin transaction
26
+  (0.2ms) CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
27
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
28
+  (113.4ms) commit transaction
29
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ Migrating to CreateIntervals (20150227121358)
33
+  (0.0ms) begin transaction
34
+  (0.2ms) DROP TABLE "intervals"
35
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'
36
+  (101.3ms) commit transaction
37
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ Migrating to CreateIntervals (20150227121358)
40
+  (0.0ms) begin transaction
41
+  (0.0ms) rollback transaction
42
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+ Migrating to CreateIntervals (20150227121358)
44
+  (0.0ms) begin transaction
45
+  (0.2ms) CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
46
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
47
+  (128.2ms) commit transaction
48
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
51
+ Migrating to CreateIntervals (20150227121358)
52
+  (0.0ms) begin transaction
53
+  (0.2ms) DROP TABLE "intervals"
54
+ SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150227121358'
55
+  (115.2ms) commit transaction
56
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
57
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+ Migrating to CreateIntervals (20150227121358)
59
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+ Migrating to CreateInterval (20150227121358)
61
+  (0.0ms) begin transaction
62
+  (0.2ms) CREATE TABLE "interval" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
63
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227121358"]]
64
+  (112.0ms) commit transaction
65
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ Migrating to CreateIntervals (20150227133736)
68
+  (0.0ms) begin transaction
69
+  (0.2ms) CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "starts_at" datetime, "ends_at" datetime, "created_at" datetime, "updated_at" datetime) 
70
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227133736"]]
71
+  (111.8ms) commit transaction
72
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
73
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,1586 @@
1
+  (0.1ms) begin transaction
2
+ ------------------------------
3
+ ActsAsIntervalTest: test_truth
4
+ ------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ----------------------------------------
8
+ ActsAsIntervalTest: test_intervals_after
9
+ ----------------------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ -----------------------------------------
13
+ ActsAsIntervalTest: test_intervals_before
14
+ -----------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ----------------------------------------
18
+ ActsAsIntervalTest: test_intervals_after
19
+ ----------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+ -----------------------------------------
23
+ ActsAsIntervalTest: test_intervals_before
24
+ -----------------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ----------------------------------------
28
+ ActsAsIntervalTest: test_intervals_after
29
+ ----------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ -----------------------------------------
33
+ ActsAsIntervalTest: test_intervals_before
34
+ -----------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ ------------------------------
38
+ ActsAsIntervalTest: test_truth
39
+ ------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ ------------------------------------------
43
+ ActsAsIntervalTest: test_check_if_interval
44
+ ------------------------------------------
45
+  (0.1ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+ ---------------------------------
48
+ ActsAsIntervalTest: test_whatever
49
+ ---------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ------------------------------------------
53
+ ActsAsIntervalTest: test_check_if_interval
54
+ ------------------------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ ------------------------------------------
58
+ ActsAsIntervalTest: test_check_if_interval
59
+ ------------------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ ------------------------------------------
63
+ ActsAsIntervalTest: test_check_if_interval
64
+ ------------------------------------------
65
+  (0.0ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ ------------------------------------------
68
+ ActsAsIntervalTest: test_check_if_interval
69
+ ------------------------------------------
70
+  (0.0ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+ ---------------------------------
73
+ IntervalTest: test_interval_model
74
+ ---------------------------------
75
+ Interval Load (0.1ms) 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
+  (0.0ms) rollback transaction
78
+  (0.1ms) begin transaction
79
+ ---------------------------------
80
+ IntervalTest: test_interval_model
81
+ ---------------------------------
82
+ Interval Load (0.1ms) 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
+  (0.0ms) rollback transaction
85
+  (0.0ms) begin transaction
86
+ ------------------------------------------
87
+ ActsAsIntervalTest: test_check_if_interval
88
+ ------------------------------------------
89
+  (0.0ms) rollback transaction
90
+  (121.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
91
+  (0.2ms) select sqlite_version(*)
92
+  (134.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
93
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
94
+ Migrating to CreateIntervals (20150227133736)
95
+  (0.1ms) begin transaction
96
+  (0.6ms) CREATE TABLE "intervals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "starts_at" datetime, "ends_at" datetime, "created_at" datetime, "updated_at" datetime)
97
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150227133736"]]
98
+  (97.0ms) commit transaction
99
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+  (0.1ms) begin transaction
102
+ ------------------------------------------
103
+ ActsAsIntervalTest: test_check_if_interval
104
+ ------------------------------------------
105
+  (0.0ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ ---------------------------------
108
+ IntervalTest: test_interval_model
109
+ ---------------------------------
110
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
111
+  (0.1ms) rollback transaction
112
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
113
+  (0.1ms) begin transaction
114
+ ---------------------------------
115
+ IntervalTest: test_interval_model
116
+ ---------------------------------
117
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" ORDER BY "intervals"."id" ASC LIMIT 1
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+ ------------------------------------------
121
+ ActsAsIntervalTest: test_check_if_interval
122
+ ------------------------------------------
123
+  (0.0ms) rollback transaction
124
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+  (0.1ms) begin transaction
126
+ ---------------------------------
127
+ IntervalTest: test_interval_model
128
+ ---------------------------------
129
+  (0.0ms) rollback transaction
130
+  (0.0ms) begin transaction
131
+ ------------------------------------------
132
+ ActsAsIntervalTest: test_check_if_interval
133
+ ------------------------------------------
134
+  (0.0ms) rollback transaction
135
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
136
+  (0.1ms) begin transaction
137
+ ---------------------------------
138
+ IntervalTest: test_interval_model
139
+ ---------------------------------
140
+  (0.0ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ ------------------------------------------
143
+ ActsAsIntervalTest: test_check_if_interval
144
+ ------------------------------------------
145
+  (0.0ms) rollback transaction
146
+  (0.0ms) begin transaction
147
+ -----------------------------------------
148
+ ActsAsIntervalTest: test_intervals_before
149
+ -----------------------------------------
150
+  (0.0ms) SAVEPOINT active_record_1
151
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
153
+  (0.0ms) SAVEPOINT active_record_1
154
+ SQL (0.3ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
156
+  (0.1ms) rollback transaction
157
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
158
+  (0.1ms) begin transaction
159
+ ------------------------------------------
160
+ ActsAsIntervalTest: test_check_if_interval
161
+ ------------------------------------------
162
+  (0.0ms) rollback transaction
163
+  (0.0ms) begin transaction
164
+ -----------------------------------------
165
+ ActsAsIntervalTest: test_intervals_before
166
+ -----------------------------------------
167
+  (0.0ms) SAVEPOINT active_record_1
168
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+  (0.0ms) SAVEPOINT active_record_1
171
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
173
+  (0.1ms) rollback transaction
174
+  (0.0ms) begin transaction
175
+ ---------------------------------
176
+ IntervalTest: test_interval_model
177
+ ---------------------------------
178
+  (0.0ms) rollback transaction
179
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
180
+  (0.1ms) begin transaction
181
+ ---------------------------------
182
+ IntervalTest: test_interval_model
183
+ ---------------------------------
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+ ------------------------------------------
187
+ ActsAsIntervalTest: test_check_if_interval
188
+ ------------------------------------------
189
+  (0.0ms) rollback transaction
190
+  (0.0ms) begin transaction
191
+ -----------------------------------------
192
+ ActsAsIntervalTest: test_intervals_before
193
+ -----------------------------------------
194
+  (0.2ms) SAVEPOINT active_record_1
195
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
+  (0.0ms) SAVEPOINT active_record_1
198
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
200
+  (0.1ms) rollback transaction
201
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
202
+  (0.1ms) begin transaction
203
+ ---------------------------------
204
+ IntervalTest: test_interval_model
205
+ ---------------------------------
206
+  (0.0ms) rollback transaction
207
+  (0.0ms) begin transaction
208
+ ------------------------------------------
209
+ ActsAsIntervalTest: test_check_if_interval
210
+ ------------------------------------------
211
+  (0.0ms) rollback transaction
212
+  (0.0ms) begin transaction
213
+ -----------------------------------------
214
+ ActsAsIntervalTest: test_intervals_before
215
+ -----------------------------------------
216
+  (0.0ms) SAVEPOINT active_record_1
217
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
219
+  (0.0ms) SAVEPOINT active_record_1
220
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
222
+  (0.3ms) rollback transaction
223
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
224
+  (0.1ms) begin transaction
225
+ ------------------------------------------
226
+ ActsAsIntervalTest: test_check_if_interval
227
+ ------------------------------------------
228
+  (0.1ms) rollback transaction
229
+  (0.0ms) begin transaction
230
+ -----------------------------------------
231
+ ActsAsIntervalTest: test_intervals_before
232
+ -----------------------------------------
233
+  (0.0ms) SAVEPOINT active_record_1
234
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+  (0.0ms) SAVEPOINT active_record_1
237
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239
+  (0.1ms) rollback transaction
240
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
241
+  (0.1ms) begin transaction
242
+ ------------------------------------------
243
+ ActsAsIntervalTest: test_check_if_interval
244
+ ------------------------------------------
245
+  (0.1ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+ -----------------------------------------
248
+ ActsAsIntervalTest: test_intervals_before
249
+ -----------------------------------------
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+  (0.0ms) SAVEPOINT active_record_1
254
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
256
+  (0.1ms) rollback transaction
257
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
258
+  (0.1ms) begin transaction
259
+ ------------------------------------------
260
+ ActsAsIntervalTest: test_check_if_interval
261
+ ------------------------------------------
262
+  (0.0ms) rollback transaction
263
+  (0.0ms) begin transaction
264
+ -----------------------------------------
265
+ ActsAsIntervalTest: test_intervals_before
266
+ -----------------------------------------
267
+  (0.0ms) SAVEPOINT active_record_1
268
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
270
+  (0.0ms) SAVEPOINT active_record_1
271
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
273
+  (0.1ms) rollback transaction
274
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
275
+  (0.1ms) begin transaction
276
+ ------------------------------------------
277
+ ActsAsIntervalTest: test_check_if_interval
278
+ ------------------------------------------
279
+  (0.0ms) rollback transaction
280
+  (0.0ms) begin transaction
281
+ -----------------------------------------
282
+ ActsAsIntervalTest: test_intervals_before
283
+ -----------------------------------------
284
+  (0.0ms) SAVEPOINT active_record_1
285
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
287
+  (0.0ms) SAVEPOINT active_record_1
288
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
290
+  (0.1ms) rollback transaction
291
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
292
+  (0.1ms) begin transaction
293
+ ------------------------------------------
294
+ ActsAsIntervalTest: test_check_if_interval
295
+ ------------------------------------------
296
+  (0.0ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+ -----------------------------------------
299
+ ActsAsIntervalTest: test_intervals_before
300
+ -----------------------------------------
301
+  (0.0ms) SAVEPOINT active_record_1
302
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
304
+  (0.0ms) SAVEPOINT active_record_1
305
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
307
+  (0.1ms) rollback transaction
308
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
309
+  (0.1ms) begin transaction
310
+ ------------------------------------------
311
+ ActsAsIntervalTest: test_check_if_interval
312
+ ------------------------------------------
313
+  (0.0ms) rollback transaction
314
+  (0.0ms) begin transaction
315
+ -----------------------------------------
316
+ ActsAsIntervalTest: test_intervals_before
317
+ -----------------------------------------
318
+  (0.0ms) SAVEPOINT active_record_1
319
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
321
+  (0.0ms) SAVEPOINT active_record_1
322
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324
+  (1.0ms) rollback transaction
325
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
326
+  (0.1ms) begin transaction
327
+ ------------------------------------------
328
+ ActsAsIntervalTest: test_check_if_interval
329
+ ------------------------------------------
330
+  (0.1ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+ -----------------------------------------
333
+ ActsAsIntervalTest: test_intervals_before
334
+ -----------------------------------------
335
+  (0.0ms) SAVEPOINT active_record_1
336
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
338
+  (0.1ms) SAVEPOINT active_record_1
339
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341
+  (0.1ms) rollback transaction
342
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
343
+  (0.1ms) begin transaction
344
+ ------------------------------------------
345
+ ActsAsIntervalTest: test_check_if_interval
346
+ ------------------------------------------
347
+  (0.0ms) rollback transaction
348
+  (0.0ms) begin transaction
349
+ -----------------------------------------
350
+ ActsAsIntervalTest: test_intervals_before
351
+ -----------------------------------------
352
+  (0.0ms) SAVEPOINT active_record_1
353
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
355
+  (0.0ms) SAVEPOINT active_record_1
356
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
358
+  (0.1ms) rollback transaction
359
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
360
+  (0.1ms) begin transaction
361
+ ------------------------------------------
362
+ ActsAsIntervalTest: test_check_if_interval
363
+ ------------------------------------------
364
+  (0.0ms) rollback transaction
365
+  (0.1ms) begin transaction
366
+ -----------------------------------------
367
+ ActsAsIntervalTest: test_intervals_before
368
+ -----------------------------------------
369
+  (0.0ms) SAVEPOINT active_record_1
370
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
372
+  (0.0ms) SAVEPOINT active_record_1
373
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:13:59.504838"], ["updated_at", "2015-02-27 14:13:59.504838"]]
374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
375
+  (0.1ms) rollback transaction
376
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
377
+  (0.1ms) begin transaction
378
+ ------------------------------------------
379
+ ActsAsIntervalTest: test_check_if_interval
380
+ ------------------------------------------
381
+  (0.0ms) rollback transaction
382
+  (0.0ms) begin transaction
383
+ -----------------------------------------
384
+ ActsAsIntervalTest: test_intervals_before
385
+ -----------------------------------------
386
+  (0.0ms) SAVEPOINT active_record_1
387
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
389
+  (0.0ms) SAVEPOINT active_record_1
390
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:03.039206"], ["updated_at", "2015-02-27 14:14:03.039206"]]
391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
392
+  (0.1ms) rollback transaction
393
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
394
+  (0.1ms) begin transaction
395
+ ------------------------------------------
396
+ ActsAsIntervalTest: test_check_if_interval
397
+ ------------------------------------------
398
+  (0.0ms) rollback transaction
399
+  (0.0ms) begin transaction
400
+ -----------------------------------------
401
+ ActsAsIntervalTest: test_intervals_before
402
+ -----------------------------------------
403
+  (0.0ms) SAVEPOINT active_record_1
404
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
406
+  (0.0ms) SAVEPOINT active_record_1
407
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:31.399137"], ["updated_at", "2015-02-27 14:14:31.399137"]]
408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
409
+  (0.1ms) rollback transaction
410
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
411
+  (0.1ms) begin transaction
412
+ ------------------------------------------
413
+ ActsAsIntervalTest: test_check_if_interval
414
+ ------------------------------------------
415
+  (0.1ms) rollback transaction
416
+  (0.0ms) begin transaction
417
+ -----------------------------------------
418
+ ActsAsIntervalTest: test_intervals_before
419
+ -----------------------------------------
420
+  (0.0ms) SAVEPOINT active_record_1
421
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
423
+  (0.0ms) SAVEPOINT active_record_1
424
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-02-27 14:14:34.416481"], ["updated_at", "2015-02-27 14:14:34.416481"]]
425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
426
+  (0.1ms) rollback transaction
427
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
428
+  (0.1ms) begin transaction
429
+ ------------------------------------------
430
+ ActsAsIntervalTest: test_check_if_interval
431
+ ------------------------------------------
432
+  (0.0ms) rollback transaction
433
+  (0.0ms) begin transaction
434
+ -----------------------------------------
435
+ ActsAsIntervalTest: test_intervals_before
436
+ -----------------------------------------
437
+  (0.0ms) SAVEPOINT active_record_1
438
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
440
+  (0.1ms) SAVEPOINT active_record_1
441
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
443
+  (0.1ms) rollback transaction
444
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
445
+  (0.1ms) begin transaction
446
+ ------------------------------------------
447
+ ActsAsIntervalTest: test_check_if_interval
448
+ ------------------------------------------
449
+  (0.0ms) rollback transaction
450
+  (0.0ms) begin transaction
451
+ -----------------------------------------
452
+ ActsAsIntervalTest: test_intervals_before
453
+ -----------------------------------------
454
+  (0.0ms) SAVEPOINT active_record_1
455
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
457
+  (0.0ms) SAVEPOINT active_record_1
458
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
460
+  (0.1ms) rollback transaction
461
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
462
+  (0.1ms) begin transaction
463
+ ------------------------------------------
464
+ ActsAsIntervalTest: test_check_if_interval
465
+ ------------------------------------------
466
+  (0.0ms) rollback transaction
467
+  (0.0ms) begin transaction
468
+ -----------------------------------------
469
+ ActsAsIntervalTest: test_intervals_before
470
+ -----------------------------------------
471
+  (0.0ms) SAVEPOINT active_record_1
472
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
474
+  (0.0ms) SAVEPOINT active_record_1
475
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
477
+  (0.1ms) rollback transaction
478
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
479
+  (0.1ms) begin transaction
480
+ ------------------------------------------
481
+ ActsAsIntervalTest: test_check_if_interval
482
+ ------------------------------------------
483
+  (0.0ms) rollback transaction
484
+  (0.0ms) begin transaction
485
+ -----------------------------------------
486
+ ActsAsIntervalTest: test_intervals_before
487
+ -----------------------------------------
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+  (0.0ms) SAVEPOINT active_record_1
492
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
494
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:16:28.656065')
495
+  (0.1ms) rollback transaction
496
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
497
+  (0.1ms) begin transaction
498
+ ------------------------------------------
499
+ ActsAsIntervalTest: test_check_if_interval
500
+ ------------------------------------------
501
+  (0.0ms) rollback transaction
502
+  (0.0ms) begin transaction
503
+ -----------------------------------------
504
+ ActsAsIntervalTest: test_intervals_before
505
+ -----------------------------------------
506
+  (0.0ms) SAVEPOINT active_record_1
507
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
509
+  (0.0ms) SAVEPOINT active_record_1
510
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
512
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:16:57.064880')
513
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE "intervals"."id" = 1
514
+  (0.1ms) rollback transaction
515
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
516
+  (0.1ms) begin transaction
517
+ ------------------------------------------
518
+ ActsAsIntervalTest: test_check_if_interval
519
+ ------------------------------------------
520
+  (0.0ms) rollback transaction
521
+  (0.0ms) begin transaction
522
+ -----------------------------------------
523
+ ActsAsIntervalTest: test_intervals_before
524
+ -----------------------------------------
525
+  (0.0ms) SAVEPOINT active_record_1
526
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
528
+  (0.0ms) SAVEPOINT active_record_1
529
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
531
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:18:42.361401')
532
+  (0.1ms) rollback transaction
533
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
534
+  (0.1ms) begin transaction
535
+ ------------------------------------------
536
+ ActsAsIntervalTest: test_check_if_interval
537
+ ------------------------------------------
538
+  (0.0ms) rollback transaction
539
+  (0.0ms) begin transaction
540
+ -----------------------------------------
541
+ ActsAsIntervalTest: test_intervals_before
542
+ -----------------------------------------
543
+  (0.0ms) SAVEPOINT active_record_1
544
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
546
+  (0.0ms) SAVEPOINT active_record_1
547
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
549
+  (0.0ms) SAVEPOINT active_record_1
550
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
555
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:14.144254')
556
+  (0.1ms) rollback transaction
557
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
558
+  (0.1ms) begin transaction
559
+ ------------------------------------------
560
+ ActsAsIntervalTest: test_check_if_interval
561
+ ------------------------------------------
562
+  (0.0ms) rollback transaction
563
+  (0.0ms) begin transaction
564
+ -----------------------------------------
565
+ ActsAsIntervalTest: test_intervals_before
566
+ -----------------------------------------
567
+  (0.0ms) SAVEPOINT active_record_1
568
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
570
+  (0.1ms) SAVEPOINT active_record_1
571
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
573
+  (0.0ms) SAVEPOINT active_record_1
574
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+  (0.1ms) SAVEPOINT active_record_1
577
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
579
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:29.988728')
580
+  (0.2ms) rollback transaction
581
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
582
+  (0.1ms) begin transaction
583
+ ------------------------------------------
584
+ ActsAsIntervalTest: test_check_if_interval
585
+ ------------------------------------------
586
+  (0.0ms) rollback transaction
587
+  (0.0ms) begin transaction
588
+ -----------------------------------------
589
+ ActsAsIntervalTest: test_intervals_before
590
+ -----------------------------------------
591
+  (0.0ms) SAVEPOINT active_record_1
592
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
594
+  (0.0ms) SAVEPOINT active_record_1
595
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
597
+  (0.0ms) SAVEPOINT active_record_1
598
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
600
+  (0.0ms) SAVEPOINT active_record_1
601
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
603
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:20:44.556680')
604
+  (0.1ms) rollback transaction
605
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
606
+  (0.1ms) begin transaction
607
+ ------------------------------------------
608
+ ActsAsIntervalTest: test_check_if_interval
609
+ ------------------------------------------
610
+  (0.0ms) rollback transaction
611
+  (0.0ms) begin transaction
612
+ -----------------------------------------
613
+ ActsAsIntervalTest: test_intervals_before
614
+ -----------------------------------------
615
+  (0.0ms) SAVEPOINT active_record_1
616
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
618
+  (0.0ms) SAVEPOINT active_record_1
619
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
621
+  (0.0ms) SAVEPOINT active_record_1
622
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
624
+  (0.1ms) rollback transaction
625
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
626
+  (0.1ms) begin transaction
627
+ ------------------------------------------
628
+ ActsAsIntervalTest: test_check_if_interval
629
+ ------------------------------------------
630
+  (0.0ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+ -----------------------------------------
633
+ ActsAsIntervalTest: test_intervals_before
634
+ -----------------------------------------
635
+  (0.0ms) SAVEPOINT active_record_1
636
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
638
+  (0.0ms) SAVEPOINT active_record_1
639
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
641
+  (0.0ms) SAVEPOINT active_record_1
642
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
644
+  (0.0ms) SAVEPOINT active_record_1
645
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
650
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:21:24.768740')
651
+  (0.1ms) rollback transaction
652
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
653
+  (0.1ms) begin transaction
654
+ ------------------------------------------
655
+ ActsAsIntervalTest: test_check_if_interval
656
+ ------------------------------------------
657
+  (0.0ms) rollback transaction
658
+  (0.0ms) begin transaction
659
+ ----------------------------------------
660
+ ActsAsIntervalTest: test_intervals_after
661
+ ----------------------------------------
662
+  (0.0ms) SAVEPOINT active_record_1
663
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
665
+  (0.0ms) SAVEPOINT active_record_1
666
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
668
+  (0.0ms) SAVEPOINT active_record_1
669
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
671
+  (0.0ms) SAVEPOINT active_record_1
672
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
674
+  (0.0ms) SAVEPOINT active_record_1
675
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
677
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:22:27.412350')
678
+  (0.1ms) rollback transaction
679
+  (0.0ms) begin transaction
680
+ -----------------------------------------
681
+ ActsAsIntervalTest: test_intervals_before
682
+ -----------------------------------------
683
+  (0.0ms) SAVEPOINT active_record_1
684
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
686
+  (0.0ms) SAVEPOINT active_record_1
687
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
689
+  (0.0ms) SAVEPOINT active_record_1
690
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
692
+  (0.0ms) SAVEPOINT active_record_1
693
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
695
+  (0.1ms) SAVEPOINT active_record_1
696
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
698
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:22:27.417665')
699
+  (0.1ms) rollback transaction
700
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
701
+  (0.1ms) begin transaction
702
+ ------------------------------------------
703
+ ActsAsIntervalTest: test_check_if_interval
704
+ ------------------------------------------
705
+  (0.0ms) rollback transaction
706
+  (0.0ms) begin transaction
707
+ -----------------------------------------------
708
+ ActsAsIntervalTest: test_intersecting_intervals
709
+ -----------------------------------------------
710
+  (0.0ms) SAVEPOINT active_record_1
711
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
713
+  (0.0ms) SAVEPOINT active_record_1
714
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
716
+  (0.0ms) SAVEPOINT active_record_1
717
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
719
+  (0.0ms) SAVEPOINT active_record_1
720
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
722
+  (0.1ms) rollback transaction
723
+  (0.0ms) begin transaction
724
+ ----------------------------------------
725
+ ActsAsIntervalTest: test_intervals_after
726
+ ----------------------------------------
727
+  (0.0ms) SAVEPOINT active_record_1
728
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
730
+  (0.0ms) SAVEPOINT active_record_1
731
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+  (0.0ms) SAVEPOINT active_record_1
734
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
736
+  (0.1ms) SAVEPOINT active_record_1
737
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
739
+  (0.0ms) SAVEPOINT active_record_1
740
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
742
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:25:21.862956')
743
+  (0.1ms) rollback transaction
744
+  (0.0ms) begin transaction
745
+ -----------------------------------------
746
+ ActsAsIntervalTest: test_intervals_before
747
+ -----------------------------------------
748
+  (0.0ms) SAVEPOINT active_record_1
749
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
751
+  (0.0ms) SAVEPOINT active_record_1
752
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
754
+  (0.0ms) SAVEPOINT active_record_1
755
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
757
+  (0.0ms) SAVEPOINT active_record_1
758
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
760
+  (0.1ms) SAVEPOINT active_record_1
761
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
763
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:25:21.867939')
764
+  (0.1ms) rollback transaction
765
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
766
+  (0.1ms) begin transaction
767
+ ------------------------------------------
768
+ ActsAsIntervalTest: test_check_if_interval
769
+ ------------------------------------------
770
+  (0.0ms) rollback transaction
771
+  (0.0ms) begin transaction
772
+ -----------------------------------------------
773
+ ActsAsIntervalTest: test_intersecting_intervals
774
+ -----------------------------------------------
775
+  (0.0ms) SAVEPOINT active_record_1
776
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
778
+  (0.0ms) SAVEPOINT active_record_1
779
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+  (0.0ms) SAVEPOINT active_record_1
782
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
784
+  (0.0ms) SAVEPOINT active_record_1
785
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
787
+  (0.1ms) rollback transaction
788
+  (0.0ms) begin transaction
789
+ ----------------------------------------
790
+ ActsAsIntervalTest: test_intervals_after
791
+ ----------------------------------------
792
+  (0.0ms) SAVEPOINT active_record_1
793
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
795
+  (0.0ms) SAVEPOINT active_record_1
796
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+  (0.0ms) SAVEPOINT active_record_1
799
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
801
+  (0.0ms) SAVEPOINT active_record_1
802
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
804
+  (0.0ms) SAVEPOINT active_record_1
805
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
807
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:27:31.668755')
808
+  (0.1ms) rollback transaction
809
+  (0.0ms) begin transaction
810
+ -----------------------------------------
811
+ ActsAsIntervalTest: test_intervals_before
812
+ -----------------------------------------
813
+  (0.0ms) SAVEPOINT active_record_1
814
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
816
+  (0.0ms) SAVEPOINT active_record_1
817
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
819
+  (0.0ms) SAVEPOINT active_record_1
820
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
822
+  (0.0ms) SAVEPOINT active_record_1
823
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
825
+  (0.0ms) SAVEPOINT active_record_1
826
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
828
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:27:31.673510')
829
+  (0.1ms) rollback transaction
830
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
831
+  (0.1ms) begin transaction
832
+ ------------------------------------------
833
+ ActsAsIntervalTest: test_check_if_interval
834
+ ------------------------------------------
835
+  (0.0ms) rollback transaction
836
+  (0.0ms) begin transaction
837
+ -----------------------------------------------
838
+ ActsAsIntervalTest: test_intersecting_intervals
839
+ -----------------------------------------------
840
+  (0.0ms) SAVEPOINT active_record_1
841
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
843
+  (0.0ms) SAVEPOINT active_record_1
844
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
846
+  (0.0ms) SAVEPOINT active_record_1
847
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
849
+  (0.0ms) SAVEPOINT active_record_1
850
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
852
+  (0.1ms) rollback transaction
853
+  (0.0ms) begin transaction
854
+ ----------------------------------------
855
+ ActsAsIntervalTest: test_intervals_after
856
+ ----------------------------------------
857
+  (0.0ms) SAVEPOINT active_record_1
858
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
860
+  (0.0ms) SAVEPOINT active_record_1
861
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
863
+  (0.0ms) SAVEPOINT active_record_1
864
+ SQL (0.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
866
+  (0.0ms) SAVEPOINT active_record_1
867
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
869
+  (0.0ms) SAVEPOINT active_record_1
870
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
872
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:28:01.019708')
873
+  (0.1ms) rollback transaction
874
+  (0.0ms) begin transaction
875
+ -----------------------------------------
876
+ ActsAsIntervalTest: test_intervals_before
877
+ -----------------------------------------
878
+  (0.0ms) SAVEPOINT active_record_1
879
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+  (0.0ms) SAVEPOINT active_record_1
882
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
884
+  (0.0ms) SAVEPOINT active_record_1
885
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
887
+  (0.0ms) SAVEPOINT active_record_1
888
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
890
+  (0.0ms) SAVEPOINT active_record_1
891
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
893
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:28:01.024868')
894
+  (0.1ms) rollback transaction
895
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
896
+  (0.1ms) begin transaction
897
+ ------------------------------------------
898
+ ActsAsIntervalTest: test_check_if_interval
899
+ ------------------------------------------
900
+  (0.0ms) rollback transaction
901
+  (0.0ms) begin transaction
902
+ -----------------------------------------------
903
+ ActsAsIntervalTest: test_intersecting_intervals
904
+ -----------------------------------------------
905
+  (0.0ms) SAVEPOINT active_record_1
906
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
908
+  (0.0ms) SAVEPOINT active_record_1
909
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
911
+  (0.0ms) SAVEPOINT active_record_1
912
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
914
+  (0.0ms) SAVEPOINT active_record_1
915
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
917
+ Interval Load (0.1ms) 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)
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
+  (0.1ms) rollback transaction
920
+  (0.0ms) begin transaction
921
+ ----------------------------------------
922
+ ActsAsIntervalTest: test_intervals_after
923
+ ----------------------------------------
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
927
+  (0.0ms) SAVEPOINT active_record_1
928
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
930
+  (0.0ms) SAVEPOINT active_record_1
931
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
933
+  (0.0ms) SAVEPOINT active_record_1
934
+ SQL (0.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
936
+  (0.0ms) SAVEPOINT active_record_1
937
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
939
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:28:14.019158')
940
+  (0.1ms) rollback transaction
941
+  (0.0ms) begin transaction
942
+ -----------------------------------------
943
+ ActsAsIntervalTest: test_intervals_before
944
+ -----------------------------------------
945
+  (0.1ms) SAVEPOINT active_record_1
946
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
948
+  (0.0ms) SAVEPOINT active_record_1
949
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
951
+  (0.0ms) SAVEPOINT active_record_1
952
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
954
+  (0.0ms) SAVEPOINT active_record_1
955
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
957
+  (0.0ms) SAVEPOINT active_record_1
958
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
960
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:28:14.023865')
961
+  (0.1ms) rollback transaction
962
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
963
+  (0.1ms) begin transaction
964
+ ------------------------------------------
965
+ ActsAsIntervalTest: test_check_if_interval
966
+ ------------------------------------------
967
+  (0.0ms) rollback transaction
968
+  (0.0ms) begin transaction
969
+ -----------------------------------------------
970
+ ActsAsIntervalTest: test_intersecting_intervals
971
+ -----------------------------------------------
972
+  (0.1ms) SAVEPOINT active_record_1
973
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
975
+  (0.1ms) SAVEPOINT active_record_1
976
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
978
+  (0.0ms) SAVEPOINT active_record_1
979
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
981
+  (0.0ms) SAVEPOINT active_record_1
982
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
984
+  (0.1ms) rollback transaction
985
+  (0.0ms) begin transaction
986
+ ----------------------------------------
987
+ ActsAsIntervalTest: test_intervals_after
988
+ ----------------------------------------
989
+  (0.0ms) SAVEPOINT active_record_1
990
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
992
+  (0.0ms) SAVEPOINT active_record_1
993
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
995
+  (0.0ms) SAVEPOINT active_record_1
996
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
998
+  (0.0ms) SAVEPOINT active_record_1
999
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1001
+  (0.0ms) SAVEPOINT active_record_1
1002
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1004
+  (0.1ms) rollback transaction
1005
+  (0.0ms) begin transaction
1006
+ -----------------------------------------
1007
+ ActsAsIntervalTest: test_intervals_before
1008
+ -----------------------------------------
1009
+  (0.0ms) SAVEPOINT active_record_1
1010
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1012
+  (0.0ms) SAVEPOINT active_record_1
1013
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1015
+  (0.0ms) SAVEPOINT active_record_1
1016
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1018
+  (0.0ms) SAVEPOINT active_record_1
1019
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1021
+  (0.0ms) SAVEPOINT active_record_1
1022
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1024
+  (0.1ms) rollback transaction
1025
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1026
+  (0.1ms) begin transaction
1027
+ ------------------------------------------
1028
+ ActsAsIntervalTest: test_check_if_interval
1029
+ ------------------------------------------
1030
+  (0.0ms) rollback transaction
1031
+  (0.0ms) begin transaction
1032
+ -----------------------------------------------
1033
+ ActsAsIntervalTest: test_intersecting_intervals
1034
+ -----------------------------------------------
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.0ms) SAVEPOINT active_record_1
1039
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1041
+  (0.0ms) SAVEPOINT active_record_1
1042
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1044
+  (0.0ms) SAVEPOINT active_record_1
1045
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1047
+ Interval Load (0.1ms) 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)
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
+  (0.1ms) rollback transaction
1050
+  (0.0ms) begin transaction
1051
+ ----------------------------------------
1052
+ ActsAsIntervalTest: test_intervals_after
1053
+ ----------------------------------------
1054
+  (0.1ms) SAVEPOINT active_record_1
1055
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1057
+  (0.0ms) SAVEPOINT active_record_1
1058
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1060
+  (0.0ms) SAVEPOINT active_record_1
1061
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1063
+  (0.0ms) SAVEPOINT active_record_1
1064
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1066
+  (0.0ms) SAVEPOINT active_record_1
1067
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 13:30:08.544921')
1070
+  (0.1ms) rollback transaction
1071
+  (0.0ms) begin transaction
1072
+ -----------------------------------------
1073
+ ActsAsIntervalTest: test_intervals_before
1074
+ -----------------------------------------
1075
+  (0.0ms) SAVEPOINT active_record_1
1076
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.0ms) SAVEPOINT active_record_1
1079
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1081
+  (0.0ms) SAVEPOINT active_record_1
1082
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1084
+  (0.0ms) SAVEPOINT active_record_1
1085
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1087
+  (0.0ms) SAVEPOINT active_record_1
1088
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1090
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 14:30:08.549634')
1091
+  (0.1ms) rollback transaction
1092
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1093
+  (0.1ms) begin transaction
1094
+ ------------------------------------------
1095
+ ActsAsIntervalTest: test_check_if_interval
1096
+ ------------------------------------------
1097
+  (0.0ms) rollback transaction
1098
+  (0.0ms) begin transaction
1099
+ -----------------------------------------------
1100
+ ActsAsIntervalTest: test_intersecting_intervals
1101
+ -----------------------------------------------
1102
+  (0.0ms) SAVEPOINT active_record_1
1103
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1105
+  (0.0ms) SAVEPOINT active_record_1
1106
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1108
+  (0.0ms) SAVEPOINT active_record_1
1109
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1111
+  (0.0ms) SAVEPOINT active_record_1
1112
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1114
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)
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
+  (0.1ms) rollback transaction
1117
+  (0.0ms) begin transaction
1118
+ ----------------------------------------
1119
+ ActsAsIntervalTest: test_intervals_after
1120
+ ----------------------------------------
1121
+  (0.0ms) SAVEPOINT active_record_1
1122
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1124
+  (0.0ms) SAVEPOINT active_record_1
1125
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1127
+  (0.0ms) SAVEPOINT active_record_1
1128
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1130
+  (0.0ms) SAVEPOINT active_record_1
1131
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1133
+  (0.0ms) SAVEPOINT active_record_1
1134
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1136
+  (0.1ms) rollback transaction
1137
+  (0.0ms) begin transaction
1138
+ -----------------------------------------
1139
+ ActsAsIntervalTest: test_intervals_before
1140
+ -----------------------------------------
1141
+  (0.1ms) SAVEPOINT active_record_1
1142
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1144
+  (0.0ms) SAVEPOINT active_record_1
1145
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.0ms) SAVEPOINT active_record_1
1148
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1150
+  (0.0ms) SAVEPOINT active_record_1
1151
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1156
+  (0.1ms) rollback transaction
1157
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1158
+  (0.1ms) begin transaction
1159
+ ------------------------------------------
1160
+ ActsAsIntervalTest: test_check_if_interval
1161
+ ------------------------------------------
1162
+  (0.0ms) rollback transaction
1163
+  (0.0ms) begin transaction
1164
+ -----------------------------------------------
1165
+ ActsAsIntervalTest: test_intersecting_intervals
1166
+ -----------------------------------------------
1167
+  (0.0ms) SAVEPOINT active_record_1
1168
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1170
+  (0.0ms) SAVEPOINT active_record_1
1171
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1173
+  (0.0ms) SAVEPOINT active_record_1
1174
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1176
+  (0.0ms) SAVEPOINT active_record_1
1177
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1179
+ Interval Load (0.4ms) SELECT "intervals".* FROM "intervals" WHERE (DATEDIFF(starts_at, 'ends_at') * DATEDIFF('starts_at', end_date) >= 0) AND ("intervals"."id" != 1)
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
+  (0.4ms) rollback transaction
1182
+  (0.3ms) begin transaction
1183
+ ----------------------------------------
1184
+ ActsAsIntervalTest: test_intervals_after
1185
+ ----------------------------------------
1186
+  (0.1ms) SAVEPOINT active_record_1
1187
+ SQL (0.5ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1189
+  (0.3ms) SAVEPOINT active_record_1
1190
+ SQL (0.3ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1192
+  (0.1ms) SAVEPOINT active_record_1
1193
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1195
+  (0.2ms) SAVEPOINT active_record_1
1196
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1198
+  (0.1ms) SAVEPOINT active_record_1
1199
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1201
+  (0.2ms) rollback transaction
1202
+  (0.1ms) begin transaction
1203
+ -----------------------------------------
1204
+ ActsAsIntervalTest: test_intervals_before
1205
+ -----------------------------------------
1206
+  (0.1ms) SAVEPOINT active_record_1
1207
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1209
+  (0.1ms) SAVEPOINT active_record_1
1210
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1212
+  (0.1ms) SAVEPOINT active_record_1
1213
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1215
+  (0.1ms) SAVEPOINT active_record_1
1216
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1218
+  (0.1ms) SAVEPOINT active_record_1
1219
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1221
+  (0.2ms) rollback transaction
1222
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1223
+  (0.1ms) begin transaction
1224
+ ------------------------------------------
1225
+ ActsAsIntervalTest: test_check_if_interval
1226
+ ------------------------------------------
1227
+  (0.1ms) rollback transaction
1228
+  (0.0ms) begin transaction
1229
+ -----------------------------------------------
1230
+ ActsAsIntervalTest: test_intersecting_intervals
1231
+ -----------------------------------------------
1232
+  (0.0ms) SAVEPOINT active_record_1
1233
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.0ms) SAVEPOINT active_record_1
1236
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1238
+  (0.0ms) SAVEPOINT active_record_1
1239
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1241
+  (0.0ms) SAVEPOINT active_record_1
1242
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1244
+  (0.1ms) rollback transaction
1245
+  (0.0ms) begin transaction
1246
+ ----------------------------------------
1247
+ ActsAsIntervalTest: test_intervals_after
1248
+ ----------------------------------------
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1255
+  (0.0ms) SAVEPOINT active_record_1
1256
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1258
+  (0.0ms) SAVEPOINT active_record_1
1259
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1261
+  (0.0ms) SAVEPOINT active_record_1
1262
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1264
+  (0.1ms) rollback transaction
1265
+  (0.0ms) begin transaction
1266
+ -----------------------------------------
1267
+ ActsAsIntervalTest: test_intervals_before
1268
+ -----------------------------------------
1269
+  (0.0ms) SAVEPOINT active_record_1
1270
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.0ms) SAVEPOINT active_record_1
1273
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1275
+  (0.0ms) SAVEPOINT active_record_1
1276
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1278
+  (0.0ms) SAVEPOINT active_record_1
1279
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1281
+  (0.0ms) SAVEPOINT active_record_1
1282
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1284
+  (0.1ms) rollback transaction
1285
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1286
+  (0.1ms) begin transaction
1287
+ ------------------------------------------
1288
+ ActsAsIntervalTest: test_check_if_interval
1289
+ ------------------------------------------
1290
+  (0.0ms) rollback transaction
1291
+  (0.0ms) begin transaction
1292
+ -----------------------------------------------
1293
+ ActsAsIntervalTest: test_intersecting_intervals
1294
+ -----------------------------------------------
1295
+  (0.0ms) SAVEPOINT active_record_1
1296
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1298
+  (0.0ms) SAVEPOINT active_record_1
1299
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+  (0.0ms) SAVEPOINT active_record_1
1302
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1304
+  (0.0ms) SAVEPOINT active_record_1
1305
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1307
+  (0.1ms) rollback transaction
1308
+  (0.0ms) begin transaction
1309
+ ----------------------------------------
1310
+ ActsAsIntervalTest: test_intervals_after
1311
+ ----------------------------------------
1312
+  (0.0ms) SAVEPOINT active_record_1
1313
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1315
+  (0.0ms) SAVEPOINT active_record_1
1316
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.0ms) SAVEPOINT active_record_1
1319
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1321
+  (0.0ms) SAVEPOINT active_record_1
1322
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1324
+  (0.0ms) SAVEPOINT active_record_1
1325
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1327
+  (0.1ms) rollback transaction
1328
+  (0.0ms) begin transaction
1329
+ -----------------------------------------
1330
+ ActsAsIntervalTest: test_intervals_before
1331
+ -----------------------------------------
1332
+  (0.0ms) SAVEPOINT active_record_1
1333
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.0ms) SAVEPOINT active_record_1
1336
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1338
+  (0.0ms) SAVEPOINT active_record_1
1339
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1341
+  (0.0ms) SAVEPOINT active_record_1
1342
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1344
+  (0.1ms) SAVEPOINT active_record_1
1345
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.1ms) rollback transaction
1348
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1349
+  (0.1ms) begin transaction
1350
+ -----------------------------------------------
1351
+ ActsAsIntervalTest: test_intersecting_intervals
1352
+ -----------------------------------------------
1353
+  (0.0ms) SAVEPOINT active_record_1
1354
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1356
+  (0.0ms) SAVEPOINT active_record_1
1357
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1359
+  (0.0ms) SAVEPOINT active_record_1
1360
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1362
+  (0.0ms) SAVEPOINT active_record_1
1363
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1365
+  (0.1ms) rollback transaction
1366
+  (0.0ms) begin transaction
1367
+ ----------------------------------------
1368
+ ActsAsIntervalTest: test_intervals_after
1369
+ ----------------------------------------
1370
+  (0.1ms) SAVEPOINT active_record_1
1371
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1373
+  (0.0ms) SAVEPOINT active_record_1
1374
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1376
+  (0.0ms) SAVEPOINT active_record_1
1377
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1379
+  (0.0ms) SAVEPOINT active_record_1
1380
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1382
+  (0.0ms) SAVEPOINT active_record_1
1383
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1385
+  (0.1ms) rollback transaction
1386
+  (0.0ms) begin transaction
1387
+ -----------------------------------------
1388
+ ActsAsIntervalTest: test_intervals_before
1389
+ -----------------------------------------
1390
+  (0.0ms) SAVEPOINT active_record_1
1391
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1393
+  (0.0ms) SAVEPOINT active_record_1
1394
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1396
+  (0.0ms) SAVEPOINT active_record_1
1397
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1399
+  (0.0ms) SAVEPOINT active_record_1
1400
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1402
+  (0.0ms) SAVEPOINT active_record_1
1403
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+  (0.1ms) rollback transaction
1406
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1407
+  (0.1ms) begin transaction
1408
+ -----------------------------------------------
1409
+ ActsAsIntervalTest: test_intersecting_intervals
1410
+ -----------------------------------------------
1411
+  (0.0ms) SAVEPOINT active_record_1
1412
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1414
+  (0.0ms) SAVEPOINT active_record_1
1415
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1417
+  (0.1ms) SAVEPOINT active_record_1
1418
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1420
+  (0.0ms) SAVEPOINT active_record_1
1421
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1423
+ Interval Load (0.1ms) SELECT "intervals".* FROM "intervals" WHERE (1)
1424
+  (0.4ms) rollback transaction
1425
+  (0.2ms) begin transaction
1426
+ ----------------------------------------
1427
+ ActsAsIntervalTest: test_intervals_after
1428
+ ----------------------------------------
1429
+  (0.2ms) SAVEPOINT active_record_1
1430
+ SQL (0.4ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1432
+  (0.2ms) SAVEPOINT active_record_1
1433
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1435
+  (0.1ms) SAVEPOINT active_record_1
1436
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1438
+  (0.1ms) SAVEPOINT active_record_1
1439
+ SQL (0.2ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1441
+  (0.1ms) SAVEPOINT active_record_1
1442
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.2ms) rollback transaction
1445
+  (0.1ms) begin transaction
1446
+ -----------------------------------------
1447
+ ActsAsIntervalTest: test_intervals_before
1448
+ -----------------------------------------
1449
+  (0.1ms) SAVEPOINT active_record_1
1450
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1452
+  (0.1ms) SAVEPOINT active_record_1
1453
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1455
+  (0.1ms) SAVEPOINT active_record_1
1456
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1458
+  (0.1ms) SAVEPOINT active_record_1
1459
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1461
+  (0.1ms) SAVEPOINT active_record_1
1462
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1464
+  (0.1ms) rollback transaction
1465
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1466
+  (0.1ms) begin transaction
1467
+ -----------------------------------------------
1468
+ ActsAsIntervalTest: test_intersecting_intervals
1469
+ -----------------------------------------------
1470
+  (0.0ms) SAVEPOINT active_record_1
1471
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1473
+  (0.0ms) SAVEPOINT active_record_1
1474
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1476
+  (0.0ms) SAVEPOINT active_record_1
1477
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1479
+  (0.0ms) SAVEPOINT active_record_1
1480
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1482
+ Interval Load (0.2ms) 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)
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
+  (0.2ms) rollback transaction
1485
+  (0.1ms) begin transaction
1486
+ ----------------------------------------
1487
+ ActsAsIntervalTest: test_intervals_after
1488
+ ----------------------------------------
1489
+  (0.1ms) SAVEPOINT active_record_1
1490
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1492
+  (0.1ms) SAVEPOINT active_record_1
1493
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1495
+  (0.1ms) SAVEPOINT active_record_1
1496
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1498
+  (0.1ms) SAVEPOINT active_record_1
1499
+ SQL (0.2ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1501
+  (0.1ms) SAVEPOINT active_record_1
1502
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1504
+  (0.2ms) rollback transaction
1505
+  (0.1ms) begin transaction
1506
+ -----------------------------------------
1507
+ ActsAsIntervalTest: test_intervals_before
1508
+ -----------------------------------------
1509
+  (0.1ms) SAVEPOINT active_record_1
1510
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1512
+  (0.1ms) SAVEPOINT active_record_1
1513
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1515
+  (0.1ms) SAVEPOINT active_record_1
1516
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1518
+  (0.1ms) SAVEPOINT active_record_1
1519
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1521
+  (0.1ms) SAVEPOINT active_record_1
1522
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1524
+  (0.2ms) rollback transaction
1525
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1526
+  (0.1ms) begin transaction
1527
+ -----------------------------------------------
1528
+ ActsAsIntervalTest: test_intersecting_intervals
1529
+ -----------------------------------------------
1530
+  (0.0ms) SAVEPOINT active_record_1
1531
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1533
+  (0.0ms) SAVEPOINT active_record_1
1534
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1536
+  (0.0ms) SAVEPOINT active_record_1
1537
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1539
+  (0.0ms) SAVEPOINT active_record_1
1540
+ SQL (0.0ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1542
+ Interval Load (0.5ms) 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)
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
+  (0.4ms) rollback transaction
1545
+  (0.1ms) begin transaction
1546
+ ----------------------------------------
1547
+ ActsAsIntervalTest: test_intervals_after
1548
+ ----------------------------------------
1549
+  (0.1ms) SAVEPOINT active_record_1
1550
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
+  (0.1ms) SAVEPOINT active_record_1
1553
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1555
+  (0.1ms) SAVEPOINT active_record_1
1556
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1558
+  (0.1ms) SAVEPOINT active_record_1
1559
+ SQL (0.1ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1561
+  (0.2ms) SAVEPOINT active_record_1
1562
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1564
+ Interval Load (0.2ms) SELECT "intervals".* FROM "intervals" WHERE (starts_at >= '2015-02-27 14:04:37.047014')
1565
+  (0.2ms) rollback transaction
1566
+  (0.1ms) begin transaction
1567
+ -----------------------------------------
1568
+ ActsAsIntervalTest: test_intervals_before
1569
+ -----------------------------------------
1570
+  (0.1ms) SAVEPOINT active_record_1
1571
+ SQL (0.2ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1573
+  (0.1ms) SAVEPOINT active_record_1
1574
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1576
+  (0.1ms) SAVEPOINT active_record_1
1577
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1579
+  (0.1ms) SAVEPOINT active_record_1
1580
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1582
+  (0.1ms) SAVEPOINT active_record_1
1583
+ SQL (0.1ms) INSERT INTO "intervals" ("created_at", "ends_at", "starts_at", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1585
+ Interval Load (0.2ms) SELECT "intervals".* FROM "intervals" WHERE (ends_at <= '2015-02-26 15:04:37.070983')
1586
+  (0.1ms) rollback transaction