rails_multitenant 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 20d2743f52770c7de4e81ae6936148c6c1f474f2
4
+ data.tar.gz: a533e376642c62f6beb78570ef94eaa99d57f6d8
5
+ SHA512:
6
+ metadata.gz: 213daa229aaf72402c6964eeddb045b5f33f2da1dbd2eecf01eeb568f04f97336ddad5af5c3fee90de13531b4090511432438796746dd2694d4af454f081e5f5
7
+ data.tar.gz: 00ab17d047dc6117014bbb86b93ad7fcc731a067347c6d8437fc575350b8ea314096ba89a76dfbc6a8e0ca413be2db2108492c85e8771d00016072d3919cd0b8
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ bundle
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.3
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ sudo: false
3
+ env:
4
+ - RAILS_VERSION="~> 3.2.22"
5
+ - RAILS_VERSION="~> 4.0.13"
6
+ - RAILS_VERSION="~> 4.1.13"
7
+ - RAILS_VERSION="~> 4.2.4"
8
+ rvm:
9
+ - 2.2.3
10
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rails_multitenant.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # RailsMultitenant
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_multitenant`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rails_multitenant'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rails_multitenant
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_multitenant. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rails_multitenant"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ require 'active_support/all'
2
+ require 'active_record'
3
+
4
+ require "rails_multitenant/global_context_registry"
5
+ require "rails_multitenant/multitenant_model"
@@ -0,0 +1,215 @@
1
+ # Handles storing of global state that may be swapped out or unset at
2
+ # various points. We use this in dandelion to store the current user,
3
+ # org, catalog, etc.
4
+ #
5
+ # Note: You must ensure your entries are .dup'able.
6
+ #
7
+ module RailsMultitenant
8
+ module GlobalContextRegistry
9
+
10
+ extend self
11
+
12
+ module RegistryDependentOn
13
+
14
+ # Is this class dependent on changes in another GlobalContextRegistry-
15
+ # stored object? Register that dependency here.
16
+ def global_context_dependent_on(*klasses)
17
+ klasses.each { |klass| GlobalContextRegistry.send(:add_dependency, klass, self) }
18
+ end
19
+ end
20
+
21
+ # This module allows your to have a current, thread-local instance
22
+ # of this class. It currently assumes your class has a zero-arg
23
+ # constructor.
24
+ module Current
25
+ extend ActiveSupport::Concern
26
+
27
+ module ClassMethods
28
+ def current
29
+ GlobalContextRegistry.fetch(current_registry_obj) { new }
30
+ end
31
+
32
+ def clear_current!
33
+ GlobalContextRegistry.delete(current_registry_obj)
34
+ end
35
+
36
+ include RegistryDependentOn
37
+
38
+ private
39
+
40
+ def current_registry_obj
41
+ key_class = respond_to?(:base_class) ? base_class : self
42
+ "#{key_class.name.downcase}_obj".to_sym
43
+ end
44
+ end
45
+
46
+ end
47
+
48
+ # This module allows you to have a current, thread-local instance
49
+ # of a class. This module assumes that you are mixing into a Rails
50
+ # model, and separately stores and id in thread local storage for
51
+ # lazy loading.
52
+ module CurrentInstance
53
+ extend ActiveSupport::Concern
54
+
55
+ module ClassMethods
56
+ def current_id=(id)
57
+ GlobalContextRegistry.delete(current_instance_registry_obj)
58
+ GlobalContextRegistry.set(current_instance_registry_id, id)
59
+ __clear_dependents!
60
+ end
61
+
62
+ def current=(object)
63
+ GlobalContextRegistry.set(current_instance_registry_obj, object)
64
+ GlobalContextRegistry.set(current_instance_registry_id, object.try(:id))
65
+ __clear_dependents!
66
+ end
67
+
68
+ def current_id
69
+ GlobalContextRegistry.get(current_instance_registry_id)
70
+ end
71
+
72
+ def current
73
+ GlobalContextRegistry.fetch(current_instance_registry_obj) do
74
+ (current_id ? find(current_id) : nil)
75
+ end
76
+ end
77
+
78
+ def current?
79
+ !!current
80
+ end
81
+
82
+ def current!
83
+ current || raise("No current #{name} set")
84
+ end
85
+
86
+ def as_current_id(id)
87
+ old_id = current_id
88
+ self.current_id = id
89
+ yield
90
+ ensure
91
+ self.current_id = old_id
92
+ end
93
+
94
+ def clear_current!
95
+ GlobalContextRegistry.delete(current_instance_registry_obj)
96
+ end
97
+
98
+ private
99
+
100
+ def __clear_dependents!
101
+ GlobalContextRegistry.send(:dependencies_for, self).each(&:clear_current!)
102
+ end
103
+
104
+ def current_instance_registry_id
105
+ key_class = respond_to?(:base_class) ? base_class : self
106
+ "#{key_class.name.downcase}_id".to_sym
107
+ end
108
+
109
+ def current_instance_registry_obj
110
+ key_class = respond_to?(:base_class) ? base_class : self
111
+ "#{key_class.name.downcase}_obj".to_sym
112
+ end
113
+
114
+ include RegistryDependentOn
115
+ end
116
+
117
+ def as_current
118
+ old_id = self.class.current_id
119
+ self.class.current = self
120
+ yield
121
+ ensure
122
+ self.class.current_id = old_id
123
+ end
124
+
125
+ def current?
126
+ id == self.class.current_id
127
+ end
128
+
129
+ end
130
+
131
+ # Set this global
132
+ def set(symbol, value)
133
+ globals[symbol] = value
134
+ end
135
+
136
+ # delete this global
137
+ def delete(symbol)
138
+ globals.delete(symbol)
139
+ end
140
+
141
+ # Pass with a generator block for the value
142
+ def fetch(symbol)
143
+ result = globals[symbol]
144
+ unless result
145
+ result = yield
146
+ globals[symbol] = result
147
+ end
148
+ result
149
+ end
150
+
151
+ # get the global identified by the symbol
152
+ def get(symbol)
153
+ globals[symbol]
154
+ end
155
+
156
+ # Duplicate the registry
157
+ def duplicate_registry
158
+ globals.each_with_object({}) do |(key, value), result|
159
+ result[key] = (value.nil? || value.is_a?(Fixnum)) ? value : value.dup
160
+ end
161
+ end
162
+
163
+ # Run a block of code with an empty registry
164
+ def with_isolated_registry
165
+ prior_globals = globals
166
+ self.globals = {}
167
+ yield
168
+ ensure
169
+ self.globals = prior_globals
170
+ end
171
+
172
+ # Prefer .with_isolated_registry to the following two methods.
173
+ # Note: these methods are intended for use in a manner like .with_isolated_registry,
174
+ # but in contexts where around semantics are not allowed.
175
+
176
+ # Set a new, empty registry, returning the previous one.
177
+ def new_registry
178
+ priors = globals
179
+ self.globals = {}
180
+ priors
181
+ end
182
+
183
+ # Replace the registry with one you previously took away with .new_registry
184
+ def replace_registry(registry)
185
+ self.globals = registry
186
+ end
187
+
188
+ private
189
+
190
+ @dependencies = {}
191
+
192
+ def add_dependency(parent, dependent)
193
+ (@dependencies[parent] ||= []) << dependent
194
+ end
195
+
196
+ def dependencies_for(klass)
197
+ @dependencies[klass] || []
198
+ end
199
+
200
+ def globals
201
+ registry = Thread.current[:global_context_registry]
202
+ unless registry
203
+ registry = {}
204
+ Thread.current[:global_context_registry] = registry
205
+ end
206
+ registry
207
+ end
208
+
209
+ def globals=(value)
210
+ Thread.current[:global_context_registry] = value
211
+ value
212
+ end
213
+
214
+ end
215
+ end
@@ -0,0 +1,43 @@
1
+ module RailsMultitenant
2
+ module MultitenantModel
3
+ extend ActiveSupport::Concern
4
+ =begin
5
+ included do
6
+ belongs_to :organization
7
+ validates_presence_of :organization_id
8
+ scope :from_current_org, -> { where(organization_id: Organization.current_id) }
9
+ default_scope { from_current_org }
10
+ end
11
+ =end
12
+
13
+ included do
14
+ class << self
15
+ attr_accessor :context_entity_id_field
16
+ end
17
+ end
18
+
19
+ module ClassMethods
20
+
21
+ def multitenant_model_on(context_entity)
22
+ @context_entity_id_field = "#{context_entity}_id"
23
+ scope_sym = "from_current_#{context_entity}".to_sym
24
+
25
+ belongs_to context_entity
26
+ validates_presence_of context_entity_id_field
27
+ scope scope_sym, -> { where(context_entity_id_field => context_entity.to_s.classify.constantize.current_id) }
28
+ default_scope { send(scope_sym) }
29
+ define_method "strip_#{context_entity}_scope" do
30
+ unscope(where: context_entity_id_field)
31
+ end
32
+ end
33
+
34
+ def validates_multitenant_uniqueness_of(*attr_names)
35
+ options = attr_names.extract_options!.symbolize_keys
36
+ existing_scope = Array.wrap(options.delete(:scope))
37
+ scope = existing_scope | [ context_entity_id_field ]
38
+ validates_uniqueness_of(*attr_names, options.merge(scope: scope))
39
+ end
40
+
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,3 @@
1
+ module RailsMultitenant
2
+ VERSION = "0.1.0"
3
+ end
data/log/test.log ADDED
@@ -0,0 +1,875 @@
1
+ # Logfile created on 2015-12-22 10:36:39 -0500 by logger.rb/47272
2
+ D, [2015-12-22T10:37:30.647147 #2458] DEBUG -- :  (0.0ms) begin transaction
3
+ D, [2015-12-22T10:37:30.647263 #2458] DEBUG -- :  (0.0ms) commit transaction
4
+ D, [2015-12-22T10:37:30.647354 #2458] DEBUG -- :  (0.0ms) begin transaction
5
+ D, [2015-12-22T10:37:30.647856 #2458] DEBUG -- :  (0.0ms) rollback transaction
6
+ D, [2015-12-22T10:37:30.648357 #2458] DEBUG -- :  (0.0ms) begin transaction
7
+ D, [2015-12-22T10:37:30.648440 #2458] DEBUG -- :  (0.0ms) commit transaction
8
+ D, [2015-12-22T10:37:30.648520 #2458] DEBUG -- :  (0.0ms) begin transaction
9
+ D, [2015-12-22T10:37:30.649851 #2458] DEBUG -- :  (0.0ms) rollback transaction
10
+ D, [2015-12-22T10:37:30.650320 #2458] DEBUG -- :  (0.0ms) begin transaction
11
+ D, [2015-12-22T10:37:30.650399 #2458] DEBUG -- :  (0.0ms) commit transaction
12
+ D, [2015-12-22T10:37:30.650485 #2458] DEBUG -- :  (0.0ms) begin transaction
13
+ D, [2015-12-22T10:37:30.650641 #2458] DEBUG -- :  (0.0ms) rollback transaction
14
+ D, [2015-12-22T10:37:30.650921 #2458] DEBUG -- :  (0.0ms) begin transaction
15
+ D, [2015-12-22T10:37:30.651001 #2458] DEBUG -- :  (0.0ms) commit transaction
16
+ D, [2015-12-22T10:37:30.651099 #2458] DEBUG -- :  (0.0ms) begin transaction
17
+ D, [2015-12-22T10:37:30.651228 #2458] DEBUG -- :  (0.0ms) rollback transaction
18
+ D, [2015-12-22T10:37:30.651476 #2458] DEBUG -- :  (0.0ms) begin transaction
19
+ D, [2015-12-22T10:37:30.651560 #2458] DEBUG -- :  (0.0ms) commit transaction
20
+ D, [2015-12-22T10:37:30.651637 #2458] DEBUG -- :  (0.0ms) begin transaction
21
+ D, [2015-12-22T10:37:30.651768 #2458] DEBUG -- :  (0.0ms) rollback transaction
22
+ D, [2015-12-22T10:37:30.652222 #2458] DEBUG -- :  (0.0ms) begin transaction
23
+ D, [2015-12-22T10:37:30.652306 #2458] DEBUG -- :  (0.0ms) commit transaction
24
+ D, [2015-12-22T10:37:30.652388 #2458] DEBUG -- :  (0.0ms) begin transaction
25
+ D, [2015-12-22T10:37:30.652553 #2458] DEBUG -- :  (0.0ms) rollback transaction
26
+ D, [2015-12-22T10:37:30.652819 #2458] DEBUG -- :  (0.0ms) begin transaction
27
+ D, [2015-12-22T10:37:30.652899 #2458] DEBUG -- :  (0.0ms) commit transaction
28
+ D, [2015-12-22T10:37:30.652980 #2458] DEBUG -- :  (0.0ms) begin transaction
29
+ D, [2015-12-22T10:37:30.653142 #2458] DEBUG -- :  (0.0ms) rollback transaction
30
+ D, [2015-12-22T10:37:30.653411 #2458] DEBUG -- :  (0.0ms) begin transaction
31
+ D, [2015-12-22T10:37:30.653501 #2458] DEBUG -- :  (0.0ms) commit transaction
32
+ D, [2015-12-22T10:37:30.653586 #2458] DEBUG -- :  (0.0ms) begin transaction
33
+ D, [2015-12-22T10:37:30.653720 #2458] DEBUG -- :  (0.0ms) rollback transaction
34
+ D, [2015-12-22T10:37:30.654125 #2458] DEBUG -- :  (0.0ms) begin transaction
35
+ D, [2015-12-22T10:37:30.654204 #2458] DEBUG -- :  (0.0ms) commit transaction
36
+ D, [2015-12-22T10:37:30.654281 #2458] DEBUG -- :  (0.0ms) begin transaction
37
+ D, [2015-12-22T10:37:30.654442 #2458] DEBUG -- :  (0.0ms) rollback transaction
38
+ D, [2015-12-22T10:37:30.654835 #2458] DEBUG -- :  (0.0ms) begin transaction
39
+ D, [2015-12-22T10:37:30.654912 #2458] DEBUG -- :  (0.0ms) commit transaction
40
+ D, [2015-12-22T10:37:30.654989 #2458] DEBUG -- :  (0.0ms) begin transaction
41
+ D, [2015-12-22T10:37:30.655143 #2458] DEBUG -- :  (0.0ms) rollback transaction
42
+ D, [2015-12-22T10:37:30.655564 #2458] DEBUG -- :  (0.0ms) begin transaction
43
+ D, [2015-12-22T10:37:30.655646 #2458] DEBUG -- :  (0.0ms) commit transaction
44
+ D, [2015-12-22T10:37:30.655749 #2458] DEBUG -- :  (0.0ms) begin transaction
45
+ D, [2015-12-22T10:37:30.655913 #2458] DEBUG -- :  (0.0ms) rollback transaction
46
+ D, [2015-12-22T10:41:25.295128 #2497] DEBUG -- :  (0.1ms) begin transaction
47
+ D, [2015-12-22T10:41:25.295293 #2497] DEBUG -- :  (0.1ms) commit transaction
48
+ D, [2015-12-22T10:41:25.295399 #2497] DEBUG -- :  (0.0ms) begin transaction
49
+ D, [2015-12-22T10:41:25.296069 #2497] DEBUG -- :  (0.0ms) rollback transaction
50
+ D, [2015-12-22T10:41:25.296809 #2497] DEBUG -- :  (0.1ms) begin transaction
51
+ D, [2015-12-22T10:41:25.296935 #2497] DEBUG -- :  (0.0ms) commit transaction
52
+ D, [2015-12-22T10:41:25.297023 #2497] DEBUG -- :  (0.0ms) begin transaction
53
+ D, [2015-12-22T10:41:25.297218 #2497] DEBUG -- :  (0.0ms) rollback transaction
54
+ D, [2015-12-22T10:41:25.297587 #2497] DEBUG -- :  (0.0ms) begin transaction
55
+ D, [2015-12-22T10:41:25.297681 #2497] DEBUG -- :  (0.0ms) commit transaction
56
+ D, [2015-12-22T10:41:25.297773 #2497] DEBUG -- :  (0.0ms) begin transaction
57
+ D, [2015-12-22T10:41:25.297922 #2497] DEBUG -- :  (0.0ms) rollback transaction
58
+ D, [2015-12-22T10:41:25.298209 #2497] DEBUG -- :  (0.0ms) begin transaction
59
+ D, [2015-12-22T10:41:25.298289 #2497] DEBUG -- :  (0.0ms) commit transaction
60
+ D, [2015-12-22T10:41:25.298370 #2497] DEBUG -- :  (0.0ms) begin transaction
61
+ D, [2015-12-22T10:41:25.299824 #2497] DEBUG -- :  (0.0ms) rollback transaction
62
+ D, [2015-12-22T10:41:25.300296 #2497] DEBUG -- :  (0.0ms) begin transaction
63
+ D, [2015-12-22T10:41:25.300383 #2497] DEBUG -- :  (0.0ms) commit transaction
64
+ D, [2015-12-22T10:41:25.300472 #2497] DEBUG -- :  (0.0ms) begin transaction
65
+ D, [2015-12-22T10:41:25.300647 #2497] DEBUG -- :  (0.0ms) rollback transaction
66
+ D, [2015-12-22T10:41:25.300926 #2497] DEBUG -- :  (0.0ms) begin transaction
67
+ D, [2015-12-22T10:41:25.301009 #2497] DEBUG -- :  (0.0ms) commit transaction
68
+ D, [2015-12-22T10:41:25.301107 #2497] DEBUG -- :  (0.0ms) begin transaction
69
+ D, [2015-12-22T10:41:25.301266 #2497] DEBUG -- :  (0.0ms) rollback transaction
70
+ D, [2015-12-22T10:41:25.301535 #2497] DEBUG -- :  (0.0ms) begin transaction
71
+ D, [2015-12-22T10:41:25.301638 #2497] DEBUG -- :  (0.0ms) commit transaction
72
+ D, [2015-12-22T10:41:25.301721 #2497] DEBUG -- :  (0.0ms) begin transaction
73
+ D, [2015-12-22T10:41:25.301868 #2497] DEBUG -- :  (0.0ms) rollback transaction
74
+ D, [2015-12-22T10:41:25.302290 #2497] DEBUG -- :  (0.0ms) begin transaction
75
+ D, [2015-12-22T10:41:25.302372 #2497] DEBUG -- :  (0.0ms) commit transaction
76
+ D, [2015-12-22T10:41:25.302456 #2497] DEBUG -- :  (0.0ms) begin transaction
77
+ D, [2015-12-22T10:41:25.302631 #2497] DEBUG -- :  (0.0ms) rollback transaction
78
+ D, [2015-12-22T10:41:25.303217 #2497] DEBUG -- :  (0.1ms) begin transaction
79
+ D, [2015-12-22T10:41:25.303369 #2497] DEBUG -- :  (0.0ms) commit transaction
80
+ D, [2015-12-22T10:41:25.303563 #2497] DEBUG -- :  (0.0ms) begin transaction
81
+ D, [2015-12-22T10:41:25.303894 #2497] DEBUG -- :  (0.1ms) rollback transaction
82
+ D, [2015-12-22T10:41:25.304567 #2497] DEBUG -- :  (0.1ms) begin transaction
83
+ D, [2015-12-22T10:41:25.304671 #2497] DEBUG -- :  (0.0ms) commit transaction
84
+ D, [2015-12-22T10:41:25.304781 #2497] DEBUG -- :  (0.0ms) begin transaction
85
+ D, [2015-12-22T10:41:25.304956 #2497] DEBUG -- :  (0.0ms) rollback transaction
86
+ D, [2015-12-22T10:41:25.305385 #2497] DEBUG -- :  (0.0ms) begin transaction
87
+ D, [2015-12-22T10:41:25.305463 #2497] DEBUG -- :  (0.0ms) commit transaction
88
+ D, [2015-12-22T10:41:25.305545 #2497] DEBUG -- :  (0.0ms) begin transaction
89
+ D, [2015-12-22T10:41:25.305697 #2497] DEBUG -- :  (0.0ms) rollback transaction
90
+ D, [2015-12-22T11:02:45.511868 #28315] DEBUG -- :  (0.1ms) begin transaction
91
+ D, [2015-12-22T11:02:45.512006 #28315] DEBUG -- :  (0.0ms) commit transaction
92
+ D, [2015-12-22T11:02:45.512145 #28315] DEBUG -- :  (0.0ms) begin transaction
93
+ D, [2015-12-22T11:02:45.512763 #28315] DEBUG -- :  (0.0ms) rollback transaction
94
+ D, [2015-12-22T11:02:45.513272 #28315] DEBUG -- :  (0.0ms) begin transaction
95
+ D, [2015-12-22T11:02:45.513359 #28315] DEBUG -- :  (0.0ms) commit transaction
96
+ D, [2015-12-22T11:02:45.513444 #28315] DEBUG -- :  (0.0ms) begin transaction
97
+ D, [2015-12-22T11:02:45.514757 #28315] DEBUG -- :  (0.0ms) rollback transaction
98
+ D, [2015-12-22T11:02:45.515308 #28315] DEBUG -- :  (0.0ms) begin transaction
99
+ D, [2015-12-22T11:02:45.515400 #28315] DEBUG -- :  (0.0ms) commit transaction
100
+ D, [2015-12-22T11:02:45.515494 #28315] DEBUG -- :  (0.0ms) begin transaction
101
+ D, [2015-12-22T11:02:45.515658 #28315] DEBUG -- :  (0.0ms) rollback transaction
102
+ D, [2015-12-22T11:02:45.516116 #28315] DEBUG -- :  (0.0ms) begin transaction
103
+ D, [2015-12-22T11:02:45.516210 #28315] DEBUG -- :  (0.0ms) commit transaction
104
+ D, [2015-12-22T11:02:45.516320 #28315] DEBUG -- :  (0.0ms) begin transaction
105
+ D, [2015-12-22T11:02:45.516474 #28315] DEBUG -- :  (0.0ms) rollback transaction
106
+ D, [2015-12-22T11:02:45.516754 #28315] DEBUG -- :  (0.0ms) begin transaction
107
+ D, [2015-12-22T11:02:45.516851 #28315] DEBUG -- :  (0.0ms) commit transaction
108
+ D, [2015-12-22T11:02:45.516933 #28315] DEBUG -- :  (0.0ms) begin transaction
109
+ D, [2015-12-22T11:02:45.517073 #28315] DEBUG -- :  (0.0ms) rollback transaction
110
+ D, [2015-12-22T11:02:45.517332 #28315] DEBUG -- :  (0.0ms) begin transaction
111
+ D, [2015-12-22T11:02:45.517414 #28315] DEBUG -- :  (0.0ms) commit transaction
112
+ D, [2015-12-22T11:02:45.517497 #28315] DEBUG -- :  (0.0ms) begin transaction
113
+ D, [2015-12-22T11:02:45.517624 #28315] DEBUG -- :  (0.0ms) rollback transaction
114
+ D, [2015-12-22T11:02:45.518048 #28315] DEBUG -- :  (0.0ms) begin transaction
115
+ D, [2015-12-22T11:02:45.518139 #28315] DEBUG -- :  (0.0ms) commit transaction
116
+ D, [2015-12-22T11:02:45.518239 #28315] DEBUG -- :  (0.0ms) begin transaction
117
+ D, [2015-12-22T11:02:45.518392 #28315] DEBUG -- :  (0.0ms) rollback transaction
118
+ D, [2015-12-22T11:02:45.518644 #28315] DEBUG -- :  (0.0ms) begin transaction
119
+ D, [2015-12-22T11:02:45.518740 #28315] DEBUG -- :  (0.0ms) commit transaction
120
+ D, [2015-12-22T11:02:45.518822 #28315] DEBUG -- :  (0.0ms) begin transaction
121
+ D, [2015-12-22T11:02:45.518969 #28315] DEBUG -- :  (0.0ms) rollback transaction
122
+ D, [2015-12-22T11:02:45.519251 #28315] DEBUG -- :  (0.0ms) begin transaction
123
+ D, [2015-12-22T11:02:45.519334 #28315] DEBUG -- :  (0.0ms) commit transaction
124
+ D, [2015-12-22T11:02:45.519423 #28315] DEBUG -- :  (0.0ms) begin transaction
125
+ D, [2015-12-22T11:02:45.519576 #28315] DEBUG -- :  (0.0ms) rollback transaction
126
+ D, [2015-12-22T11:02:45.519984 #28315] DEBUG -- :  (0.1ms) begin transaction
127
+ D, [2015-12-22T11:02:45.520069 #28315] DEBUG -- :  (0.0ms) commit transaction
128
+ D, [2015-12-22T11:02:45.520177 #28315] DEBUG -- :  (0.0ms) begin transaction
129
+ D, [2015-12-22T11:02:45.520340 #28315] DEBUG -- :  (0.0ms) rollback transaction
130
+ D, [2015-12-22T11:02:45.520765 #28315] DEBUG -- :  (0.1ms) begin transaction
131
+ D, [2015-12-22T11:02:45.520850 #28315] DEBUG -- :  (0.0ms) commit transaction
132
+ D, [2015-12-22T11:02:45.520937 #28315] DEBUG -- :  (0.0ms) begin transaction
133
+ D, [2015-12-22T11:02:45.521109 #28315] DEBUG -- :  (0.0ms) rollback transaction
134
+ D, [2015-12-22T16:45:36.638483 #54339] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
135
+ D, [2015-12-22T16:45:36.638908 #54339] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
136
+ D, [2015-12-22T16:45:36.651455 #54339] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
137
+ D, [2015-12-22T16:45:36.651661 #54339] DEBUG -- :  (0.1ms) select sqlite_version(*)
138
+ D, [2015-12-22T16:45:36.653432 #54339] DEBUG -- :  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
139
+ D, [2015-12-22T16:45:36.653798 #54339] DEBUG -- :  (0.1ms) SELECT version FROM "schema_migrations"
140
+ D, [2015-12-22T16:45:36.654042 #54339] DEBUG -- :  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
141
+ D, [2015-12-22T16:46:21.121150 #54358] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
142
+ D, [2015-12-22T16:46:21.121596 #54358] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
143
+ D, [2015-12-22T16:46:21.134100 #54358] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
144
+ D, [2015-12-22T16:46:21.134314 #54358] DEBUG -- :  (0.1ms) select sqlite_version(*)
145
+ D, [2015-12-22T16:46:21.134674 #54358] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
146
+ D, [2015-12-22T16:46:21.134820 #54358] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
147
+ D, [2015-12-22T16:46:21.134941 #54358] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
148
+ D, [2015-12-22T16:48:21.731073 #54381] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
149
+ D, [2015-12-22T16:48:21.731485 #54381] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
150
+ D, [2015-12-22T16:48:21.743676 #54381] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
151
+ D, [2015-12-22T16:48:21.743842 #54381] DEBUG -- :  (0.0ms) select sqlite_version(*)
152
+ D, [2015-12-22T16:48:21.744140 #54381] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
153
+ D, [2015-12-22T16:48:21.744263 #54381] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
154
+ D, [2015-12-22T16:48:21.744368 #54381] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
155
+ D, [2015-12-22T16:49:26.178040 #54407] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
156
+ D, [2015-12-22T16:49:26.178492 #54407] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
157
+ D, [2015-12-22T16:49:26.190474 #54407] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
158
+ D, [2015-12-22T16:49:26.190679 #54407] DEBUG -- :  (0.0ms) select sqlite_version(*)
159
+ D, [2015-12-22T16:49:26.190970 #54407] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
160
+ D, [2015-12-22T16:49:26.191096 #54407] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
161
+ D, [2015-12-22T16:49:26.191220 #54407] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
162
+ D, [2015-12-22T16:50:13.562022 #54424] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
163
+ D, [2015-12-22T16:50:13.562457 #54424] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
164
+ D, [2015-12-22T16:50:13.574357 #54424] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
165
+ D, [2015-12-22T16:50:13.574523 #54424] DEBUG -- :  (0.0ms) select sqlite_version(*)
166
+ D, [2015-12-22T16:50:13.574825 #54424] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
167
+ D, [2015-12-22T16:50:13.574949 #54424] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
168
+ D, [2015-12-22T16:50:13.575053 #54424] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
169
+ D, [2015-12-22T16:51:05.757896 #54454] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
170
+ D, [2015-12-22T16:51:05.758312 #54454] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
171
+ D, [2015-12-22T16:51:05.770433 #54454] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
172
+ D, [2015-12-22T16:51:05.770626 #54454] DEBUG -- :  (0.0ms) select sqlite_version(*)
173
+ D, [2015-12-22T16:51:05.770910 #54454] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
174
+ D, [2015-12-22T16:51:05.771055 #54454] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
175
+ D, [2015-12-22T16:51:05.771163 #54454] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
176
+ D, [2015-12-22T16:52:12.236318 #54472] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
177
+ D, [2015-12-22T16:52:12.236755 #54472] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
178
+ D, [2015-12-22T16:52:12.248610 #54472] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
179
+ D, [2015-12-22T16:52:12.248774 #54472] DEBUG -- :  (0.0ms) select sqlite_version(*)
180
+ D, [2015-12-22T16:52:12.249065 #54472] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
181
+ D, [2015-12-22T16:52:12.249189 #54472] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
182
+ D, [2015-12-22T16:52:12.249294 #54472] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
183
+ D, [2015-12-22T16:52:12.340707 #54472] DEBUG -- :  (0.1ms) DELETE FROM "organizations";
184
+ D, [2015-12-22T16:52:12.340862 #54472] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
185
+ D, [2015-12-22T16:52:12.340979 #54472] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
186
+ D, [2015-12-22T16:52:12.341077 #54472] DEBUG -- :  (0.0ms) DELETE FROM "items";
187
+ D, [2015-12-22T16:52:12.341184 #54472] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
188
+ D, [2015-12-22T16:52:12.341271 #54472] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
189
+ D, [2015-12-22T16:52:12.341663 #54472] DEBUG -- :  (0.0ms) begin transaction
190
+ D, [2015-12-22T16:52:12.341744 #54472] DEBUG -- :  (0.0ms) commit transaction
191
+ D, [2015-12-22T16:52:12.341883 #54472] DEBUG -- :  (0.0ms) begin transaction
192
+ D, [2015-12-22T16:52:12.342592 #54472] DEBUG -- :  (0.0ms) rollback transaction
193
+ D, [2015-12-22T16:52:47.877929 #54492] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
194
+ D, [2015-12-22T16:52:47.878388 #54492] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
195
+ D, [2015-12-22T16:52:47.890774 #54492] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
196
+ D, [2015-12-22T16:52:47.890946 #54492] DEBUG -- :  (0.0ms) select sqlite_version(*)
197
+ D, [2015-12-22T16:52:47.891251 #54492] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
198
+ D, [2015-12-22T16:52:47.891372 #54492] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
199
+ D, [2015-12-22T16:52:47.891479 #54492] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
200
+ D, [2015-12-22T16:52:47.978211 #54492] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
201
+ D, [2015-12-22T16:52:47.978355 #54492] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
202
+ D, [2015-12-22T16:52:47.978455 #54492] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
203
+ D, [2015-12-22T16:52:47.978565 #54492] DEBUG -- :  (0.0ms) DELETE FROM "items";
204
+ D, [2015-12-22T16:52:47.978655 #54492] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
205
+ D, [2015-12-22T16:52:47.978745 #54492] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
206
+ D, [2015-12-22T16:52:47.979120 #54492] DEBUG -- :  (0.0ms) begin transaction
207
+ D, [2015-12-22T16:52:47.979221 #54492] DEBUG -- :  (0.0ms) commit transaction
208
+ D, [2015-12-22T16:52:47.979319 #54492] DEBUG -- :  (0.0ms) begin transaction
209
+ D, [2015-12-22T16:52:47.980404 #54492] DEBUG -- :  (0.0ms) rollback transaction
210
+ D, [2015-12-22T16:54:33.968500 #54512] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
211
+ D, [2015-12-22T16:54:33.968972 #54512] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
212
+ D, [2015-12-22T16:54:33.981045 #54512] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
213
+ D, [2015-12-22T16:54:33.981212 #54512] DEBUG -- :  (0.0ms) select sqlite_version(*)
214
+ D, [2015-12-22T16:54:33.981508 #54512] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
215
+ D, [2015-12-22T16:54:33.981637 #54512] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
216
+ D, [2015-12-22T16:54:33.981762 #54512] DEBUG -- :  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
217
+ D, [2015-12-22T16:54:34.065814 #54512] DEBUG -- :  (0.1ms) DELETE FROM "organizations";
218
+ D, [2015-12-22T16:54:34.066039 #54512] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
219
+ D, [2015-12-22T16:54:34.066153 #54512] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
220
+ D, [2015-12-22T16:54:34.066241 #54512] DEBUG -- :  (0.0ms) DELETE FROM "items";
221
+ D, [2015-12-22T16:54:34.066342 #54512] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
222
+ D, [2015-12-22T16:54:34.066431 #54512] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
223
+ D, [2015-12-22T16:54:34.066912 #54512] DEBUG -- :  (0.0ms) begin transaction
224
+ D, [2015-12-22T16:54:34.067004 #54512] DEBUG -- :  (0.0ms) commit transaction
225
+ D, [2015-12-22T16:54:34.067106 #54512] DEBUG -- :  (0.0ms) begin transaction
226
+ D, [2015-12-22T16:54:34.073005 #54512] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
227
+ D, [2015-12-22T16:54:34.085374 #54512] DEBUG -- :  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
228
+ D, [2015-12-22T16:54:34.086235 #54512] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" IS NULL
229
+ D, [2015-12-22T16:54:34.088190 #54512] DEBUG -- :  (0.0ms) rollback transaction
230
+ D, [2015-12-22T16:58:24.014206 #54575] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
231
+ D, [2015-12-22T16:58:24.014663 #54575] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
232
+ D, [2015-12-22T16:58:24.026877 #54575] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
233
+ D, [2015-12-22T16:58:24.027051 #54575] DEBUG -- :  (0.0ms) select sqlite_version(*)
234
+ D, [2015-12-22T16:58:24.027383 #54575] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
235
+ D, [2015-12-22T16:58:24.027520 #54575] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
236
+ D, [2015-12-22T16:58:24.027642 #54575] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
237
+ D, [2015-12-22T16:58:24.117851 #54575] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
238
+ D, [2015-12-22T16:58:24.117999 #54575] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
239
+ D, [2015-12-22T16:58:24.118096 #54575] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
240
+ D, [2015-12-22T16:58:24.118188 #54575] DEBUG -- :  (0.0ms) DELETE FROM "items";
241
+ D, [2015-12-22T16:58:24.118338 #54575] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
242
+ D, [2015-12-22T16:58:24.118427 #54575] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
243
+ D, [2015-12-22T16:58:24.118832 #54575] DEBUG -- :  (0.0ms) begin transaction
244
+ D, [2015-12-22T16:58:24.118915 #54575] DEBUG -- :  (0.0ms) commit transaction
245
+ D, [2015-12-22T16:58:24.119007 #54575] DEBUG -- :  (0.0ms) begin transaction
246
+ D, [2015-12-22T16:58:24.119546 #54575] DEBUG -- :  (0.0ms) rollback transaction
247
+ D, [2015-12-22T16:58:40.896343 #54593] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
248
+ D, [2015-12-22T16:58:40.896752 #54593] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
249
+ D, [2015-12-22T16:58:40.908617 #54593] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
250
+ D, [2015-12-22T16:58:40.908780 #54593] DEBUG -- :  (0.0ms) select sqlite_version(*)
251
+ D, [2015-12-22T16:58:40.909087 #54593] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
252
+ D, [2015-12-22T16:58:40.909207 #54593] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
253
+ D, [2015-12-22T16:58:40.909312 #54593] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
254
+ D, [2015-12-22T16:58:40.999758 #54593] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
255
+ D, [2015-12-22T16:58:40.999895 #54593] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
256
+ D, [2015-12-22T16:58:40.999989 #54593] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
257
+ D, [2015-12-22T16:58:41.000063 #54593] DEBUG -- :  (0.0ms) DELETE FROM "items";
258
+ D, [2015-12-22T16:58:41.000163 #54593] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
259
+ D, [2015-12-22T16:58:41.000301 #54593] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
260
+ D, [2015-12-22T16:58:41.000659 #54593] DEBUG -- :  (0.0ms) begin transaction
261
+ D, [2015-12-22T16:58:41.000752 #54593] DEBUG -- :  (0.0ms) commit transaction
262
+ D, [2015-12-22T16:58:41.000836 #54593] DEBUG -- :  (0.0ms) begin transaction
263
+ D, [2015-12-22T16:58:41.002941 #54593] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
264
+ D, [2015-12-22T16:58:41.005786 #54593] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
265
+ D, [2015-12-22T16:58:41.006040 #54593] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
266
+ D, [2015-12-22T16:58:41.010517 #54593] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
267
+ D, [2015-12-22T16:58:41.011162 #54593] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
268
+ D, [2015-12-22T16:58:41.011412 #54593] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
269
+ D, [2015-12-22T16:58:41.012106 #54593] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 1]]
270
+ D, [2015-12-22T16:58:41.014733 #54593] DEBUG -- :  (1.3ms) rollback transaction
271
+ D, [2015-12-22T17:00:48.518843 #54612] DEBUG -- :  (0.3ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
272
+ D, [2015-12-22T17:00:48.519355 #54612] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
273
+ D, [2015-12-22T17:00:48.531678 #54612] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
274
+ D, [2015-12-22T17:00:48.531875 #54612] DEBUG -- :  (0.0ms) select sqlite_version(*)
275
+ D, [2015-12-22T17:00:48.532232 #54612] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
276
+ D, [2015-12-22T17:00:48.532387 #54612] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
277
+ D, [2015-12-22T17:00:48.532537 #54612] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
278
+ D, [2015-12-22T17:00:48.621079 #54612] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
279
+ D, [2015-12-22T17:00:48.621226 #54612] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
280
+ D, [2015-12-22T17:00:48.621339 #54612] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
281
+ D, [2015-12-22T17:00:48.621421 #54612] DEBUG -- :  (0.0ms) DELETE FROM "items";
282
+ D, [2015-12-22T17:00:48.621524 #54612] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
283
+ D, [2015-12-22T17:00:48.621611 #54612] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
284
+ D, [2015-12-22T17:00:48.621999 #54612] DEBUG -- :  (0.1ms) begin transaction
285
+ D, [2015-12-22T17:00:48.622080 #54612] DEBUG -- :  (0.0ms) commit transaction
286
+ D, [2015-12-22T17:00:48.622170 #54612] DEBUG -- :  (0.0ms) begin transaction
287
+ D, [2015-12-22T17:00:48.624519 #54612] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
288
+ D, [2015-12-22T17:00:48.627430 #54612] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
289
+ D, [2015-12-22T17:00:48.627708 #54612] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
290
+ D, [2015-12-22T17:00:48.627985 #54612] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
291
+ D, [2015-12-22T17:00:48.628319 #54612] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
292
+ D, [2015-12-22T17:00:48.628539 #54612] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
293
+ D, [2015-12-22T17:00:48.628754 #54612] DEBUG -- :  (0.1ms) rollback transaction
294
+ D, [2015-12-22T17:00:48.629107 #54612] DEBUG -- :  (0.1ms) begin transaction
295
+ D, [2015-12-22T17:00:48.629189 #54612] DEBUG -- :  (0.0ms) commit transaction
296
+ D, [2015-12-22T17:00:48.629287 #54612] DEBUG -- :  (0.0ms) begin transaction
297
+ D, [2015-12-22T17:00:48.629480 #54612] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
298
+ D, [2015-12-22T17:00:48.629837 #54612] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
299
+ D, [2015-12-22T17:00:48.629999 #54612] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
300
+ D, [2015-12-22T17:00:48.634467 #54612] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
301
+ D, [2015-12-22T17:00:48.635072 #54612] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
302
+ D, [2015-12-22T17:00:48.635301 #54612] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
303
+ D, [2015-12-22T17:00:48.636078 #54612] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 1]]
304
+ D, [2015-12-22T17:00:48.637764 #54612] DEBUG -- :  (0.1ms) rollback transaction
305
+ D, [2015-12-22T17:01:59.096139 #54630] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
306
+ D, [2015-12-22T17:01:59.096596 #54630] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
307
+ D, [2015-12-22T17:01:59.108728 #54630] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
308
+ D, [2015-12-22T17:01:59.108895 #54630] DEBUG -- :  (0.0ms) select sqlite_version(*)
309
+ D, [2015-12-22T17:01:59.109196 #54630] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
310
+ D, [2015-12-22T17:01:59.109319 #54630] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
311
+ D, [2015-12-22T17:01:59.109426 #54630] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
312
+ D, [2015-12-22T17:01:59.196477 #54630] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
313
+ D, [2015-12-22T17:01:59.196634 #54630] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
314
+ D, [2015-12-22T17:01:59.196725 #54630] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
315
+ D, [2015-12-22T17:01:59.196804 #54630] DEBUG -- :  (0.0ms) DELETE FROM "items";
316
+ D, [2015-12-22T17:01:59.196905 #54630] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
317
+ D, [2015-12-22T17:01:59.196985 #54630] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
318
+ D, [2015-12-22T17:01:59.197349 #54630] DEBUG -- :  (0.0ms) begin transaction
319
+ D, [2015-12-22T17:01:59.197428 #54630] DEBUG -- :  (0.0ms) commit transaction
320
+ D, [2015-12-22T17:01:59.197538 #54630] DEBUG -- :  (0.0ms) begin transaction
321
+ D, [2015-12-22T17:01:59.199757 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
322
+ D, [2015-12-22T17:01:59.202540 #54630] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
323
+ D, [2015-12-22T17:01:59.202808 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
324
+ D, [2015-12-22T17:01:59.203103 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
325
+ D, [2015-12-22T17:01:59.203454 #54630] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
326
+ D, [2015-12-22T17:01:59.203608 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
327
+ D, [2015-12-22T17:01:59.203798 #54630] DEBUG -- :  (0.0ms) rollback transaction
328
+ D, [2015-12-22T17:01:59.204184 #54630] DEBUG -- :  (0.1ms) begin transaction
329
+ D, [2015-12-22T17:01:59.204282 #54630] DEBUG -- :  (0.0ms) commit transaction
330
+ D, [2015-12-22T17:01:59.204374 #54630] DEBUG -- :  (0.0ms) begin transaction
331
+ D, [2015-12-22T17:01:59.204635 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
332
+ D, [2015-12-22T17:01:59.205017 #54630] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
333
+ D, [2015-12-22T17:01:59.205180 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
334
+ D, [2015-12-22T17:01:59.209675 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
335
+ D, [2015-12-22T17:01:59.210268 #54630] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
336
+ D, [2015-12-22T17:01:59.210477 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
337
+ D, [2015-12-22T17:01:59.211125 #54630] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 1]]
338
+ D, [2015-12-22T17:01:59.212482 #54630] DEBUG -- :  (0.0ms) rollback transaction
339
+ D, [2015-12-22T17:01:59.212799 #54630] DEBUG -- :  (0.0ms) begin transaction
340
+ D, [2015-12-22T17:01:59.212880 #54630] DEBUG -- :  (0.0ms) commit transaction
341
+ D, [2015-12-22T17:01:59.212962 #54630] DEBUG -- :  (0.0ms) begin transaction
342
+ D, [2015-12-22T17:01:59.213231 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
343
+ D, [2015-12-22T17:01:59.213649 #54630] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
344
+ D, [2015-12-22T17:01:59.213830 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
345
+ D, [2015-12-22T17:01:59.214043 #54630] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
346
+ D, [2015-12-22T17:01:59.214324 #54630] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
347
+ D, [2015-12-22T17:01:59.214524 #54630] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
348
+ D, [2015-12-22T17:01:59.214689 #54630] DEBUG -- :  (0.0ms) rollback transaction
349
+ D, [2015-12-22T17:02:22.305003 #54643] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
350
+ D, [2015-12-22T17:02:22.305480 #54643] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
351
+ D, [2015-12-22T17:02:22.318415 #54643] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
352
+ D, [2015-12-22T17:02:22.318583 #54643] DEBUG -- :  (0.0ms) select sqlite_version(*)
353
+ D, [2015-12-22T17:02:22.318903 #54643] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
354
+ D, [2015-12-22T17:02:22.319025 #54643] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
355
+ D, [2015-12-22T17:02:22.319132 #54643] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
356
+ D, [2015-12-22T17:02:22.420722 #54643] DEBUG -- :  (0.1ms) DELETE FROM "organizations";
357
+ D, [2015-12-22T17:02:22.420904 #54643] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
358
+ D, [2015-12-22T17:02:22.421044 #54643] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
359
+ D, [2015-12-22T17:02:22.421140 #54643] DEBUG -- :  (0.0ms) DELETE FROM "items";
360
+ D, [2015-12-22T17:02:22.421259 #54643] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
361
+ D, [2015-12-22T17:02:22.421363 #54643] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
362
+ D, [2015-12-22T17:02:22.421871 #54643] DEBUG -- :  (0.0ms) begin transaction
363
+ D, [2015-12-22T17:02:22.421969 #54643] DEBUG -- :  (0.0ms) commit transaction
364
+ D, [2015-12-22T17:02:22.422076 #54643] DEBUG -- :  (0.0ms) begin transaction
365
+ D, [2015-12-22T17:02:22.424496 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
366
+ D, [2015-12-22T17:02:22.427491 #54643] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
367
+ D, [2015-12-22T17:02:22.427801 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
368
+ D, [2015-12-22T17:02:22.432140 #54643] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
369
+ D, [2015-12-22T17:02:22.432741 #54643] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
370
+ D, [2015-12-22T17:02:22.432954 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
371
+ D, [2015-12-22T17:02:22.433179 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
372
+ D, [2015-12-22T17:02:22.433479 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
373
+ D, [2015-12-22T17:02:22.433653 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
374
+ D, [2015-12-22T17:02:22.433839 #54643] DEBUG -- :  (0.0ms) rollback transaction
375
+ D, [2015-12-22T17:02:22.434208 #54643] DEBUG -- :  (0.1ms) begin transaction
376
+ D, [2015-12-22T17:02:22.434287 #54643] DEBUG -- :  (0.0ms) commit transaction
377
+ D, [2015-12-22T17:02:22.434371 #54643] DEBUG -- :  (0.0ms) begin transaction
378
+ D, [2015-12-22T17:02:22.434554 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
379
+ D, [2015-12-22T17:02:22.434891 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
380
+ D, [2015-12-22T17:02:22.435078 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
381
+ D, [2015-12-22T17:02:22.435620 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
382
+ D, [2015-12-22T17:02:22.436022 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
383
+ D, [2015-12-22T17:02:22.436212 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
384
+ D, [2015-12-22T17:02:22.436427 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
385
+ D, [2015-12-22T17:02:22.436710 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
386
+ D, [2015-12-22T17:02:22.436868 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
387
+ D, [2015-12-22T17:02:22.437041 #54643] DEBUG -- :  (0.0ms) rollback transaction
388
+ D, [2015-12-22T17:02:22.437451 #54643] DEBUG -- :  (0.0ms) begin transaction
389
+ D, [2015-12-22T17:02:22.437544 #54643] DEBUG -- :  (0.0ms) commit transaction
390
+ D, [2015-12-22T17:02:22.437629 #54643] DEBUG -- :  (0.0ms) begin transaction
391
+ D, [2015-12-22T17:02:22.437843 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
392
+ D, [2015-12-22T17:02:22.438188 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
393
+ D, [2015-12-22T17:02:22.438365 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
394
+ D, [2015-12-22T17:02:22.438892 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
395
+ D, [2015-12-22T17:02:22.439277 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
396
+ D, [2015-12-22T17:02:22.439469 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
397
+ D, [2015-12-22T17:02:22.439680 #54643] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
398
+ D, [2015-12-22T17:02:22.439971 #54643] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
399
+ D, [2015-12-22T17:02:22.440133 #54643] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
400
+ D, [2015-12-22T17:02:22.440287 #54643] DEBUG -- :  (0.0ms) rollback transaction
401
+ D, [2015-12-22T17:03:30.242093 #54680] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
402
+ D, [2015-12-22T17:03:30.242574 #54680] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
403
+ D, [2015-12-22T17:03:30.254801 #54680] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
404
+ D, [2015-12-22T17:03:30.254965 #54680] DEBUG -- :  (0.0ms) select sqlite_version(*)
405
+ D, [2015-12-22T17:03:30.255268 #54680] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
406
+ D, [2015-12-22T17:03:30.255388 #54680] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
407
+ D, [2015-12-22T17:03:30.255493 #54680] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
408
+ D, [2015-12-22T17:03:30.346695 #54680] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
409
+ D, [2015-12-22T17:03:30.346839 #54680] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
410
+ D, [2015-12-22T17:03:30.346951 #54680] DEBUG -- :  (0.1ms) DELETE FROM sqlite_sequence where name = 'organizations';
411
+ D, [2015-12-22T17:03:30.347027 #54680] DEBUG -- :  (0.0ms) DELETE FROM "items";
412
+ D, [2015-12-22T17:03:30.347135 #54680] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
413
+ D, [2015-12-22T17:03:30.347217 #54680] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
414
+ D, [2015-12-22T17:03:30.347724 #54680] DEBUG -- :  (0.0ms) begin transaction
415
+ D, [2015-12-22T17:03:30.347807 #54680] DEBUG -- :  (0.0ms) commit transaction
416
+ D, [2015-12-22T17:03:30.347895 #54680] DEBUG -- :  (0.0ms) begin transaction
417
+ D, [2015-12-22T17:03:30.350361 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
418
+ D, [2015-12-22T17:03:30.353281 #54680] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
419
+ D, [2015-12-22T17:03:30.353572 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
420
+ D, [2015-12-22T17:03:30.354171 #54680] DEBUG -- :  (0.0ms) rollback transaction
421
+ D, [2015-12-22T17:03:30.354508 #54680] DEBUG -- :  (0.0ms) begin transaction
422
+ D, [2015-12-22T17:03:30.354587 #54680] DEBUG -- :  (0.0ms) commit transaction
423
+ D, [2015-12-22T17:03:30.354684 #54680] DEBUG -- :  (0.0ms) begin transaction
424
+ D, [2015-12-22T17:03:30.354890 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
425
+ D, [2015-12-22T17:03:30.355263 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
426
+ D, [2015-12-22T17:03:30.355424 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
427
+ D, [2015-12-22T17:03:30.355641 #54680] DEBUG -- :  (0.0ms) rollback transaction
428
+ D, [2015-12-22T17:03:30.355931 #54680] DEBUG -- :  (0.0ms) begin transaction
429
+ D, [2015-12-22T17:03:30.356046 #54680] DEBUG -- :  (0.1ms) commit transaction
430
+ D, [2015-12-22T17:03:30.356130 #54680] DEBUG -- :  (0.0ms) begin transaction
431
+ D, [2015-12-22T17:03:30.356305 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
432
+ D, [2015-12-22T17:03:30.356680 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
433
+ D, [2015-12-22T17:03:30.356841 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
434
+ D, [2015-12-22T17:03:30.357129 #54680] DEBUG -- :  (0.1ms) rollback transaction
435
+ D, [2015-12-22T17:03:30.357663 #54680] DEBUG -- :  (0.0ms) begin transaction
436
+ D, [2015-12-22T17:03:30.357752 #54680] DEBUG -- :  (0.0ms) commit transaction
437
+ D, [2015-12-22T17:03:30.357839 #54680] DEBUG -- :  (0.0ms) begin transaction
438
+ D, [2015-12-22T17:03:30.358043 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
439
+ D, [2015-12-22T17:03:30.358423 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
440
+ D, [2015-12-22T17:03:30.358590 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
441
+ D, [2015-12-22T17:03:30.358811 #54680] DEBUG -- :  (0.0ms) rollback transaction
442
+ D, [2015-12-22T17:03:30.359263 #54680] DEBUG -- :  (0.0ms) begin transaction
443
+ D, [2015-12-22T17:03:30.359363 #54680] DEBUG -- :  (0.0ms) commit transaction
444
+ D, [2015-12-22T17:03:30.359453 #54680] DEBUG -- :  (0.0ms) begin transaction
445
+ D, [2015-12-22T17:03:30.359650 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
446
+ D, [2015-12-22T17:03:30.359994 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
447
+ D, [2015-12-22T17:03:30.360181 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
448
+ D, [2015-12-22T17:03:30.360370 #54680] DEBUG -- :  (0.0ms) rollback transaction
449
+ D, [2015-12-22T17:03:30.360843 #54680] DEBUG -- :  (0.0ms) begin transaction
450
+ D, [2015-12-22T17:03:30.360927 #54680] DEBUG -- :  (0.0ms) commit transaction
451
+ D, [2015-12-22T17:03:30.361011 #54680] DEBUG -- :  (0.0ms) begin transaction
452
+ D, [2015-12-22T17:03:30.361207 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
453
+ D, [2015-12-22T17:03:30.361545 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
454
+ D, [2015-12-22T17:03:30.361723 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
455
+ D, [2015-12-22T17:03:30.363138 #54680] DEBUG -- :  (0.0ms) rollback transaction
456
+ D, [2015-12-22T17:03:30.363651 #54680] DEBUG -- :  (0.0ms) begin transaction
457
+ D, [2015-12-22T17:03:30.363738 #54680] DEBUG -- :  (0.0ms) commit transaction
458
+ D, [2015-12-22T17:03:30.363823 #54680] DEBUG -- :  (0.0ms) begin transaction
459
+ D, [2015-12-22T17:03:30.364036 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
460
+ D, [2015-12-22T17:03:30.364407 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
461
+ D, [2015-12-22T17:03:30.364621 #54680] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
462
+ D, [2015-12-22T17:03:30.364857 #54680] DEBUG -- :  (0.0ms) rollback transaction
463
+ D, [2015-12-22T17:03:30.365232 #54680] DEBUG -- :  (0.0ms) begin transaction
464
+ D, [2015-12-22T17:03:30.365327 #54680] DEBUG -- :  (0.0ms) commit transaction
465
+ D, [2015-12-22T17:03:30.365424 #54680] DEBUG -- :  (0.0ms) begin transaction
466
+ D, [2015-12-22T17:03:30.365647 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
467
+ D, [2015-12-22T17:03:30.366044 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
468
+ D, [2015-12-22T17:03:30.366220 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
469
+ D, [2015-12-22T17:03:30.366413 #54680] DEBUG -- :  (0.0ms) rollback transaction
470
+ D, [2015-12-22T17:03:30.366720 #54680] DEBUG -- :  (0.0ms) begin transaction
471
+ D, [2015-12-22T17:03:30.366803 #54680] DEBUG -- :  (0.0ms) commit transaction
472
+ D, [2015-12-22T17:03:30.366887 #54680] DEBUG -- :  (0.0ms) begin transaction
473
+ D, [2015-12-22T17:03:30.367076 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
474
+ D, [2015-12-22T17:03:30.367405 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
475
+ D, [2015-12-22T17:03:30.367564 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
476
+ D, [2015-12-22T17:03:30.367750 #54680] DEBUG -- :  (0.0ms) rollback transaction
477
+ D, [2015-12-22T17:03:30.368189 #54680] DEBUG -- :  (0.0ms) begin transaction
478
+ D, [2015-12-22T17:03:30.368273 #54680] DEBUG -- :  (0.0ms) commit transaction
479
+ D, [2015-12-22T17:03:30.368372 #54680] DEBUG -- :  (0.0ms) begin transaction
480
+ D, [2015-12-22T17:03:30.368559 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
481
+ D, [2015-12-22T17:03:30.368902 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
482
+ D, [2015-12-22T17:03:30.369063 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
483
+ D, [2015-12-22T17:03:30.369250 #54680] DEBUG -- :  (0.0ms) rollback transaction
484
+ D, [2015-12-22T17:03:30.369697 #54680] DEBUG -- :  (0.0ms) begin transaction
485
+ D, [2015-12-22T17:03:30.369783 #54680] DEBUG -- :  (0.0ms) commit transaction
486
+ D, [2015-12-22T17:03:30.369884 #54680] DEBUG -- :  (0.0ms) begin transaction
487
+ D, [2015-12-22T17:03:30.370082 #54680] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
488
+ D, [2015-12-22T17:03:30.370448 #54680] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
489
+ D, [2015-12-22T17:03:30.370615 #54680] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
490
+ D, [2015-12-22T17:03:30.370797 #54680] DEBUG -- :  (0.0ms) rollback transaction
491
+ D, [2015-12-22T17:03:35.095743 #54693] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
492
+ D, [2015-12-22T17:03:35.096214 #54693] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
493
+ D, [2015-12-22T17:03:35.108247 #54693] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
494
+ D, [2015-12-22T17:03:35.108446 #54693] DEBUG -- :  (0.0ms) select sqlite_version(*)
495
+ D, [2015-12-22T17:03:35.108798 #54693] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
496
+ D, [2015-12-22T17:03:35.108988 #54693] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
497
+ D, [2015-12-22T17:03:35.109155 #54693] DEBUG -- :  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
498
+ D, [2015-12-22T17:03:35.199787 #54693] DEBUG -- :  (0.1ms) DELETE FROM "organizations";
499
+ D, [2015-12-22T17:03:35.199962 #54693] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
500
+ D, [2015-12-22T17:03:35.200079 #54693] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
501
+ D, [2015-12-22T17:03:35.200188 #54693] DEBUG -- :  (0.1ms) DELETE FROM "items";
502
+ D, [2015-12-22T17:03:35.200288 #54693] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
503
+ D, [2015-12-22T17:03:35.200379 #54693] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
504
+ D, [2015-12-22T17:03:35.200792 #54693] DEBUG -- :  (0.0ms) begin transaction
505
+ D, [2015-12-22T17:03:35.200903 #54693] DEBUG -- :  (0.0ms) commit transaction
506
+ D, [2015-12-22T17:03:35.201006 #54693] DEBUG -- :  (0.0ms) begin transaction
507
+ D, [2015-12-22T17:03:35.203473 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
508
+ D, [2015-12-22T17:03:35.206323 #54693] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
509
+ D, [2015-12-22T17:03:35.206614 #54693] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
510
+ D, [2015-12-22T17:03:35.211795 #54693] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
511
+ D, [2015-12-22T17:03:35.212813 #54693] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
512
+ D, [2015-12-22T17:03:35.213207 #54693] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+ D, [2015-12-22T17:03:35.213600 #54693] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
514
+ D, [2015-12-22T17:03:35.214124 #54693] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
515
+ D, [2015-12-22T17:03:35.214367 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
516
+ D, [2015-12-22T17:03:35.214577 #54693] DEBUG -- :  (0.0ms) rollback transaction
517
+ D, [2015-12-22T17:03:35.214965 #54693] DEBUG -- :  (0.1ms) begin transaction
518
+ D, [2015-12-22T17:03:35.215062 #54693] DEBUG -- :  (0.0ms) commit transaction
519
+ D, [2015-12-22T17:03:35.215167 #54693] DEBUG -- :  (0.0ms) begin transaction
520
+ D, [2015-12-22T17:03:35.215387 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
521
+ D, [2015-12-22T17:03:35.215758 #54693] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
522
+ D, [2015-12-22T17:03:35.215934 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
523
+ D, [2015-12-22T17:03:35.216528 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
524
+ D, [2015-12-22T17:03:35.216987 #54693] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
525
+ D, [2015-12-22T17:03:35.217216 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
526
+ D, [2015-12-22T17:03:35.217430 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
527
+ D, [2015-12-22T17:03:35.217785 #54693] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
528
+ D, [2015-12-22T17:03:35.217963 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
529
+ D, [2015-12-22T17:03:35.218148 #54693] DEBUG -- :  (0.1ms) rollback transaction
530
+ D, [2015-12-22T17:03:35.218548 #54693] DEBUG -- :  (0.1ms) begin transaction
531
+ D, [2015-12-22T17:03:35.218649 #54693] DEBUG -- :  (0.0ms) commit transaction
532
+ D, [2015-12-22T17:03:35.218742 #54693] DEBUG -- :  (0.0ms) begin transaction
533
+ D, [2015-12-22T17:03:35.218937 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
534
+ D, [2015-12-22T17:03:35.219304 #54693] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
535
+ D, [2015-12-22T17:03:35.219480 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
536
+ D, [2015-12-22T17:03:35.220074 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
537
+ D, [2015-12-22T17:03:35.220532 #54693] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
538
+ D, [2015-12-22T17:03:35.220735 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
539
+ D, [2015-12-22T17:03:35.220960 #54693] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
540
+ D, [2015-12-22T17:03:35.221337 #54693] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
541
+ D, [2015-12-22T17:03:35.221542 #54693] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
542
+ D, [2015-12-22T17:03:35.221717 #54693] DEBUG -- :  (0.0ms) rollback transaction
543
+ D, [2015-12-22T17:05:53.738500 #54715] DEBUG -- :  (0.5ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
544
+ D, [2015-12-22T17:05:53.739402 #54715] DEBUG -- :  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
545
+ D, [2015-12-22T17:05:53.758177 #54715] DEBUG -- :  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
546
+ D, [2015-12-22T17:05:53.758571 #54715] DEBUG -- :  (0.1ms) select sqlite_version(*)
547
+ D, [2015-12-22T17:05:53.759028 #54715] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
548
+ D, [2015-12-22T17:05:53.759216 #54715] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
549
+ D, [2015-12-22T17:05:53.759347 #54715] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
550
+ D, [2015-12-22T17:05:53.850627 #54715] DEBUG -- :  (0.1ms) DELETE FROM "organizations";
551
+ D, [2015-12-22T17:05:53.850774 #54715] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
552
+ D, [2015-12-22T17:05:53.850895 #54715] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
553
+ D, [2015-12-22T17:05:53.850978 #54715] DEBUG -- :  (0.0ms) DELETE FROM "items";
554
+ D, [2015-12-22T17:05:53.851069 #54715] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
555
+ D, [2015-12-22T17:05:53.851176 #54715] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
556
+ D, [2015-12-22T17:05:53.851566 #54715] DEBUG -- :  (0.0ms) begin transaction
557
+ D, [2015-12-22T17:05:53.851670 #54715] DEBUG -- :  (0.0ms) commit transaction
558
+ D, [2015-12-22T17:05:53.851768 #54715] DEBUG -- :  (0.0ms) begin transaction
559
+ D, [2015-12-22T17:05:53.854426 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
560
+ D, [2015-12-22T17:05:53.857420 #54715] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
561
+ D, [2015-12-22T17:05:53.857714 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
562
+ D, [2015-12-22T17:05:53.862792 #54715] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
563
+ D, [2015-12-22T17:05:53.863700 #54715] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
564
+ D, [2015-12-22T17:05:53.864041 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
565
+ D, [2015-12-22T17:05:53.864429 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
566
+ D, [2015-12-22T17:05:53.864921 #54715] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
567
+ D, [2015-12-22T17:05:53.865240 #54715] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
568
+ D, [2015-12-22T17:05:53.865829 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
569
+ D, [2015-12-22T17:05:53.866285 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
570
+ D, [2015-12-22T17:05:53.866539 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
571
+ D, [2015-12-22T17:05:53.867112 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
572
+ D, [2015-12-22T17:05:53.867522 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
573
+ D, [2015-12-22T17:05:53.867727 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
574
+ D, [2015-12-22T17:05:53.868734 #54715] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 1]]
575
+ D, [2015-12-22T17:05:53.870699 #54715] DEBUG -- :  (0.1ms) rollback transaction
576
+ D, [2015-12-22T17:05:53.871230 #54715] DEBUG -- :  (0.0ms) begin transaction
577
+ D, [2015-12-22T17:05:53.871329 #54715] DEBUG -- :  (0.0ms) commit transaction
578
+ D, [2015-12-22T17:05:53.871427 #54715] DEBUG -- :  (0.0ms) begin transaction
579
+ D, [2015-12-22T17:05:53.871733 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
580
+ D, [2015-12-22T17:05:53.872211 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
581
+ D, [2015-12-22T17:05:53.872448 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
582
+ D, [2015-12-22T17:05:53.873106 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
583
+ D, [2015-12-22T17:05:53.873568 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
584
+ D, [2015-12-22T17:05:53.873777 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
585
+ D, [2015-12-22T17:05:53.874024 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
586
+ D, [2015-12-22T17:05:53.874328 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
587
+ D, [2015-12-22T17:05:53.874504 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
588
+ D, [2015-12-22T17:05:53.875017 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
589
+ D, [2015-12-22T17:05:53.875376 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
590
+ D, [2015-12-22T17:05:53.875564 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
591
+ D, [2015-12-22T17:05:53.875999 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
592
+ D, [2015-12-22T17:05:53.876339 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
593
+ D, [2015-12-22T17:05:53.876523 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
594
+ D, [2015-12-22T17:05:53.877023 #54715] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? AND "items"."id" = ? [["organization_id", 1], ["id", 2]]
595
+ D, [2015-12-22T17:05:53.877201 #54715] DEBUG -- :  (0.1ms) rollback transaction
596
+ D, [2015-12-22T17:05:53.877554 #54715] DEBUG -- :  (0.0ms) begin transaction
597
+ D, [2015-12-22T17:05:53.877637 #54715] DEBUG -- :  (0.0ms) commit transaction
598
+ D, [2015-12-22T17:05:53.877735 #54715] DEBUG -- :  (0.0ms) begin transaction
599
+ D, [2015-12-22T17:05:53.877980 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
600
+ D, [2015-12-22T17:05:53.878404 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
601
+ D, [2015-12-22T17:05:53.878607 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+ D, [2015-12-22T17:05:53.879213 #54715] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
603
+ D, [2015-12-22T17:05:53.879589 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
604
+ D, [2015-12-22T17:05:53.879891 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
605
+ D, [2015-12-22T17:05:53.880125 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
606
+ D, [2015-12-22T17:05:53.880457 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
607
+ D, [2015-12-22T17:05:53.880653 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
608
+ D, [2015-12-22T17:05:53.881191 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
609
+ D, [2015-12-22T17:05:53.881578 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
610
+ D, [2015-12-22T17:05:53.881786 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+ D, [2015-12-22T17:05:53.882297 #54715] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
612
+ D, [2015-12-22T17:05:53.882694 #54715] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
613
+ D, [2015-12-22T17:05:53.882960 #54715] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
614
+ D, [2015-12-22T17:05:53.883507 #54715] DEBUG -- : Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 2]]
615
+ D, [2015-12-22T17:05:53.883774 #54715] DEBUG -- :  (0.0ms) rollback transaction
616
+ D, [2015-12-22T17:06:38.283687 #54731] DEBUG -- :  (0.2ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
617
+ D, [2015-12-22T17:06:38.284128 #54731] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
618
+ D, [2015-12-22T17:06:38.296758 #54731] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
619
+ D, [2015-12-22T17:06:38.296929 #54731] DEBUG -- :  (0.0ms) select sqlite_version(*)
620
+ D, [2015-12-22T17:06:38.297228 #54731] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
621
+ D, [2015-12-22T17:06:38.297356 #54731] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
622
+ D, [2015-12-22T17:06:38.297470 #54731] DEBUG -- :  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
623
+ D, [2015-12-22T17:06:38.385128 #54731] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
624
+ D, [2015-12-22T17:06:38.385276 #54731] DEBUG -- :  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
625
+ D, [2015-12-22T17:06:38.385376 #54731] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
626
+ D, [2015-12-22T17:06:38.385458 #54731] DEBUG -- :  (0.0ms) DELETE FROM "items";
627
+ D, [2015-12-22T17:06:38.385546 #54731] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
628
+ D, [2015-12-22T17:06:38.385649 #54731] DEBUG -- :  (0.1ms) DELETE FROM sqlite_sequence where name = 'items';
629
+ D, [2015-12-22T17:06:38.386137 #54731] DEBUG -- :  (0.0ms) begin transaction
630
+ D, [2015-12-22T17:06:38.386239 #54731] DEBUG -- :  (0.0ms) commit transaction
631
+ D, [2015-12-22T17:06:38.386335 #54731] DEBUG -- :  (0.0ms) begin transaction
632
+ D, [2015-12-22T17:06:38.388639 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
633
+ D, [2015-12-22T17:06:38.391619 #54731] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
634
+ D, [2015-12-22T17:06:38.391907 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
635
+ D, [2015-12-22T17:06:38.392537 #54731] DEBUG -- :  (0.0ms) rollback transaction
636
+ D, [2015-12-22T17:06:38.392911 #54731] DEBUG -- :  (0.0ms) begin transaction
637
+ D, [2015-12-22T17:06:38.393032 #54731] DEBUG -- :  (0.0ms) commit transaction
638
+ D, [2015-12-22T17:06:38.393135 #54731] DEBUG -- :  (0.0ms) begin transaction
639
+ D, [2015-12-22T17:06:38.393387 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
640
+ D, [2015-12-22T17:06:38.393836 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
641
+ D, [2015-12-22T17:06:38.394022 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
642
+ D, [2015-12-22T17:06:38.394247 #54731] DEBUG -- :  (0.0ms) rollback transaction
643
+ D, [2015-12-22T17:06:38.394550 #54731] DEBUG -- :  (0.0ms) begin transaction
644
+ D, [2015-12-22T17:06:38.394636 #54731] DEBUG -- :  (0.0ms) commit transaction
645
+ D, [2015-12-22T17:06:38.394735 #54731] DEBUG -- :  (0.0ms) begin transaction
646
+ D, [2015-12-22T17:06:38.394914 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
647
+ D, [2015-12-22T17:06:38.395241 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
648
+ D, [2015-12-22T17:06:38.395408 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
649
+ D, [2015-12-22T17:06:38.395610 #54731] DEBUG -- :  (0.0ms) rollback transaction
650
+ D, [2015-12-22T17:06:38.396072 #54731] DEBUG -- :  (0.0ms) begin transaction
651
+ D, [2015-12-22T17:06:38.396159 #54731] DEBUG -- :  (0.0ms) commit transaction
652
+ D, [2015-12-22T17:06:38.396257 #54731] DEBUG -- :  (0.0ms) begin transaction
653
+ D, [2015-12-22T17:06:38.396450 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
654
+ D, [2015-12-22T17:06:38.396835 #54731] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
655
+ D, [2015-12-22T17:06:38.397043 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
656
+ D, [2015-12-22T17:06:38.397281 #54731] DEBUG -- :  (0.0ms) rollback transaction
657
+ D, [2015-12-22T17:06:38.397803 #54731] DEBUG -- :  (0.0ms) begin transaction
658
+ D, [2015-12-22T17:06:38.397900 #54731] DEBUG -- :  (0.0ms) commit transaction
659
+ D, [2015-12-22T17:06:38.398001 #54731] DEBUG -- :  (0.0ms) begin transaction
660
+ D, [2015-12-22T17:06:38.398194 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
661
+ D, [2015-12-22T17:06:38.398546 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
662
+ D, [2015-12-22T17:06:38.398707 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
663
+ D, [2015-12-22T17:06:38.398921 #54731] DEBUG -- :  (0.0ms) rollback transaction
664
+ D, [2015-12-22T17:06:38.399426 #54731] DEBUG -- :  (0.0ms) begin transaction
665
+ D, [2015-12-22T17:06:38.399520 #54731] DEBUG -- :  (0.0ms) commit transaction
666
+ D, [2015-12-22T17:06:38.399607 #54731] DEBUG -- :  (0.0ms) begin transaction
667
+ D, [2015-12-22T17:06:38.399813 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
668
+ D, [2015-12-22T17:06:38.400175 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
669
+ D, [2015-12-22T17:06:38.400336 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
670
+ D, [2015-12-22T17:06:38.401639 #54731] DEBUG -- :  (0.1ms) rollback transaction
671
+ D, [2015-12-22T17:06:38.402125 #54731] DEBUG -- :  (0.0ms) begin transaction
672
+ D, [2015-12-22T17:06:38.402215 #54731] DEBUG -- :  (0.0ms) commit transaction
673
+ D, [2015-12-22T17:06:38.402306 #54731] DEBUG -- :  (0.0ms) begin transaction
674
+ D, [2015-12-22T17:06:38.402542 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
675
+ D, [2015-12-22T17:06:38.402945 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
676
+ D, [2015-12-22T17:06:38.403148 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
677
+ D, [2015-12-22T17:06:38.403379 #54731] DEBUG -- :  (0.0ms) rollback transaction
678
+ D, [2015-12-22T17:06:38.403872 #54731] DEBUG -- :  (0.0ms) begin transaction
679
+ D, [2015-12-22T17:06:38.403969 #54731] DEBUG -- :  (0.0ms) commit transaction
680
+ D, [2015-12-22T17:06:38.404060 #54731] DEBUG -- :  (0.0ms) begin transaction
681
+ D, [2015-12-22T17:06:38.404256 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
682
+ D, [2015-12-22T17:06:38.404621 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
683
+ D, [2015-12-22T17:06:38.404807 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
684
+ D, [2015-12-22T17:06:38.405010 #54731] DEBUG -- :  (0.0ms) rollback transaction
685
+ D, [2015-12-22T17:06:38.405309 #54731] DEBUG -- :  (0.0ms) begin transaction
686
+ D, [2015-12-22T17:06:38.405396 #54731] DEBUG -- :  (0.0ms) commit transaction
687
+ D, [2015-12-22T17:06:38.405492 #54731] DEBUG -- :  (0.0ms) begin transaction
688
+ D, [2015-12-22T17:06:38.405702 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
689
+ D, [2015-12-22T17:06:38.406049 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
690
+ D, [2015-12-22T17:06:38.406218 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
691
+ D, [2015-12-22T17:06:38.406422 #54731] DEBUG -- :  (0.0ms) rollback transaction
692
+ D, [2015-12-22T17:06:38.406733 #54731] DEBUG -- :  (0.0ms) begin transaction
693
+ D, [2015-12-22T17:06:38.406819 #54731] DEBUG -- :  (0.0ms) commit transaction
694
+ D, [2015-12-22T17:06:38.406907 #54731] DEBUG -- :  (0.0ms) begin transaction
695
+ D, [2015-12-22T17:06:38.407111 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
696
+ D, [2015-12-22T17:06:38.407449 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
697
+ D, [2015-12-22T17:06:38.407631 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
698
+ D, [2015-12-22T17:06:38.407837 #54731] DEBUG -- :  (0.0ms) rollback transaction
699
+ D, [2015-12-22T17:06:38.408251 #54731] DEBUG -- :  (0.0ms) begin transaction
700
+ D, [2015-12-22T17:06:38.408332 #54731] DEBUG -- :  (0.0ms) commit transaction
701
+ D, [2015-12-22T17:06:38.408430 #54731] DEBUG -- :  (0.0ms) begin transaction
702
+ D, [2015-12-22T17:06:38.408623 #54731] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
703
+ D, [2015-12-22T17:06:38.409010 #54731] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
704
+ D, [2015-12-22T17:06:38.409214 #54731] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
705
+ D, [2015-12-22T17:06:38.409416 #54731] DEBUG -- :  (0.0ms) rollback transaction
706
+ D, [2015-12-22T17:06:41.658850 #54742] DEBUG -- :  (0.3ms) CREATE TABLE "organizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
707
+ D, [2015-12-22T17:06:41.659363 #54742] DEBUG -- :  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "organization_id" integer)
708
+ D, [2015-12-22T17:06:41.673557 #54742] DEBUG -- :  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
709
+ D, [2015-12-22T17:06:41.673745 #54742] DEBUG -- :  (0.0ms) select sqlite_version(*)
710
+ D, [2015-12-22T17:06:41.674073 #54742] DEBUG -- :  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
711
+ D, [2015-12-22T17:06:41.674245 #54742] DEBUG -- :  (0.0ms) SELECT version FROM "schema_migrations"
712
+ D, [2015-12-22T17:06:41.674389 #54742] DEBUG -- :  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
713
+ D, [2015-12-22T17:06:41.781789 #54742] DEBUG -- :  (0.0ms) DELETE FROM "organizations";
714
+ D, [2015-12-22T17:06:41.781933 #54742] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
715
+ D, [2015-12-22T17:06:41.782026 #54742] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'organizations';
716
+ D, [2015-12-22T17:06:41.782101 #54742] DEBUG -- :  (0.0ms) DELETE FROM "items";
717
+ D, [2015-12-22T17:06:41.782183 #54742] DEBUG -- :  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
718
+ D, [2015-12-22T17:06:41.782288 #54742] DEBUG -- :  (0.0ms) DELETE FROM sqlite_sequence where name = 'items';
719
+ D, [2015-12-22T17:06:41.782767 #54742] DEBUG -- :  (0.0ms) begin transaction
720
+ D, [2015-12-22T17:06:41.782875 #54742] DEBUG -- :  (0.0ms) commit transaction
721
+ D, [2015-12-22T17:06:41.782968 #54742] DEBUG -- :  (0.0ms) begin transaction
722
+ D, [2015-12-22T17:06:41.785276 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
723
+ D, [2015-12-22T17:06:41.788251 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
724
+ D, [2015-12-22T17:06:41.788536 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
725
+ D, [2015-12-22T17:06:41.789112 #54742] DEBUG -- :  (0.0ms) rollback transaction
726
+ D, [2015-12-22T17:06:41.789558 #54742] DEBUG -- :  (0.0ms) begin transaction
727
+ D, [2015-12-22T17:06:41.789644 #54742] DEBUG -- :  (0.0ms) commit transaction
728
+ D, [2015-12-22T17:06:41.789728 #54742] DEBUG -- :  (0.0ms) begin transaction
729
+ D, [2015-12-22T17:06:41.789974 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
730
+ D, [2015-12-22T17:06:41.790370 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
731
+ D, [2015-12-22T17:06:41.790541 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
732
+ D, [2015-12-22T17:06:41.791888 #54742] DEBUG -- :  (0.0ms) rollback transaction
733
+ D, [2015-12-22T17:06:41.792398 #54742] DEBUG -- :  (0.1ms) begin transaction
734
+ D, [2015-12-22T17:06:41.792562 #54742] DEBUG -- :  (0.0ms) commit transaction
735
+ D, [2015-12-22T17:06:41.792734 #54742] DEBUG -- :  (0.0ms) begin transaction
736
+ D, [2015-12-22T17:06:41.793169 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
737
+ D, [2015-12-22T17:06:41.793741 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
738
+ D, [2015-12-22T17:06:41.794029 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
739
+ D, [2015-12-22T17:06:41.794297 #54742] DEBUG -- :  (0.0ms) rollback transaction
740
+ D, [2015-12-22T17:06:41.794956 #54742] DEBUG -- :  (0.0ms) begin transaction
741
+ D, [2015-12-22T17:06:41.795065 #54742] DEBUG -- :  (0.0ms) commit transaction
742
+ D, [2015-12-22T17:06:41.795155 #54742] DEBUG -- :  (0.0ms) begin transaction
743
+ D, [2015-12-22T17:06:41.795361 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
744
+ D, [2015-12-22T17:06:41.795764 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
745
+ D, [2015-12-22T17:06:41.795930 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
746
+ D, [2015-12-22T17:06:41.796169 #54742] DEBUG -- :  (0.0ms) rollback transaction
747
+ D, [2015-12-22T17:06:41.796707 #54742] DEBUG -- :  (0.0ms) begin transaction
748
+ D, [2015-12-22T17:06:41.796802 #54742] DEBUG -- :  (0.0ms) commit transaction
749
+ D, [2015-12-22T17:06:41.796889 #54742] DEBUG -- :  (0.0ms) begin transaction
750
+ D, [2015-12-22T17:06:41.797103 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
751
+ D, [2015-12-22T17:06:41.797532 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
752
+ D, [2015-12-22T17:06:41.797711 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
753
+ D, [2015-12-22T17:06:41.797921 #54742] DEBUG -- :  (0.0ms) rollback transaction
754
+ D, [2015-12-22T17:06:41.798445 #54742] DEBUG -- :  (0.0ms) begin transaction
755
+ D, [2015-12-22T17:06:41.798536 #54742] DEBUG -- :  (0.0ms) commit transaction
756
+ D, [2015-12-22T17:06:41.798627 #54742] DEBUG -- :  (0.0ms) begin transaction
757
+ D, [2015-12-22T17:06:41.798847 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
758
+ D, [2015-12-22T17:06:41.799228 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
759
+ D, [2015-12-22T17:06:41.799440 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
760
+ D, [2015-12-22T17:06:41.799730 #54742] DEBUG -- :  (0.1ms) rollback transaction
761
+ D, [2015-12-22T17:06:41.800270 #54742] DEBUG -- :  (0.0ms) begin transaction
762
+ D, [2015-12-22T17:06:41.800361 #54742] DEBUG -- :  (0.0ms) commit transaction
763
+ D, [2015-12-22T17:06:41.800448 #54742] DEBUG -- :  (0.0ms) begin transaction
764
+ D, [2015-12-22T17:06:41.800737 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
765
+ D, [2015-12-22T17:06:41.801352 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
766
+ D, [2015-12-22T17:06:41.801648 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
767
+ D, [2015-12-22T17:06:41.802047 #54742] DEBUG -- :  (0.1ms) rollback transaction
768
+ D, [2015-12-22T17:06:41.802413 #54742] DEBUG -- :  (0.0ms) begin transaction
769
+ D, [2015-12-22T17:06:41.802497 #54742] DEBUG -- :  (0.0ms) commit transaction
770
+ D, [2015-12-22T17:06:41.802612 #54742] DEBUG -- :  (0.0ms) begin transaction
771
+ D, [2015-12-22T17:06:41.802799 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
772
+ D, [2015-12-22T17:06:41.803170 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
773
+ D, [2015-12-22T17:06:41.803342 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
774
+ D, [2015-12-22T17:06:41.803570 #54742] DEBUG -- :  (0.0ms) rollback transaction
775
+ D, [2015-12-22T17:06:41.803917 #54742] DEBUG -- :  (0.1ms) begin transaction
776
+ D, [2015-12-22T17:06:41.804005 #54742] DEBUG -- :  (0.0ms) commit transaction
777
+ D, [2015-12-22T17:06:41.804093 #54742] DEBUG -- :  (0.0ms) begin transaction
778
+ D, [2015-12-22T17:06:41.804287 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
779
+ D, [2015-12-22T17:06:41.804658 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
780
+ D, [2015-12-22T17:06:41.804880 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
781
+ D, [2015-12-22T17:06:41.805115 #54742] DEBUG -- :  (0.0ms) rollback transaction
782
+ D, [2015-12-22T17:06:41.805623 #54742] DEBUG -- :  (0.0ms) begin transaction
783
+ D, [2015-12-22T17:06:41.805715 #54742] DEBUG -- :  (0.0ms) commit transaction
784
+ D, [2015-12-22T17:06:41.805835 #54742] DEBUG -- :  (0.1ms) begin transaction
785
+ D, [2015-12-22T17:06:41.806039 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
786
+ D, [2015-12-22T17:06:41.806428 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
787
+ D, [2015-12-22T17:06:41.806618 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
788
+ D, [2015-12-22T17:06:41.806871 #54742] DEBUG -- :  (0.0ms) rollback transaction
789
+ D, [2015-12-22T17:06:41.807314 #54742] DEBUG -- :  (0.0ms) begin transaction
790
+ D, [2015-12-22T17:06:41.807422 #54742] DEBUG -- :  (0.0ms) commit transaction
791
+ D, [2015-12-22T17:06:41.807512 #54742] DEBUG -- :  (0.0ms) begin transaction
792
+ D, [2015-12-22T17:06:41.807714 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
793
+ D, [2015-12-22T17:06:41.808083 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
794
+ D, [2015-12-22T17:06:41.808257 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
795
+ D, [2015-12-22T17:06:41.808496 #54742] DEBUG -- :  (0.0ms) rollback transaction
796
+ D, [2015-12-22T17:06:41.808975 #54742] DEBUG -- :  (0.0ms) begin transaction
797
+ D, [2015-12-22T17:06:41.809083 #54742] DEBUG -- :  (0.0ms) commit transaction
798
+ D, [2015-12-22T17:06:41.809173 #54742] DEBUG -- :  (0.0ms) begin transaction
799
+ D, [2015-12-22T17:06:41.809368 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
800
+ D, [2015-12-22T17:06:41.809804 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
801
+ D, [2015-12-22T17:06:41.809977 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
802
+ D, [2015-12-22T17:06:41.814599 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
803
+ D, [2015-12-22T17:06:41.815474 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
804
+ D, [2015-12-22T17:06:41.815751 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
805
+ D, [2015-12-22T17:06:41.816018 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
806
+ D, [2015-12-22T17:06:41.816388 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
807
+ D, [2015-12-22T17:06:41.816566 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+ D, [2015-12-22T17:06:41.817136 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
809
+ D, [2015-12-22T17:06:41.817558 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
810
+ D, [2015-12-22T17:06:41.817766 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
811
+ D, [2015-12-22T17:06:41.818250 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
812
+ D, [2015-12-22T17:06:41.818684 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
813
+ D, [2015-12-22T17:06:41.818956 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
814
+ D, [2015-12-22T17:06:41.819911 #54742] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? AND "items"."id" = ? [["organization_id", 2], ["id", 1]]
815
+ D, [2015-12-22T17:06:41.821534 #54742] DEBUG -- :  (0.1ms) rollback transaction
816
+ D, [2015-12-22T17:06:41.822151 #54742] DEBUG -- :  (0.1ms) begin transaction
817
+ D, [2015-12-22T17:06:41.822306 #54742] DEBUG -- :  (0.0ms) commit transaction
818
+ D, [2015-12-22T17:06:41.822463 #54742] DEBUG -- :  (0.0ms) begin transaction
819
+ D, [2015-12-22T17:06:41.822872 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
820
+ D, [2015-12-22T17:06:41.823546 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
821
+ D, [2015-12-22T17:06:41.823913 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
822
+ D, [2015-12-22T17:06:41.825105 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
823
+ D, [2015-12-22T17:06:41.826091 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
824
+ D, [2015-12-22T17:06:41.826483 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
825
+ D, [2015-12-22T17:06:41.826968 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
826
+ D, [2015-12-22T17:06:41.828081 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
827
+ D, [2015-12-22T17:06:41.828567 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
828
+ D, [2015-12-22T17:06:41.830161 #54742] DEBUG -- :  (0.2ms) SAVEPOINT active_record_1
829
+ D, [2015-12-22T17:06:41.831086 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
830
+ D, [2015-12-22T17:06:41.831399 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
831
+ D, [2015-12-22T17:06:41.832178 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
832
+ D, [2015-12-22T17:06:41.832785 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
833
+ D, [2015-12-22T17:06:41.833075 #54742] DEBUG -- :  (0.1ms) RELEASE SAVEPOINT active_record_1
834
+ D, [2015-12-22T17:06:41.833843 #54742] DEBUG -- : Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? AND "items"."id" = ? [["organization_id", 1], ["id", 2]]
835
+ D, [2015-12-22T17:06:41.834079 #54742] DEBUG -- :  (0.1ms) rollback transaction
836
+ D, [2015-12-22T17:06:41.834538 #54742] DEBUG -- :  (0.1ms) begin transaction
837
+ D, [2015-12-22T17:06:41.834700 #54742] DEBUG -- :  (0.0ms) commit transaction
838
+ D, [2015-12-22T17:06:41.834848 #54742] DEBUG -- :  (0.0ms) begin transaction
839
+ D, [2015-12-22T17:06:41.838417 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
840
+ D, [2015-12-22T17:06:41.838937 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
841
+ D, [2015-12-22T17:06:41.839149 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
842
+ D, [2015-12-22T17:06:41.839776 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
843
+ D, [2015-12-22T17:06:41.840257 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
844
+ D, [2015-12-22T17:06:41.840475 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
845
+ D, [2015-12-22T17:06:41.840720 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
846
+ D, [2015-12-22T17:06:41.841059 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
847
+ D, [2015-12-22T17:06:41.841249 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
848
+ D, [2015-12-22T17:06:41.841805 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
849
+ D, [2015-12-22T17:06:41.842221 #54742] DEBUG -- : SQL (0.0ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
850
+ D, [2015-12-22T17:06:41.842429 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
851
+ D, [2015-12-22T17:06:41.842935 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
852
+ D, [2015-12-22T17:06:41.843400 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
853
+ D, [2015-12-22T17:06:41.843646 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
854
+ D, [2015-12-22T17:06:41.844359 #54742] DEBUG -- : Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 2]]
855
+ D, [2015-12-22T17:06:41.845332 #54742] DEBUG -- :  (0.1ms) rollback transaction
856
+ D, [2015-12-22T17:06:41.845801 #54742] DEBUG -- :  (0.1ms) begin transaction
857
+ D, [2015-12-22T17:06:41.845906 #54742] DEBUG -- :  (0.0ms) commit transaction
858
+ D, [2015-12-22T17:06:41.846006 #54742] DEBUG -- :  (0.0ms) begin transaction
859
+ D, [2015-12-22T17:06:41.846311 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
860
+ D, [2015-12-22T17:06:41.846837 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "test org"]]
861
+ D, [2015-12-22T17:06:41.847115 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
862
+ D, [2015-12-22T17:06:41.847860 #54742] DEBUG -- :  (0.1ms) SAVEPOINT active_record_1
863
+ D, [2015-12-22T17:06:41.848454 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 1], ["name", "item1"]]
864
+ D, [2015-12-22T17:06:41.848796 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+ D, [2015-12-22T17:06:41.849100 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
866
+ D, [2015-12-22T17:06:41.849545 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "organizations" ("name") VALUES (?) [["name", "org2"]]
867
+ D, [2015-12-22T17:06:41.849759 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
868
+ D, [2015-12-22T17:06:41.850427 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
869
+ D, [2015-12-22T17:06:41.850953 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item2"]]
870
+ D, [2015-12-22T17:06:41.851204 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
871
+ D, [2015-12-22T17:06:41.851808 #54742] DEBUG -- :  (0.0ms) SAVEPOINT active_record_1
872
+ D, [2015-12-22T17:06:41.852270 #54742] DEBUG -- : SQL (0.1ms) INSERT INTO "items" ("organization_id", "name") VALUES (?, ?) [["organization_id", 2], ["name", "item3"]]
873
+ D, [2015-12-22T17:06:41.852482 #54742] DEBUG -- :  (0.0ms) RELEASE SAVEPOINT active_record_1
874
+ D, [2015-12-22T17:06:41.853028 #54742] DEBUG -- : Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."organization_id" = ? [["organization_id", 1]]
875
+ D, [2015-12-22T17:06:41.853316 #54742] DEBUG -- :  (0.1ms) rollback transaction