aloe 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/Rakefile +26 -0
  4. data/lib/aloe.rb +14 -0
  5. data/lib/aloe/account.rb +176 -0
  6. data/lib/aloe/account_configuration.rb +21 -0
  7. data/lib/aloe/account_repository.rb +45 -0
  8. data/lib/aloe/engine.rb +6 -0
  9. data/lib/aloe/entry.rb +59 -0
  10. data/lib/aloe/inoperable_account_error.rb +11 -0
  11. data/lib/aloe/insufficient_balance_error.rb +14 -0
  12. data/lib/aloe/invalid_amount_error.rb +3 -0
  13. data/lib/aloe/invalid_currency_error.rb +16 -0
  14. data/lib/aloe/ledger.rb +83 -0
  15. data/lib/aloe/ledger_entry.rb +83 -0
  16. data/lib/aloe/reports/account_history.rb +32 -0
  17. data/lib/aloe/reports/accounts_list.rb +39 -0
  18. data/lib/aloe/transaction.rb +80 -0
  19. data/lib/aloe/transaction_rollback.rb +34 -0
  20. data/lib/aloe/version.rb +3 -0
  21. data/lib/generators/aloe/aloe_generator.rb +17 -0
  22. data/lib/generators/aloe/templates/migration.rb +44 -0
  23. data/lib/tasks/aloe_tasks.rake +24 -0
  24. data/spec/aloe/account_configuration_spec.rb +21 -0
  25. data/spec/aloe/account_integration_spec.rb +144 -0
  26. data/spec/aloe/account_spec.rb +189 -0
  27. data/spec/aloe/accounting_integration_spec.rb +172 -0
  28. data/spec/aloe/entry_spec.rb +43 -0
  29. data/spec/aloe/ledger_entry_spec.rb +105 -0
  30. data/spec/aloe/ledger_spec.rb +98 -0
  31. data/spec/aloe/transaction_rollback_spec.rb +49 -0
  32. data/spec/aloe/transaction_spec.rb +59 -0
  33. data/spec/dummy/Rakefile +6 -0
  34. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  35. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  36. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  37. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  38. data/spec/dummy/app/models/user.rb +2 -0
  39. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  40. data/spec/dummy/bin/bundle +3 -0
  41. data/spec/dummy/bin/rails +4 -0
  42. data/spec/dummy/bin/rake +4 -0
  43. data/spec/dummy/config.ru +4 -0
  44. data/spec/dummy/config/application.rb +23 -0
  45. data/spec/dummy/config/boot.rb +5 -0
  46. data/spec/dummy/config/database.yml +25 -0
  47. data/spec/dummy/config/environment.rb +5 -0
  48. data/spec/dummy/config/environments/development.rb +29 -0
  49. data/spec/dummy/config/environments/production.rb +80 -0
  50. data/spec/dummy/config/environments/test.rb +36 -0
  51. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  55. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  56. data/spec/dummy/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/config/locales/en.yml +23 -0
  59. data/spec/dummy/config/routes.rb +56 -0
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/migrate/20131003200954_create_users.rb +8 -0
  62. data/spec/dummy/db/migrate/20131003203647_create_aloe_tables.rb +43 -0
  63. data/spec/dummy/db/schema.rb +63 -0
  64. data/spec/dummy/log/test.log +3308 -0
  65. data/spec/dummy/public/404.html +58 -0
  66. data/spec/dummy/public/422.html +58 -0
  67. data/spec/dummy/public/500.html +57 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/test/fixtures/users.yml +11 -0
  70. data/spec/dummy/test/models/user_test.rb +7 -0
  71. data/spec/spec_helper.rb +19 -0
  72. data/spec/support/account_helpers.rb +17 -0
  73. data/spec/support/user.rb +1 -0
  74. metadata +278 -0
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = 'e4625cca6febcf009b31c4d7fd55a7d7d0d698546d69f009e9df776b746779a360a00d889cde0346bb6d712474955f04bd6cee71adc1b60cd10dbb58b4010f62'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,8 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,43 @@
1
+ class CreateAloeTables < ActiveRecord::Migration
2
+
3
+ def change
4
+ create_table :aloe_accounts do |t|
5
+ t.string :name
6
+ t.string :currency, limit: 3
7
+ t.string :state
8
+ t.text :configuration
9
+ t.column :balance, :bigint, default: 0
10
+ t.references :owner, polymorphic: true
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :aloe_accounts, [:owner_id, :owner_type]
15
+
16
+ create_table :aloe_entries do |t|
17
+ t.column :amount, :bigint
18
+ t.references :account
19
+ t.timestamps
20
+ end
21
+
22
+ add_index :aloe_entries, :account_id
23
+
24
+ create_table :aloe_transactions do |t|
25
+ t.string :uuid
26
+ t.string :category
27
+ t.string :code
28
+ t.text :description
29
+ t.text :details
30
+ t.references :credit_entry
31
+ t.references :debit_entry
32
+ t.references :adjustment_transaction
33
+ t.timestamps
34
+ end
35
+
36
+ add_index :aloe_transactions, :uuid
37
+ add_index :aloe_transactions, :credit_entry_id
38
+ add_index :aloe_transactions, :debit_entry_id
39
+ add_index :aloe_transactions, :adjustment_transaction_id
40
+ add_index :aloe_transactions, :category
41
+ end
42
+
43
+ end
@@ -0,0 +1,63 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131003203647) do
15
+
16
+ create_table "aloe_accounts", force: true do |t|
17
+ t.string "name"
18
+ t.string "currency", limit: 3
19
+ t.string "state"
20
+ t.text "configuration"
21
+ t.integer "balance", default: 0
22
+ t.integer "owner_id"
23
+ t.string "owner_type"
24
+ t.datetime "created_at"
25
+ t.datetime "updated_at"
26
+ end
27
+
28
+ add_index "aloe_accounts", ["owner_id", "owner_type"], name: "index_aloe_accounts_on_owner_id_and_owner_type"
29
+
30
+ create_table "aloe_entries", force: true do |t|
31
+ t.integer "amount"
32
+ t.integer "account_id"
33
+ t.datetime "created_at"
34
+ t.datetime "updated_at"
35
+ end
36
+
37
+ add_index "aloe_entries", ["account_id"], name: "index_aloe_entries_on_account_id"
38
+
39
+ create_table "aloe_transactions", force: true do |t|
40
+ t.string "uuid"
41
+ t.string "category"
42
+ t.string "code"
43
+ t.text "description"
44
+ t.text "details"
45
+ t.integer "credit_entry_id"
46
+ t.integer "debit_entry_id"
47
+ t.integer "adjustment_transaction_id"
48
+ t.datetime "created_at"
49
+ t.datetime "updated_at"
50
+ end
51
+
52
+ add_index "aloe_transactions", ["adjustment_transaction_id"], name: "index_aloe_transactions_on_adjustment_transaction_id"
53
+ add_index "aloe_transactions", ["category"], name: "index_aloe_transactions_on_category"
54
+ add_index "aloe_transactions", ["credit_entry_id"], name: "index_aloe_transactions_on_credit_entry_id"
55
+ add_index "aloe_transactions", ["debit_entry_id"], name: "index_aloe_transactions_on_debit_entry_id"
56
+ add_index "aloe_transactions", ["uuid"], name: "index_aloe_transactions_on_uuid"
57
+
58
+ create_table "users", force: true do |t|
59
+ t.datetime "created_at"
60
+ t.datetime "updated_at"
61
+ end
62
+
63
+ end
@@ -0,0 +1,3308 @@
1
+  (1.6ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime) 
2
+  (1.3ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
3
+  (1.4ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
4
+  (1.1ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
5
+  (1.1ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime) 
6
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
7
+  (1.5ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
8
+  (1.5ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
9
+  (1.5ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
10
+  (1.6ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
11
+  (3.0ms) DROP TABLE "users"
12
+  (1.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
13
+  (0.7ms) SELECT version FROM "schema_migrations"
14
+  (3.0ms) DROP TABLE "aloe_accounts"
15
+  (1.4ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
16
+  (1.4ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
17
+  (1.4ms) DROP TABLE "aloe_entries"
18
+  (1.1ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
19
+  (1.2ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
20
+  (1.7ms) DROP TABLE "aloe_transactions"
21
+  (1.4ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
22
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
23
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
24
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
25
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
26
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
27
+  (1.4ms) DROP TABLE "users"
28
+  (1.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
29
+  (0.1ms) SELECT version FROM "schema_migrations"
30
+  (3.9ms) DROP TABLE "aloe_accounts"
31
+  (1.4ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
32
+  (1.4ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
33
+  (2.9ms) DROP TABLE "aloe_entries"
34
+  (1.5ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
35
+  (1.4ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
36
+  (4.6ms) DROP TABLE "aloe_transactions"
37
+  (1.6ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
38
+  (1.7ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
39
+  (1.6ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
40
+  (1.7ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
41
+  (1.6ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
42
+  (1.7ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
43
+  (1.3ms) DROP TABLE "users"
44
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
45
+  (0.5ms) SELECT version FROM "schema_migrations"
46
+  (3.0ms) DROP TABLE "aloe_accounts"
47
+  (1.5ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
48
+  (1.1ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
49
+  (1.5ms) DROP TABLE "aloe_entries"
50
+  (1.3ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
51
+  (1.2ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
52
+  (1.7ms) DROP TABLE "aloe_transactions"
53
+  (1.4ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
54
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
55
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
56
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
57
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
58
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
59
+  (1.2ms) DROP TABLE "users"
60
+  (10.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
61
+  (0.1ms) SELECT version FROM "schema_migrations"
62
+  (1.8ms) DROP TABLE "aloe_accounts"
63
+  (1.8ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
64
+  (1.4ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
65
+  (1.7ms) DROP TABLE "aloe_entries"
66
+  (1.4ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
67
+  (1.4ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
68
+  (1.9ms) DROP TABLE "aloe_transactions"
69
+  (1.8ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
70
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
71
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
72
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
73
+  (1.6ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
74
+  (1.5ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
75
+  (1.4ms) DROP TABLE "users"
76
+  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
77
+  (0.1ms) SELECT version FROM "schema_migrations"
78
+  (3.2ms) DROP TABLE "aloe_accounts"
79
+  (1.8ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
80
+  (1.3ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
81
+  (2.1ms) DROP TABLE "aloe_entries"
82
+  (1.4ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
83
+  (1.5ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
84
+  (3.5ms) DROP TABLE "aloe_transactions"
85
+  (1.2ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
86
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
87
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
88
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
89
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
90
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
91
+  (1.7ms) DROP TABLE "users"
92
+  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
93
+  (0.6ms) SELECT version FROM "schema_migrations"
94
+  (0.1ms) begin transaction
95
+  (0.1ms) SAVEPOINT active_record_1
96
+  (0.1ms) RELEASE SAVEPOINT active_record_1
97
+  (0.1ms) rollback transaction
98
+  (0.1ms) begin transaction
99
+  (0.1ms) SAVEPOINT active_record_1
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+  (0.1ms) rollback transaction
102
+  (0.1ms) begin transaction
103
+  (0.1ms) SAVEPOINT active_record_1
104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
105
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+  (0.2ms) rollback transaction
108
+  (0.1ms) begin transaction
109
+  (0.1ms) rollback transaction
110
+  (0.1ms) begin transaction
111
+  (0.1ms) rollback transaction
112
+  (0.1ms) begin transaction
113
+  (0.1ms) rollback transaction
114
+  (1.4ms) begin transaction
115
+  (0.1ms) SAVEPOINT active_record_1
116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
117
+  (0.1ms) rollback transaction
118
+  (0.1ms) begin transaction
119
+  (0.1ms) SAVEPOINT active_record_1
120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
121
+  (0.1ms) rollback transaction
122
+  (0.1ms) begin transaction
123
+  (0.1ms) SAVEPOINT active_record_1
124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
125
+  (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+  (0.1ms) SAVEPOINT active_record_1
128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
129
+  (0.1ms) rollback transaction
130
+  (0.1ms) begin transaction
131
+  (0.1ms) SAVEPOINT active_record_1
132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
133
+  (0.1ms) rollback transaction
134
+  (0.1ms) begin transaction
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+  (0.1ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+  (0.1ms) rollback transaction
140
+  (0.1ms) begin transaction
141
+  (0.1ms) rollback transaction
142
+  (0.1ms) begin transaction
143
+  (0.1ms) rollback transaction
144
+  (0.1ms) begin transaction
145
+  (0.1ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+  (0.1ms) rollback transaction
148
+  (0.1ms) begin transaction
149
+  (0.1ms) rollback transaction
150
+  (0.1ms) begin transaction
151
+  (0.1ms) rollback transaction
152
+  (0.1ms) begin transaction
153
+  (0.1ms) rollback transaction
154
+  (0.1ms) begin transaction
155
+  (0.1ms) rollback transaction
156
+  (0.1ms) begin transaction
157
+  (0.1ms) rollback transaction
158
+  (0.1ms) begin transaction
159
+  (0.1ms) SAVEPOINT active_record_1
160
+ SQL (1.1ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
162
+  (0.0ms) SAVEPOINT active_record_1
163
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
164
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
165
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
166
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
168
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
169
+  (0.7ms) rollback transaction
170
+  (0.1ms) begin transaction
171
+  (0.1ms) SAVEPOINT active_record_1
172
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
174
+  (0.0ms) SAVEPOINT active_record_1
175
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
176
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
177
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
178
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
180
+  (0.7ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+  (0.1ms) SAVEPOINT active_record_1
183
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
185
+  (0.0ms) SAVEPOINT active_record_1
186
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
187
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
188
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
189
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
191
+  (0.6ms) rollback transaction
192
+  (0.1ms) begin transaction
193
+  (0.1ms) rollback transaction
194
+  (0.1ms) begin transaction
195
+  (0.1ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+  (0.1ms) rollback transaction
198
+  (0.1ms) begin transaction
199
+  (0.1ms) rollback transaction
200
+  (0.1ms) begin transaction
201
+  (0.1ms) rollback transaction
202
+  (0.1ms) begin transaction
203
+  (0.1ms) rollback transaction
204
+  (0.1ms) begin transaction
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+  (0.1ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+  (0.1ms) rollback transaction
210
+  (0.1ms) begin transaction
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+  (0.1ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+  (0.1ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+  (0.1ms) rollback transaction
218
+  (0.1ms) begin transaction
219
+  (0.1ms) rollback transaction
220
+  (0.1ms) begin transaction
221
+  (0.1ms) SAVEPOINT active_record_1
222
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
223
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Source"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
+  (0.1ms) SAVEPOINT active_record_1
226
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
227
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+  (0.0ms) SAVEPOINT active_record_1
230
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
231
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
232
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
233
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
234
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
235
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
236
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
237
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
238
+ SQL (0.4ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["uuid", "a09fd9300ef401311342040ccee136f0"]]
239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
240
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
241
+  (0.0ms) SAVEPOINT active_record_1
242
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
243
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
245
+  (0.0ms) SAVEPOINT active_record_1
246
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
247
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
248
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
249
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
250
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
251
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
252
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 3], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
253
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
254
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
255
+ SQL (0.2ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["uuid", "a0a354c00ef401311343040ccee136f0"]]
256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
257
+  (0.0ms) SAVEPOINT active_record_1
258
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
259
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
260
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
261
+  (0.7ms) rollback transaction
262
+  (0.1ms) begin transaction
263
+  (0.1ms) SAVEPOINT active_record_1
264
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
266
+  (0.1ms) SAVEPOINT active_record_1
267
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
268
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
270
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' ORDER BY "aloe_accounts"."id" ASC LIMIT 1
271
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
272
+  (0.7ms) rollback transaction
273
+  (0.1ms) begin transaction
274
+  (0.1ms) SAVEPOINT active_record_1
275
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
276
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
278
+  (0.0ms) SAVEPOINT active_record_1
279
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
280
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
281
+  (0.2ms) RELEASE SAVEPOINT active_record_1
282
+  (0.0ms) SAVEPOINT active_record_1
283
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
284
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
285
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
286
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
287
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
288
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
289
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
290
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
291
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["uuid", "a0ab9bb00ef401311344040ccee136f0"]]
292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
293
+  (0.8ms) rollback transaction
294
+  (0.1ms) begin transaction
295
+  (0.1ms) SAVEPOINT active_record_1
296
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
297
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
299
+  (0.1ms) SAVEPOINT active_record_1
300
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
301
+ SQL (0.5ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
303
+  (0.2ms) SAVEPOINT active_record_1
304
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
305
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
307
+  (0.8ms) rollback transaction
308
+  (0.1ms) begin transaction
309
+  (0.1ms) SAVEPOINT active_record_1
310
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
311
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
313
+  (0.1ms) SAVEPOINT active_record_1
314
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
315
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :USD], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
317
+  (0.6ms) rollback transaction
318
+  (0.1ms) begin transaction
319
+  (0.1ms) SAVEPOINT active_record_1
320
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
321
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
323
+  (0.1ms) SAVEPOINT active_record_1
324
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
325
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
327
+  (0.1ms) SAVEPOINT active_record_1
328
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
329
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
330
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
331
+  (0.5ms) rollback transaction
332
+  (0.1ms) begin transaction
333
+  (0.1ms) SAVEPOINT active_record_1
334
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
335
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00]]
336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
337
+  (0.1ms) SAVEPOINT active_record_1
338
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
339
+ SQL (0.6ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341
+  (0.1ms) SAVEPOINT active_record_1
342
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
343
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
345
+  (0.6ms) rollback transaction
346
+  (0.1ms) begin transaction
347
+  (0.1ms) SAVEPOINT active_record_1
348
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
349
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
351
+  (0.0ms) SAVEPOINT active_record_1
352
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
353
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
355
+  (0.5ms) rollback transaction
356
+  (0.1ms) begin transaction
357
+  (0.1ms) SAVEPOINT active_record_1
358
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
359
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
361
+  (0.0ms) SAVEPOINT active_record_1
362
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
363
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
365
+  (0.0ms) SAVEPOINT active_record_1
366
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
367
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
368
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
369
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
370
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
371
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
372
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
373
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
374
+ SQL (0.4ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["uuid", "a0c2b1200ef401311345040ccee136f0"]]
375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
376
+  (0.1ms) SAVEPOINT active_record_1
377
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
378
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
379
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
380
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
381
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
382
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
383
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
384
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
385
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["uuid", "a0c590d00ef401311346040ccee136f0"]]
386
+ SQL (0.3ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["details", nil]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
388
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
389
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
390
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
391
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
392
+  (0.8ms) rollback transaction
393
+  (0.1ms) begin transaction
394
+  (0.1ms) SAVEPOINT active_record_1
395
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
396
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
398
+  (0.0ms) SAVEPOINT active_record_1
399
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
400
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
402
+  (0.0ms) SAVEPOINT active_record_1
403
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
404
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
405
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
406
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
407
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
408
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
409
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
410
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
411
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["uuid", "a0ca2f500ef401311347040ccee136f0"]]
412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
415
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
416
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
417
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
418
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
419
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
420
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
421
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
422
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["uuid", "a0cbfac00ef401311348040ccee136f0"]]
423
+ SQL (0.1ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["details", nil]]
424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
425
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
426
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
427
+  (0.7ms) rollback transaction
428
+  (0.1ms) begin transaction
429
+  (0.1ms) SAVEPOINT active_record_1
430
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
431
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["name", "Test"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
433
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
434
+  (0.6ms) rollback transaction
435
+  (0.1ms) begin transaction
436
+  (0.1ms) SAVEPOINT active_record_1
437
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
439
+  (0.0ms) SAVEPOINT active_record_1
440
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
441
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
443
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
444
+  (0.8ms) rollback transaction
445
+  (0.1ms) begin transaction
446
+  (0.1ms) rollback transaction
447
+  (0.1ms) begin transaction
448
+  (0.1ms) rollback transaction
449
+  (0.1ms) begin transaction
450
+  (0.1ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+  (0.1ms) rollback transaction
453
+  (0.1ms) begin transaction
454
+  (0.1ms) rollback transaction
455
+  (0.1ms) begin transaction
456
+  (0.1ms) rollback transaction
457
+  (0.1ms) begin transaction
458
+  (0.1ms) SAVEPOINT active_record_1
459
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
461
+  (0.0ms) SAVEPOINT active_record_1
462
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
463
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
465
+  (0.0ms) SAVEPOINT active_record_1
466
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
468
+  (0.5ms) rollback transaction
469
+  (0.1ms) begin transaction
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
473
+  (0.0ms) SAVEPOINT active_record_1
474
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
475
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 07:29:29.206413' WHERE "aloe_accounts"."id" = 1
478
+  (0.1ms) SAVEPOINT active_record_1
479
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
480
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
481
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
482
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
484
+  (0.1ms) SAVEPOINT active_record_1
485
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
486
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
487
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
488
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
490
+  (0.1ms) SAVEPOINT active_record_1
491
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
492
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
493
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
494
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+  (0.1ms) SAVEPOINT active_record_1
497
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
498
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
499
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
500
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
502
+  (0.1ms) SAVEPOINT active_record_1
503
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
504
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
505
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
506
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
507
+  (0.2ms) RELEASE SAVEPOINT active_record_1
508
+  (0.1ms) SAVEPOINT active_record_1
509
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
510
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
511
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
512
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
514
+  (0.1ms) SAVEPOINT active_record_1
515
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
516
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
517
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
518
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
520
+  (0.1ms) SAVEPOINT active_record_1
521
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
522
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
523
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
524
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
528
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
529
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
530
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
532
+  (0.1ms) SAVEPOINT active_record_1
533
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
534
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
535
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
536
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
538
+  (0.1ms) SAVEPOINT active_record_1
539
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
540
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
541
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
542
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
544
+ Aloe::Entry Load (0.3ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND ("aloe_entries"."created_at" BETWEEN '2013-09-13 07:29:29.281376' AND '2013-10-04 07:29:29.281474') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
545
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
546
+  (0.8ms) rollback transaction
547
+  (0.1ms) begin transaction
548
+  (0.1ms) SAVEPOINT active_record_1
549
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
551
+  (0.0ms) SAVEPOINT active_record_1
552
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
553
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 07:29:29.303895' WHERE "aloe_accounts"."id" = 1
556
+  (0.1ms) SAVEPOINT active_record_1
557
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
558
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
559
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
560
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
562
+  (0.1ms) SAVEPOINT active_record_1
563
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
564
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
565
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
566
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
568
+  (0.1ms) SAVEPOINT active_record_1
569
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
570
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
571
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
572
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+  (0.1ms) SAVEPOINT active_record_1
575
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
576
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
577
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
578
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
580
+  (0.1ms) SAVEPOINT active_record_1
581
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
582
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
583
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
584
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
586
+  (0.1ms) SAVEPOINT active_record_1
587
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
588
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00]]
589
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
590
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
592
+  (0.1ms) SAVEPOINT active_record_1
593
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
594
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
595
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
596
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
598
+  (0.1ms) SAVEPOINT active_record_1
599
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
600
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
601
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
602
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
604
+  (0.1ms) SAVEPOINT active_record_1
605
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
606
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
607
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
608
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
610
+  (0.1ms) SAVEPOINT active_record_1
611
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
612
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
613
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
614
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
616
+  (0.1ms) SAVEPOINT active_record_1
617
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
618
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00]]
619
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
620
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
622
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND (created_at >= '2013-09-05 07:29:29.412171') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
623
+ Aloe::Account Load (0.3ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
624
+  (2.0ms) rollback transaction
625
+  (0.1ms) begin transaction
626
+  (0.1ms) rollback transaction
627
+  (0.1ms) begin transaction
628
+  (0.1ms) SAVEPOINT active_record_1
629
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
631
+  (0.0ms) SAVEPOINT active_record_1
632
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
633
+ SQL (1.1ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
635
+  (0.1ms) SAVEPOINT active_record_1
636
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
638
+  (0.0ms) SAVEPOINT active_record_1
639
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
641
+  (0.6ms) rollback transaction
642
+  (0.1ms) begin transaction
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
646
+  (0.1ms) SAVEPOINT active_record_1
647
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
648
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
650
+  (0.1ms) SAVEPOINT active_record_1
651
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
653
+  (0.5ms) rollback transaction
654
+  (0.1ms) begin transaction
655
+  (0.1ms) SAVEPOINT active_record_1
656
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
658
+  (0.1ms) SAVEPOINT active_record_1
659
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
660
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
662
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
663
+  (0.6ms) rollback transaction
664
+  (0.1ms) begin transaction
665
+  (0.1ms) SAVEPOINT active_record_1
666
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
668
+  (0.0ms) SAVEPOINT active_record_1
669
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
670
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
672
+  (0.0ms) SAVEPOINT active_record_1
673
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
675
+  (0.1ms) SAVEPOINT active_record_1
676
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
678
+  (0.6ms) rollback transaction
679
+  (0.1ms) begin transaction
680
+  (0.1ms) SAVEPOINT active_record_1
681
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
683
+  (0.0ms) SAVEPOINT active_record_1
684
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
685
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
687
+  (0.1ms) SAVEPOINT active_record_1
688
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
690
+  (0.1ms) SAVEPOINT active_record_1
691
+ SQL (2.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
693
+  (0.1ms) SAVEPOINT active_record_1
694
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
695
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
697
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
698
+  (0.7ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+  (0.1ms) SAVEPOINT active_record_1
701
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
703
+  (0.0ms) SAVEPOINT active_record_1
704
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
705
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
707
+  (0.1ms) SAVEPOINT active_record_1
708
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
710
+  (0.1ms) SAVEPOINT active_record_1
711
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
713
+  (0.1ms) SAVEPOINT active_record_1
714
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
715
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00]]
716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
717
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
718
+  (0.6ms) rollback transaction
719
+  (0.1ms) begin transaction
720
+  (0.1ms) rollback transaction
721
+  (0.1ms) begin transaction
722
+  (0.1ms) rollback transaction
723
+  (0.1ms) begin transaction
724
+  (0.1ms) rollback transaction
725
+  (3.3ms) DROP TABLE "aloe_accounts"
726
+  (1.5ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
727
+  (1.6ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
728
+  (4.0ms) DROP TABLE "aloe_entries"
729
+  (4.3ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
730
+  (2.1ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
731
+  (5.2ms) DROP TABLE "aloe_transactions"
732
+  (13.4ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
733
+  (1.9ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
734
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
735
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
736
+  (1.6ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
737
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
738
+  (1.6ms) DROP TABLE "users"
739
+  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
740
+  (0.5ms) SELECT version FROM "schema_migrations"
741
+  (0.1ms) begin transaction
742
+  (0.1ms) rollback transaction
743
+  (0.1ms) begin transaction
744
+  (0.1ms) rollback transaction
745
+  (0.1ms) begin transaction
746
+  (0.1ms) rollback transaction
747
+  (0.1ms) begin transaction
748
+  (0.1ms) rollback transaction
749
+  (0.1ms) begin transaction
750
+  (0.1ms) rollback transaction
751
+  (0.1ms) begin transaction
752
+  (0.1ms) SAVEPOINT active_record_1
753
+ SQL (4.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:10 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:10 UTC +00:00]]
754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
755
+  (0.1ms) SAVEPOINT active_record_1
756
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
757
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
759
+  (0.1ms) SAVEPOINT active_record_1
760
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
762
+  (0.1ms) SAVEPOINT active_record_1
763
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
765
+  (0.6ms) rollback transaction
766
+  (0.1ms) begin transaction
767
+  (0.1ms) SAVEPOINT active_record_1
768
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
770
+  (0.0ms) SAVEPOINT active_record_1
771
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
772
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
774
+  (0.1ms) SAVEPOINT active_record_1
775
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
777
+  (0.0ms) SAVEPOINT active_record_1
778
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
780
+  (0.1ms) SAVEPOINT active_record_1
781
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
782
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
784
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
785
+  (0.6ms) rollback transaction
786
+  (0.1ms) begin transaction
787
+  (0.1ms) SAVEPOINT active_record_1
788
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
790
+  (0.1ms) SAVEPOINT active_record_1
791
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
792
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
794
+  (0.1ms) SAVEPOINT active_record_1
795
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
797
+  (1.4ms) rollback transaction
798
+  (0.1ms) begin transaction
799
+  (0.1ms) SAVEPOINT active_record_1
800
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
802
+  (0.1ms) SAVEPOINT active_record_1
803
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
804
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
806
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
807
+  (0.6ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+  (0.1ms) SAVEPOINT active_record_1
810
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
812
+  (0.1ms) SAVEPOINT active_record_1
813
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
814
+ SQL (3.9ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
815
+  (0.2ms) RELEASE SAVEPOINT active_record_1
816
+  (0.1ms) SAVEPOINT active_record_1
817
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
819
+  (0.1ms) SAVEPOINT active_record_1
820
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
822
+  (0.7ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+  (0.1ms) rollback transaction
825
+  (0.1ms) begin transaction
826
+  (0.1ms) SAVEPOINT active_record_1
827
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
829
+  (0.0ms) SAVEPOINT active_record_1
830
+ Aloe::Account Exists (0.7ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
831
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
833
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:04:11.199087' WHERE "aloe_accounts"."id" = 1
834
+  (0.1ms) SAVEPOINT active_record_1
835
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
836
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
837
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
838
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
840
+  (0.1ms) SAVEPOINT active_record_1
841
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
842
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
843
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
844
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
846
+  (0.1ms) SAVEPOINT active_record_1
847
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
848
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
849
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
850
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+  (0.1ms) SAVEPOINT active_record_1
853
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
854
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
855
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
856
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
858
+  (0.1ms) SAVEPOINT active_record_1
859
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
860
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
861
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
862
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
864
+  (0.1ms) SAVEPOINT active_record_1
865
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
866
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
867
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
868
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
870
+  (0.1ms) SAVEPOINT active_record_1
871
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
872
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
873
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
874
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
876
+  (0.1ms) SAVEPOINT active_record_1
877
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
878
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
879
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
880
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
882
+  (0.1ms) SAVEPOINT active_record_1
883
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
884
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
885
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
886
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
888
+  (0.2ms) SAVEPOINT active_record_1
889
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
890
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
891
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
892
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
893
+  (0.2ms) RELEASE SAVEPOINT active_record_1
894
+  (0.1ms) SAVEPOINT active_record_1
895
+ Aloe::Account Load (38.9ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
896
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
897
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
898
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
900
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND (created_at >= '2013-09-05 14:04:11.343068') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
901
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
902
+  (0.6ms) rollback transaction
903
+  (0.1ms) begin transaction
904
+  (0.1ms) SAVEPOINT active_record_1
905
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
907
+  (0.0ms) SAVEPOINT active_record_1
908
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
909
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
911
+  (0.0ms) SAVEPOINT active_record_1
912
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
914
+  (0.6ms) rollback transaction
915
+  (0.1ms) begin transaction
916
+  (0.1ms) SAVEPOINT active_record_1
917
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
919
+  (0.0ms) SAVEPOINT active_record_1
920
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
921
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
923
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:04:11.374034' WHERE "aloe_accounts"."id" = 1
924
+  (0.2ms) SAVEPOINT active_record_1
925
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
926
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
927
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
928
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
930
+  (0.1ms) SAVEPOINT active_record_1
931
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
932
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
933
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
934
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
936
+  (0.1ms) SAVEPOINT active_record_1
937
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
938
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
939
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
940
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
942
+  (0.1ms) SAVEPOINT active_record_1
943
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
944
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
945
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
946
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
948
+  (0.1ms) SAVEPOINT active_record_1
949
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
950
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
951
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
952
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
954
+  (0.1ms) SAVEPOINT active_record_1
955
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
956
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00]]
957
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
958
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
960
+  (0.1ms) SAVEPOINT active_record_1
961
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
962
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
963
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
964
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
966
+  (0.1ms) SAVEPOINT active_record_1
967
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
968
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
969
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
970
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
972
+  (0.1ms) SAVEPOINT active_record_1
973
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
974
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
975
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
976
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
978
+  (0.1ms) SAVEPOINT active_record_1
979
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
980
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
981
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
982
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
984
+  (0.1ms) SAVEPOINT active_record_1
985
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
986
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00]]
987
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
988
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
990
+ Aloe::Entry Load (0.3ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND ("aloe_entries"."created_at" BETWEEN '2013-09-13 14:04:11.451281' AND '2013-10-04 14:04:11.451394') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
991
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
992
+  (0.7ms) rollback transaction
993
+  (0.1ms) begin transaction
994
+  (0.1ms) SAVEPOINT active_record_1
995
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
997
+  (0.1ms) SAVEPOINT active_record_1
998
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
999
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1001
+  (0.1ms) SAVEPOINT active_record_1
1002
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1004
+  (0.0ms) SAVEPOINT active_record_1
1005
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1007
+  (0.0ms) SAVEPOINT active_record_1
1008
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1009
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1011
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
1012
+  (0.6ms) rollback transaction
1013
+  (0.1ms) begin transaction
1014
+  (0.1ms) SAVEPOINT active_record_1
1015
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1016
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Source"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1018
+  (0.0ms) SAVEPOINT active_record_1
1019
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1020
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1022
+  (0.1ms) SAVEPOINT active_record_1
1023
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1024
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1025
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1026
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1027
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1028
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1029
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1030
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1031
+ SQL (0.6ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c49cde400f2b01311349040ccee136f0"]]
1032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1033
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
1034
+  (0.1ms) SAVEPOINT active_record_1
1035
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1036
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.1ms) SAVEPOINT active_record_1
1039
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1040
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1041
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1042
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1043
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1044
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
1045
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 3], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1046
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
1047
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1048
+ SQL (0.2ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4a066900f2b0131134a040ccee136f0"]]
1049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1050
+  (0.1ms) SAVEPOINT active_record_1
1051
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1052
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1053
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1054
+  (0.8ms) rollback transaction
1055
+  (0.1ms) begin transaction
1056
+  (0.1ms) SAVEPOINT active_record_1
1057
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1058
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1060
+  (0.0ms) SAVEPOINT active_record_1
1061
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1062
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1064
+  (0.0ms) SAVEPOINT active_record_1
1065
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1066
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1067
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1068
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1069
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1070
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1071
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1072
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1073
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4a4c2600f2b0131134b040ccee136f0"]]
1074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1075
+  (0.6ms) rollback transaction
1076
+  (0.1ms) begin transaction
1077
+  (0.1ms) SAVEPOINT active_record_1
1078
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1079
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1081
+  (0.1ms) SAVEPOINT active_record_1
1082
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1083
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1085
+  (0.1ms) SAVEPOINT active_record_1
1086
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1087
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1089
+  (0.6ms) rollback transaction
1090
+  (0.1ms) begin transaction
1091
+  (0.1ms) SAVEPOINT active_record_1
1092
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1093
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1095
+  (0.0ms) SAVEPOINT active_record_1
1096
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1097
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1099
+  (0.0ms) SAVEPOINT active_record_1
1100
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1101
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1102
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1103
+  (0.5ms) rollback transaction
1104
+  (0.1ms) begin transaction
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1107
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
+  (0.1ms) SAVEPOINT active_record_1
1110
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
1111
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :USD], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1113
+  (0.6ms) rollback transaction
1114
+  (0.1ms) begin transaction
1115
+  (0.2ms) SAVEPOINT active_record_1
1116
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1117
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.1ms) SAVEPOINT active_record_1
1120
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1121
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1123
+  (0.5ms) rollback transaction
1124
+  (0.1ms) begin transaction
1125
+  (0.1ms) SAVEPOINT active_record_1
1126
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1127
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1129
+  (0.1ms) SAVEPOINT active_record_1
1130
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1131
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
+  (0.1ms) SAVEPOINT active_record_1
1134
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1135
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1137
+  (0.5ms) rollback transaction
1138
+  (0.1ms) begin transaction
1139
+  (0.1ms) SAVEPOINT active_record_1
1140
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
+  (0.1ms) SAVEPOINT active_record_1
1143
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1144
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1146
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' ORDER BY "aloe_accounts"."id" ASC LIMIT 1
1147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
1148
+  (0.6ms) rollback transaction
1149
+  (0.1ms) begin transaction
1150
+  (0.1ms) SAVEPOINT active_record_1
1151
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1152
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Test"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1154
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1155
+  (0.5ms) rollback transaction
1156
+  (0.1ms) begin transaction
1157
+  (0.1ms) SAVEPOINT active_record_1
1158
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1160
+  (0.0ms) SAVEPOINT active_record_1
1161
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1162
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1164
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1165
+  (0.6ms) rollback transaction
1166
+  (0.1ms) begin transaction
1167
+  (0.1ms) SAVEPOINT active_record_1
1168
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1169
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1171
+  (0.0ms) SAVEPOINT active_record_1
1172
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1173
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1175
+  (0.0ms) SAVEPOINT active_record_1
1176
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1177
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1178
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1179
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1180
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1181
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1182
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1183
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1184
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4bf4cd00f2b0131134c040ccee136f0"]]
1185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1186
+  (0.0ms) SAVEPOINT active_record_1
1187
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1188
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1189
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1190
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1191
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1192
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1193
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1194
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1195
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4c147800f2b0131134d040ccee136f0"]]
1196
+ SQL (0.3ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["details", nil]]
1197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1198
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
1199
+  (0.0ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
1200
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
1201
+ Aloe::Transaction Load (0.3ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
1202
+  (1.0ms) rollback transaction
1203
+  (0.2ms) begin transaction
1204
+  (0.1ms) SAVEPOINT active_record_1
1205
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1206
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1208
+  (0.1ms) SAVEPOINT active_record_1
1209
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1210
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1212
+  (0.0ms) SAVEPOINT active_record_1
1213
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1214
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1215
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1216
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1217
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1218
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1219
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1220
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1221
+ SQL (0.2ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4c687900f2b0131134e040ccee136f0"]]
1222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1223
+  (0.0ms) SAVEPOINT active_record_1
1224
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1225
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1226
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1227
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1228
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1229
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1230
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1231
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1232
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["uuid", "c4c85f100f2b0131134f040ccee136f0"]]
1233
+ SQL (0.1ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["details", nil]]
1234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1235
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1236
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1237
+  (0.8ms) rollback transaction
1238
+  (0.1ms) begin transaction
1239
+  (0.2ms) rollback transaction
1240
+  (0.1ms) begin transaction
1241
+  (0.2ms) rollback transaction
1242
+  (0.1ms) begin transaction
1243
+  (0.1ms) rollback transaction
1244
+  (0.1ms) begin transaction
1245
+  (0.1ms) rollback transaction
1246
+  (0.1ms) begin transaction
1247
+  (0.1ms) rollback transaction
1248
+  (0.1ms) begin transaction
1249
+  (0.1ms) rollback transaction
1250
+  (0.1ms) begin transaction
1251
+  (0.1ms) rollback transaction
1252
+  (0.1ms) begin transaction
1253
+  (0.1ms) rollback transaction
1254
+  (0.1ms) begin transaction
1255
+  (0.1ms) rollback transaction
1256
+  (0.1ms) begin transaction
1257
+  (0.2ms) rollback transaction
1258
+  (0.1ms) begin transaction
1259
+  (0.1ms) rollback transaction
1260
+  (0.1ms) begin transaction
1261
+  (0.1ms) rollback transaction
1262
+  (0.1ms) begin transaction
1263
+  (0.1ms) rollback transaction
1264
+  (0.1ms) begin transaction
1265
+  (0.1ms) rollback transaction
1266
+  (0.1ms) begin transaction
1267
+  (0.1ms) rollback transaction
1268
+  (0.1ms) begin transaction
1269
+  (0.1ms) rollback transaction
1270
+  (0.1ms) begin transaction
1271
+  (0.1ms) rollback transaction
1272
+  (0.1ms) begin transaction
1273
+  (0.1ms) rollback transaction
1274
+  (0.1ms) begin transaction
1275
+  (0.1ms) rollback transaction
1276
+  (0.1ms) begin transaction
1277
+  (0.1ms) SAVEPOINT active_record_1
1278
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1280
+  (0.0ms) SAVEPOINT active_record_1
1281
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1282
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1283
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1284
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1286
+  (0.6ms) rollback transaction
1287
+  (0.1ms) begin transaction
1288
+  (0.1ms) SAVEPOINT active_record_1
1289
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1291
+  (0.0ms) SAVEPOINT active_record_1
1292
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1293
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1294
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1295
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1297
+  (0.6ms) rollback transaction
1298
+  (0.1ms) begin transaction
1299
+  (0.1ms) SAVEPOINT active_record_1
1300
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1302
+  (0.0ms) SAVEPOINT active_record_1
1303
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1304
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00]]
1305
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1306
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
1309
+  (0.6ms) rollback transaction
1310
+  (0.1ms) begin transaction
1311
+  (0.2ms) rollback transaction
1312
+  (0.1ms) begin transaction
1313
+  (0.1ms) rollback transaction
1314
+  (0.1ms) begin transaction
1315
+  (0.1ms) rollback transaction
1316
+  (0.1ms) begin transaction
1317
+  (0.2ms) rollback transaction
1318
+  (0.1ms) begin transaction
1319
+  (0.1ms) rollback transaction
1320
+  (0.1ms) begin transaction
1321
+  (0.1ms) rollback transaction
1322
+  (0.1ms) begin transaction
1323
+  (0.1ms) rollback transaction
1324
+  (0.1ms) begin transaction
1325
+  (0.1ms) rollback transaction
1326
+  (0.1ms) begin transaction
1327
+  (0.2ms) SAVEPOINT active_record_1
1328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1329
+  (0.1ms) rollback transaction
1330
+  (0.1ms) begin transaction
1331
+  (0.1ms) SAVEPOINT active_record_1
1332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
+  (0.1ms) rollback transaction
1334
+  (0.1ms) begin transaction
1335
+  (0.1ms) SAVEPOINT active_record_1
1336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1337
+  (0.1ms) rollback transaction
1338
+  (0.1ms) begin transaction
1339
+  (0.1ms) rollback transaction
1340
+  (0.1ms) begin transaction
1341
+  (0.1ms) rollback transaction
1342
+  (0.1ms) begin transaction
1343
+  (0.1ms) rollback transaction
1344
+  (0.1ms) begin transaction
1345
+  (0.1ms) SAVEPOINT active_record_1
1346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.1ms) rollback transaction
1348
+  (0.1ms) begin transaction
1349
+  (0.1ms) rollback transaction
1350
+  (0.1ms) begin transaction
1351
+  (0.1ms) SAVEPOINT active_record_1
1352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1353
+  (0.1ms) rollback transaction
1354
+  (0.1ms) begin transaction
1355
+  (0.1ms) SAVEPOINT active_record_1
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+  (0.1ms) rollback transaction
1358
+  (0.1ms) begin transaction
1359
+  (0.1ms) SAVEPOINT active_record_1
1360
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1361
+  (0.1ms) rollback transaction
1362
+  (0.1ms) begin transaction
1363
+  (0.1ms) SAVEPOINT active_record_1
1364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1365
+  (0.1ms) rollback transaction
1366
+  (0.1ms) begin transaction
1367
+  (0.1ms) rollback transaction
1368
+  (0.1ms) begin transaction
1369
+  (0.1ms) rollback transaction
1370
+  (0.1ms) begin transaction
1371
+  (0.1ms) rollback transaction
1372
+  (2.7ms) DROP TABLE "aloe_accounts"
1373
+  (1.8ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
1374
+  (2.4ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
1375
+  (2.4ms) DROP TABLE "aloe_entries"
1376
+  (1.3ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
1377
+  (1.8ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
1378
+  (3.3ms) DROP TABLE "aloe_transactions"
1379
+  (1.3ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
1380
+  (2.1ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
1381
+  (1.8ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
1382
+  (1.9ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
1383
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
1384
+  (1.1ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
1385
+  (1.7ms) DROP TABLE "users"
1386
+  (1.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
1387
+  (0.6ms) SELECT version FROM "schema_migrations"
1388
+  (0.1ms) begin transaction
1389
+  (0.2ms) rollback transaction
1390
+  (0.1ms) begin transaction
1391
+  (0.1ms) rollback transaction
1392
+  (0.1ms) begin transaction
1393
+  (0.1ms) rollback transaction
1394
+  (0.1ms) begin transaction
1395
+  (0.1ms) rollback transaction
1396
+  (0.1ms) begin transaction
1397
+  (0.1ms) rollback transaction
1398
+  (0.1ms) begin transaction
1399
+  (0.1ms) rollback transaction
1400
+  (0.1ms) begin transaction
1401
+  (0.1ms) rollback transaction
1402
+  (0.1ms) begin transaction
1403
+  (0.1ms) rollback transaction
1404
+  (0.1ms) begin transaction
1405
+  (0.1ms) rollback transaction
1406
+  (0.1ms) begin transaction
1407
+  (0.1ms) rollback transaction
1408
+  (0.1ms) begin transaction
1409
+  (0.1ms) SAVEPOINT active_record_1
1410
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1412
+  (0.1ms) SAVEPOINT active_record_1
1413
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1414
+ SQL (0.8ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1415
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1416
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1418
+  (0.2ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
1419
+  (0.7ms) rollback transaction
1420
+  (0.2ms) begin transaction
1421
+  (0.1ms) SAVEPOINT active_record_1
1422
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1424
+  (0.1ms) SAVEPOINT active_record_1
1425
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1426
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1427
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1428
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1430
+  (0.7ms) rollback transaction
1431
+  (0.1ms) begin transaction
1432
+  (0.1ms) SAVEPOINT active_record_1
1433
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1435
+  (0.0ms) SAVEPOINT active_record_1
1436
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1437
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1438
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1439
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1441
+  (0.7ms) rollback transaction
1442
+  (0.1ms) begin transaction
1443
+  (0.1ms) rollback transaction
1444
+  (0.1ms) begin transaction
1445
+  (0.1ms) rollback transaction
1446
+  (0.1ms) begin transaction
1447
+  (0.1ms) rollback transaction
1448
+  (0.1ms) begin transaction
1449
+  (0.2ms) rollback transaction
1450
+  (0.1ms) begin transaction
1451
+  (0.1ms) rollback transaction
1452
+  (0.1ms) begin transaction
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1455
+  (0.1ms) rollback transaction
1456
+  (0.1ms) begin transaction
1457
+  (0.1ms) SAVEPOINT active_record_1
1458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1459
+  (0.1ms) rollback transaction
1460
+  (0.1ms) begin transaction
1461
+  (0.1ms) SAVEPOINT active_record_1
1462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1463
+  (0.1ms) rollback transaction
1464
+  (0.1ms) begin transaction
1465
+  (0.1ms) SAVEPOINT active_record_1
1466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1467
+  (0.1ms) rollback transaction
1468
+  (0.1ms) begin transaction
1469
+  (0.1ms) rollback transaction
1470
+  (0.1ms) begin transaction
1471
+  (0.1ms) SAVEPOINT active_record_1
1472
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1474
+  (0.1ms) SAVEPOINT active_record_1
1475
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1476
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1478
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:13:19.310490' WHERE "aloe_accounts"."id" = 1
1479
+  (0.1ms) SAVEPOINT active_record_1
1480
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1481
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1482
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1483
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1485
+  (0.1ms) SAVEPOINT active_record_1
1486
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1487
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1488
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1489
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1491
+  (0.1ms) SAVEPOINT active_record_1
1492
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1493
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1494
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1495
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1497
+  (0.1ms) SAVEPOINT active_record_1
1498
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1499
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1500
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1501
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1503
+  (0.1ms) SAVEPOINT active_record_1
1504
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1505
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1506
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1507
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1509
+  (0.1ms) SAVEPOINT active_record_1
1510
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1511
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1512
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1513
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1515
+  (0.1ms) SAVEPOINT active_record_1
1516
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1517
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1518
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1519
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1521
+  (0.1ms) SAVEPOINT active_record_1
1522
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1523
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1524
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1525
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1527
+  (0.1ms) SAVEPOINT active_record_1
1528
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1529
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1530
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1531
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1533
+  (0.1ms) SAVEPOINT active_record_1
1534
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1535
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1536
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1537
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1539
+  (0.1ms) SAVEPOINT active_record_1
1540
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1541
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1542
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1543
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1545
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND ("aloe_entries"."created_at" BETWEEN '2013-09-13 14:13:19.383800' AND '2013-10-04 14:13:19.383869') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
1546
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
1547
+  (0.7ms) rollback transaction
1548
+  (0.1ms) begin transaction
1549
+  (0.1ms) SAVEPOINT active_record_1
1550
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
+  (0.1ms) SAVEPOINT active_record_1
1553
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1554
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1556
+  (0.1ms) SAVEPOINT active_record_1
1557
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1559
+  (0.1ms) SAVEPOINT active_record_1
1560
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1562
+  (0.1ms) SAVEPOINT active_record_1
1563
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1564
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1566
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
1567
+  (0.6ms) rollback transaction
1568
+  (0.1ms) begin transaction
1569
+  (0.1ms) SAVEPOINT active_record_1
1570
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1572
+  (0.1ms) SAVEPOINT active_record_1
1573
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1574
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1576
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:13:19.424973' WHERE "aloe_accounts"."id" = 1
1577
+  (0.1ms) SAVEPOINT active_record_1
1578
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1579
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1580
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1581
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1583
+  (0.1ms) SAVEPOINT active_record_1
1584
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1585
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1586
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1587
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1588
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1589
+  (0.1ms) SAVEPOINT active_record_1
1590
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1591
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1592
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1593
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1595
+  (0.1ms) SAVEPOINT active_record_1
1596
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1597
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1598
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1599
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.1ms) SAVEPOINT active_record_1
1602
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1603
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1604
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1605
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1607
+  (0.1ms) SAVEPOINT active_record_1
1608
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1609
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00]]
1610
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1611
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1613
+  (0.1ms) SAVEPOINT active_record_1
1614
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1615
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1616
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1617
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1619
+  (0.1ms) SAVEPOINT active_record_1
1620
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1621
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1622
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1623
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1625
+  (0.1ms) SAVEPOINT active_record_1
1626
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1627
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1628
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1629
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1631
+  (0.1ms) SAVEPOINT active_record_1
1632
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1633
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1634
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1635
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1637
+  (0.1ms) SAVEPOINT active_record_1
1638
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1639
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00]]
1640
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1641
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1643
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND (created_at >= '2013-09-05 14:13:19.503323') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
1644
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
1645
+  (1.1ms) rollback transaction
1646
+  (0.2ms) begin transaction
1647
+  (0.1ms) SAVEPOINT active_record_1
1648
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1650
+  (0.1ms) SAVEPOINT active_record_1
1651
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1652
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1654
+  (0.1ms) SAVEPOINT active_record_1
1655
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1657
+  (0.1ms) SAVEPOINT active_record_1
1658
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1659
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1660
+  (0.7ms) rollback transaction
1661
+  (0.2ms) begin transaction
1662
+  (0.1ms) SAVEPOINT active_record_1
1663
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1665
+  (0.1ms) SAVEPOINT active_record_1
1666
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1667
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1669
+  (0.1ms) SAVEPOINT active_record_1
1670
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1672
+  (0.1ms) SAVEPOINT active_record_1
1673
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1675
+  (0.5ms) rollback transaction
1676
+  (0.1ms) begin transaction
1677
+  (0.1ms) SAVEPOINT active_record_1
1678
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1680
+  (0.1ms) SAVEPOINT active_record_1
1681
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1682
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1684
+  (0.1ms) SAVEPOINT active_record_1
1685
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1687
+  (0.8ms) rollback transaction
1688
+  (0.1ms) begin transaction
1689
+  (0.1ms) SAVEPOINT active_record_1
1690
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1692
+  (0.1ms) SAVEPOINT active_record_1
1693
+ Aloe::Account Exists (0.9ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1694
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1696
+  (0.2ms) SAVEPOINT active_record_1
1697
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1699
+  (0.6ms) rollback transaction
1700
+  (0.1ms) begin transaction
1701
+  (0.1ms) SAVEPOINT active_record_1
1702
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1704
+  (0.1ms) SAVEPOINT active_record_1
1705
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1706
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1708
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
1709
+  (0.7ms) rollback transaction
1710
+  (0.1ms) begin transaction
1711
+  (0.1ms) SAVEPOINT active_record_1
1712
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1714
+  (0.1ms) SAVEPOINT active_record_1
1715
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1716
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1718
+  (0.1ms) SAVEPOINT active_record_1
1719
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1721
+  (0.0ms) SAVEPOINT active_record_1
1722
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.1ms) SAVEPOINT active_record_1
1725
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1726
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1728
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
1729
+  (2.1ms) rollback transaction
1730
+  (0.1ms) begin transaction
1731
+  (0.1ms) rollback transaction
1732
+  (0.1ms) begin transaction
1733
+  (0.1ms) rollback transaction
1734
+  (0.1ms) begin transaction
1735
+  (0.2ms) rollback transaction
1736
+  (0.2ms) begin transaction
1737
+  (0.2ms) rollback transaction
1738
+  (0.1ms) begin transaction
1739
+  (0.1ms) rollback transaction
1740
+  (0.1ms) begin transaction
1741
+  (0.1ms) rollback transaction
1742
+  (0.1ms) begin transaction
1743
+  (0.1ms) rollback transaction
1744
+  (0.1ms) begin transaction
1745
+  (0.1ms) rollback transaction
1746
+  (0.1ms) begin transaction
1747
+  (0.1ms) rollback transaction
1748
+  (0.1ms) begin transaction
1749
+  (0.2ms) rollback transaction
1750
+  (0.2ms) begin transaction
1751
+  (0.2ms) rollback transaction
1752
+  (0.1ms) begin transaction
1753
+  (0.2ms) rollback transaction
1754
+  (0.1ms) begin transaction
1755
+  (0.2ms) rollback transaction
1756
+  (0.1ms) begin transaction
1757
+  (0.2ms) rollback transaction
1758
+  (0.1ms) begin transaction
1759
+  (0.1ms) rollback transaction
1760
+  (0.1ms) begin transaction
1761
+  (0.2ms) rollback transaction
1762
+  (0.1ms) begin transaction
1763
+  (0.1ms) rollback transaction
1764
+  (0.1ms) begin transaction
1765
+  (0.1ms) SAVEPOINT active_record_1
1766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1767
+  (0.1ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+  (0.1ms) SAVEPOINT active_record_1
1770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1771
+  (0.1ms) rollback transaction
1772
+  (0.2ms) begin transaction
1773
+  (0.1ms) SAVEPOINT active_record_1
1774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1775
+  (0.1ms) rollback transaction
1776
+  (0.1ms) begin transaction
1777
+  (0.1ms) SAVEPOINT active_record_1
1778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1779
+  (0.1ms) rollback transaction
1780
+  (0.1ms) begin transaction
1781
+  (0.1ms) rollback transaction
1782
+  (0.1ms) begin transaction
1783
+  (0.2ms) rollback transaction
1784
+  (0.2ms) begin transaction
1785
+  (0.2ms) rollback transaction
1786
+  (0.1ms) begin transaction
1787
+  (0.2ms) rollback transaction
1788
+  (0.1ms) begin transaction
1789
+  (0.1ms) SAVEPOINT active_record_1
1790
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1791
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["name", "Test"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1793
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1794
+  (0.9ms) rollback transaction
1795
+  (0.1ms) begin transaction
1796
+  (0.1ms) SAVEPOINT active_record_1
1797
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1799
+  (0.1ms) SAVEPOINT active_record_1
1800
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1801
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1803
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1804
+  (0.6ms) rollback transaction
1805
+  (0.2ms) begin transaction
1806
+  (0.1ms) SAVEPOINT active_record_1
1807
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1808
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1810
+  (0.2ms) SAVEPOINT active_record_1
1811
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1812
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1814
+  (0.1ms) SAVEPOINT active_record_1
1815
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1816
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1817
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1818
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1819
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1820
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00]]
1821
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1822
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1823
+ SQL (1.0ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0b87a5b00f2d01311356040ccee136f0"]]
1824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1825
+  (0.7ms) rollback transaction
1826
+  (0.1ms) begin transaction
1827
+  (0.1ms) SAVEPOINT active_record_1
1828
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1829
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1831
+  (0.1ms) SAVEPOINT active_record_1
1832
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1833
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1835
+  (0.5ms) rollback transaction
1836
+  (0.1ms) begin transaction
1837
+  (0.1ms) SAVEPOINT active_record_1
1838
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1839
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1841
+  (0.0ms) SAVEPOINT active_record_1
1842
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1843
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1845
+  (0.0ms) SAVEPOINT active_record_1
1846
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1847
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1848
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1849
+  (0.9ms) rollback transaction
1850
+  (0.1ms) begin transaction
1851
+  (0.1ms) SAVEPOINT active_record_1
1852
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1853
+ SQL (0.9ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1855
+  (0.0ms) SAVEPOINT active_record_1
1856
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
1857
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :USD], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1859
+  (0.7ms) rollback transaction
1860
+  (0.1ms) begin transaction
1861
+  (0.1ms) SAVEPOINT active_record_1
1862
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1863
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1865
+  (0.1ms) SAVEPOINT active_record_1
1866
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1867
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1869
+  (0.0ms) SAVEPOINT active_record_1
1870
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1871
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1873
+  (0.4ms) rollback transaction
1874
+  (0.1ms) begin transaction
1875
+  (0.1ms) SAVEPOINT active_record_1
1876
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1877
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1879
+  (0.2ms) SAVEPOINT active_record_1
1880
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1881
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1883
+  (0.0ms) SAVEPOINT active_record_1
1884
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1885
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1887
+  (1.1ms) rollback transaction
1888
+  (0.1ms) begin transaction
1889
+  (0.1ms) SAVEPOINT active_record_1
1890
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1892
+  (0.0ms) SAVEPOINT active_record_1
1893
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
1894
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1896
+  (0.6ms) rollback transaction
1897
+  (0.1ms) begin transaction
1898
+  (0.1ms) SAVEPOINT active_record_1
1899
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1900
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Source"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1902
+  (0.1ms) SAVEPOINT active_record_1
1903
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1904
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1906
+  (0.1ms) SAVEPOINT active_record_1
1907
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1908
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1909
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1910
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1911
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1912
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1913
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1914
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1915
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0b99a1300f2d01311357040ccee136f0"]]
1916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1917
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
1918
+  (0.1ms) SAVEPOINT active_record_1
1919
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1920
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1922
+  (0.0ms) SAVEPOINT active_record_1
1923
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1924
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1925
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1926
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1927
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1928
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
1929
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 3], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1930
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
1931
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
1932
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0b9ccc000f2d01311358040ccee136f0"]]
1933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1934
+  (0.0ms) SAVEPOINT active_record_1
1935
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1936
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1937
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1938
+  (0.8ms) rollback transaction
1939
+  (0.1ms) begin transaction
1940
+  (0.1ms) SAVEPOINT active_record_1
1941
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1942
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1946
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1948
+  (0.0ms) SAVEPOINT active_record_1
1949
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1950
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1951
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1952
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1953
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1954
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1955
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1956
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1957
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0ba115d00f2d01311359040ccee136f0"]]
1958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1959
+  (0.0ms) SAVEPOINT active_record_1
1960
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1961
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1962
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1963
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1964
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1965
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1966
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1967
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1968
+ SQL (0.4ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0ba42be00f2d0131135a040ccee136f0"]]
1969
+ SQL (0.3ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["details", nil]]
1970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1971
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
1972
+  (0.0ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
1973
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
1974
+ Aloe::Transaction Load (0.2ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
1975
+  (0.7ms) rollback transaction
1976
+  (0.1ms) begin transaction
1977
+  (0.1ms) SAVEPOINT active_record_1
1978
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1979
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1981
+  (0.0ms) SAVEPOINT active_record_1
1982
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
1983
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1985
+  (0.0ms) SAVEPOINT active_record_1
1986
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
1987
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1988
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
1989
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1990
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1991
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1992
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
1993
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
1994
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0ba944700f2d0131135b040ccee136f0"]]
1995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1996
+  (0.0ms) SAVEPOINT active_record_1
1997
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
1998
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
1999
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2000
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2001
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2002
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00]]
2003
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2004
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2005
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["uuid", "0bab64000f2d0131135c040ccee136f0"]]
2006
+ SQL (0.1ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["details", nil]]
2007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2008
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2009
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2010
+  (0.8ms) rollback transaction
2011
+  (0.1ms) begin transaction
2012
+  (0.1ms) rollback transaction
2013
+  (0.1ms) begin transaction
2014
+  (0.1ms) rollback transaction
2015
+  (0.1ms) begin transaction
2016
+  (0.1ms) rollback transaction
2017
+  (3.3ms) DROP TABLE "aloe_accounts"
2018
+  (1.6ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
2019
+  (1.5ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
2020
+  (2.3ms) DROP TABLE "aloe_entries"
2021
+  (1.5ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
2022
+  (1.3ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
2023
+  (4.0ms) DROP TABLE "aloe_transactions"
2024
+  (1.4ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
2025
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
2026
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
2027
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
2028
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
2029
+  (1.5ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
2030
+  (1.9ms) DROP TABLE "users"
2031
+  (1.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
2032
+  (0.5ms) SELECT version FROM "schema_migrations"
2033
+  (0.1ms) begin transaction
2034
+  (0.1ms) SAVEPOINT active_record_1
2035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2036
+  (0.1ms) rollback transaction
2037
+  (0.1ms) begin transaction
2038
+  (0.1ms) SAVEPOINT active_record_1
2039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2040
+  (0.1ms) rollback transaction
2041
+  (0.1ms) begin transaction
2042
+  (0.1ms) SAVEPOINT active_record_1
2043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2044
+  (0.1ms) rollback transaction
2045
+  (0.1ms) begin transaction
2046
+  (0.1ms) SAVEPOINT active_record_1
2047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2048
+  (0.1ms) rollback transaction
2049
+  (0.1ms) begin transaction
2050
+  (0.1ms) SAVEPOINT active_record_1
2051
+ SQL (1.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2053
+  (0.1ms) SAVEPOINT active_record_1
2054
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2055
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2057
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:17:48.176465' WHERE "aloe_accounts"."id" = 1
2058
+  (0.1ms) SAVEPOINT active_record_1
2059
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2060
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2061
+ Aloe::Account Load (0.3ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2062
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2064
+  (0.1ms) SAVEPOINT active_record_1
2065
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2066
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2067
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2068
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2070
+  (0.1ms) SAVEPOINT active_record_1
2071
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2072
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2073
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2074
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
+  (0.1ms) SAVEPOINT active_record_1
2077
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2078
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2079
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2080
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2082
+  (0.1ms) SAVEPOINT active_record_1
2083
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2084
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2085
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2086
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2088
+  (0.1ms) SAVEPOINT active_record_1
2089
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2090
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2091
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2092
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2094
+  (0.1ms) SAVEPOINT active_record_1
2095
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2096
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2097
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2098
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2100
+  (0.1ms) SAVEPOINT active_record_1
2101
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2102
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2103
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2104
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2106
+  (0.1ms) SAVEPOINT active_record_1
2107
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2108
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2109
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2110
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2112
+  (0.1ms) SAVEPOINT active_record_1
2113
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2114
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2115
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2116
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2118
+  (0.1ms) SAVEPOINT active_record_1
2119
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2120
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2121
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2122
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2123
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2124
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND ("aloe_entries"."created_at" BETWEEN '2013-09-13 14:17:48.284607' AND '2013-10-04 14:17:48.284688') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
2125
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
2126
+  (0.7ms) rollback transaction
2127
+  (0.1ms) begin transaction
2128
+  (0.1ms) SAVEPOINT active_record_1
2129
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2131
+  (0.0ms) SAVEPOINT active_record_1
2132
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2133
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2135
+  (0.1ms) SAVEPOINT active_record_1
2136
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2138
+  (0.1ms) SAVEPOINT active_record_1
2139
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+  (0.1ms) SAVEPOINT active_record_1
2142
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2143
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2145
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
2146
+  (0.5ms) rollback transaction
2147
+  (0.1ms) begin transaction
2148
+  (0.1ms) SAVEPOINT active_record_1
2149
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2151
+  (0.0ms) SAVEPOINT active_record_1
2152
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2153
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2155
+  (0.1ms) SAVEPOINT active_record_1
2156
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2158
+  (0.0ms) SAVEPOINT active_record_1
2159
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2161
+  (0.1ms) SAVEPOINT active_record_1
2162
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2163
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2165
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
2166
+  (0.6ms) rollback transaction
2167
+  (0.1ms) begin transaction
2168
+  (0.1ms) SAVEPOINT active_record_1
2169
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2171
+  (0.0ms) SAVEPOINT active_record_1
2172
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2173
+ SQL (1.0ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2175
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:17:48.389392' WHERE "aloe_accounts"."id" = 1
2176
+  (0.1ms) SAVEPOINT active_record_1
2177
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2178
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2179
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2180
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2182
+  (0.1ms) SAVEPOINT active_record_1
2183
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2184
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2185
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2186
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2188
+  (0.1ms) SAVEPOINT active_record_1
2189
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2190
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2191
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2192
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2194
+  (0.1ms) SAVEPOINT active_record_1
2195
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2196
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2197
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2198
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2200
+  (0.1ms) SAVEPOINT active_record_1
2201
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2202
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2203
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2204
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.1ms) SAVEPOINT active_record_1
2207
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2208
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00]]
2209
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2210
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2212
+  (0.1ms) SAVEPOINT active_record_1
2213
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2214
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2215
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2216
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2218
+  (0.1ms) SAVEPOINT active_record_1
2219
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2220
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2221
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2222
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2223
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2224
+  (0.1ms) SAVEPOINT active_record_1
2225
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2226
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2227
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2228
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2229
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2230
+  (0.1ms) SAVEPOINT active_record_1
2231
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2232
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2233
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2234
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2236
+  (0.1ms) SAVEPOINT active_record_1
2237
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2238
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00]]
2239
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2240
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2242
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND (created_at >= '2013-09-05 14:17:48.461193') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
2243
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
2244
+  (0.6ms) rollback transaction
2245
+  (0.1ms) begin transaction
2246
+  (0.1ms) SAVEPOINT active_record_1
2247
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2249
+  (0.0ms) SAVEPOINT active_record_1
2250
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2251
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2253
+  (0.1ms) SAVEPOINT active_record_1
2254
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2256
+  (0.0ms) SAVEPOINT active_record_1
2257
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2259
+  (0.6ms) rollback transaction
2260
+  (0.1ms) begin transaction
2261
+  (0.1ms) SAVEPOINT active_record_1
2262
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2264
+  (0.0ms) SAVEPOINT active_record_1
2265
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2266
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2268
+  (0.1ms) SAVEPOINT active_record_1
2269
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2271
+  (0.0ms) SAVEPOINT active_record_1
2272
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2274
+  (0.5ms) rollback transaction
2275
+  (0.1ms) begin transaction
2276
+  (0.1ms) SAVEPOINT active_record_1
2277
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2279
+  (0.1ms) SAVEPOINT active_record_1
2280
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2281
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2283
+  (0.1ms) SAVEPOINT active_record_1
2284
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2286
+  (0.6ms) rollback transaction
2287
+  (0.1ms) begin transaction
2288
+  (0.1ms) rollback transaction
2289
+  (0.1ms) begin transaction
2290
+  (0.1ms) SAVEPOINT active_record_1
2291
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2293
+  (0.1ms) SAVEPOINT active_record_1
2294
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2295
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2297
+  (0.1ms) SAVEPOINT active_record_1
2298
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2300
+  (0.7ms) rollback transaction
2301
+  (0.1ms) begin transaction
2302
+  (0.1ms) SAVEPOINT active_record_1
2303
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2305
+  (0.1ms) SAVEPOINT active_record_1
2306
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2307
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2309
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
2310
+  (0.7ms) rollback transaction
2311
+  (0.1ms) begin transaction
2312
+  (0.1ms) rollback transaction
2313
+  (0.1ms) begin transaction
2314
+  (0.1ms) rollback transaction
2315
+  (0.1ms) begin transaction
2316
+  (0.1ms) rollback transaction
2317
+  (0.1ms) begin transaction
2318
+  (0.1ms) rollback transaction
2319
+  (0.1ms) begin transaction
2320
+  (0.1ms) rollback transaction
2321
+  (0.1ms) begin transaction
2322
+  (0.1ms) rollback transaction
2323
+  (0.1ms) begin transaction
2324
+  (0.2ms) rollback transaction
2325
+  (0.1ms) begin transaction
2326
+  (0.1ms) rollback transaction
2327
+  (0.1ms) begin transaction
2328
+  (0.1ms) rollback transaction
2329
+  (0.1ms) begin transaction
2330
+  (0.1ms) rollback transaction
2331
+  (0.1ms) begin transaction
2332
+  (0.1ms) rollback transaction
2333
+  (0.1ms) begin transaction
2334
+  (0.1ms) rollback transaction
2335
+  (0.1ms) begin transaction
2336
+  (0.1ms) rollback transaction
2337
+  (0.1ms) begin transaction
2338
+  (0.1ms) rollback transaction
2339
+  (0.1ms) begin transaction
2340
+  (0.1ms) rollback transaction
2341
+  (0.1ms) begin transaction
2342
+  (0.1ms) rollback transaction
2343
+  (0.1ms) begin transaction
2344
+  (0.1ms) rollback transaction
2345
+  (0.1ms) begin transaction
2346
+  (0.1ms) rollback transaction
2347
+  (0.1ms) begin transaction
2348
+  (0.2ms) rollback transaction
2349
+  (0.1ms) begin transaction
2350
+  (0.1ms) rollback transaction
2351
+  (0.1ms) begin transaction
2352
+  (0.1ms) SAVEPOINT active_record_1
2353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2354
+  (0.1ms) rollback transaction
2355
+  (0.1ms) begin transaction
2356
+  (0.1ms) SAVEPOINT active_record_1
2357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2358
+  (0.1ms) rollback transaction
2359
+  (0.1ms) begin transaction
2360
+  (0.1ms) SAVEPOINT active_record_1
2361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.1ms) rollback transaction
2363
+  (0.1ms) begin transaction
2364
+  (0.1ms) rollback transaction
2365
+  (0.1ms) begin transaction
2366
+  (0.1ms) rollback transaction
2367
+  (0.1ms) begin transaction
2368
+  (0.1ms) rollback transaction
2369
+  (0.1ms) begin transaction
2370
+  (0.1ms) rollback transaction
2371
+  (0.1ms) begin transaction
2372
+  (0.1ms) SAVEPOINT active_record_1
2373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2374
+  (0.1ms) rollback transaction
2375
+  (0.1ms) begin transaction
2376
+  (0.1ms) rollback transaction
2377
+  (0.1ms) begin transaction
2378
+  (0.1ms) rollback transaction
2379
+  (0.1ms) begin transaction
2380
+  (0.1ms) rollback transaction
2381
+  (0.1ms) begin transaction
2382
+  (0.1ms) rollback transaction
2383
+  (0.1ms) begin transaction
2384
+  (0.1ms) rollback transaction
2385
+  (0.1ms) begin transaction
2386
+  (0.1ms) rollback transaction
2387
+  (0.1ms) begin transaction
2388
+  (0.1ms) rollback transaction
2389
+  (0.1ms) begin transaction
2390
+  (0.1ms) rollback transaction
2391
+  (0.1ms) begin transaction
2392
+  (0.1ms) rollback transaction
2393
+  (0.1ms) begin transaction
2394
+  (0.1ms) rollback transaction
2395
+  (0.1ms) begin transaction
2396
+  (0.1ms) rollback transaction
2397
+  (0.1ms) begin transaction
2398
+  (0.1ms) rollback transaction
2399
+  (0.1ms) begin transaction
2400
+  (0.1ms) rollback transaction
2401
+  (0.1ms) begin transaction
2402
+  (0.1ms) rollback transaction
2403
+  (0.1ms) begin transaction
2404
+  (0.1ms) rollback transaction
2405
+  (0.1ms) begin transaction
2406
+  (0.1ms) SAVEPOINT active_record_1
2407
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.0ms) SAVEPOINT active_record_1
2410
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2411
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2412
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2413
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2415
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
2416
+  (0.6ms) rollback transaction
2417
+  (0.1ms) begin transaction
2418
+  (0.1ms) SAVEPOINT active_record_1
2419
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2421
+  (0.0ms) SAVEPOINT active_record_1
2422
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2423
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2424
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2425
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2427
+  (0.6ms) rollback transaction
2428
+  (0.1ms) begin transaction
2429
+  (0.1ms) SAVEPOINT active_record_1
2430
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2432
+  (0.0ms) SAVEPOINT active_record_1
2433
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2434
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2435
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2436
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2438
+  (0.6ms) rollback transaction
2439
+  (0.1ms) begin transaction
2440
+  (0.1ms) SAVEPOINT active_record_1
2441
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2442
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2444
+  (0.1ms) SAVEPOINT active_record_1
2445
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2446
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2448
+  (0.0ms) SAVEPOINT active_record_1
2449
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2450
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2451
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2452
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2453
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2454
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2455
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2456
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2457
+ SQL (0.7ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["uuid", "abc4f6000f2d01311360040ccee136f0"]]
2458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2459
+  (0.7ms) rollback transaction
2460
+  (0.1ms) begin transaction
2461
+  (0.1ms) SAVEPOINT active_record_1
2462
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2463
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2465
+  (0.0ms) SAVEPOINT active_record_1
2466
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2467
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2469
+  (0.0ms) SAVEPOINT active_record_1
2470
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2471
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2472
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2473
+  (0.5ms) rollback transaction
2474
+  (0.1ms) begin transaction
2475
+  (0.1ms) SAVEPOINT active_record_1
2476
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2477
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2479
+  (0.1ms) SAVEPOINT active_record_1
2480
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2481
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2483
+  (0.0ms) SAVEPOINT active_record_1
2484
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2485
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2487
+  (0.6ms) rollback transaction
2488
+  (0.1ms) begin transaction
2489
+  (0.1ms) SAVEPOINT active_record_1
2490
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2491
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2493
+  (0.0ms) SAVEPOINT active_record_1
2494
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
2495
+ SQL (0.8ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :USD], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2497
+  (0.6ms) rollback transaction
2498
+  (0.1ms) begin transaction
2499
+  (0.1ms) SAVEPOINT active_record_1
2500
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2501
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2503
+  (0.0ms) SAVEPOINT active_record_1
2504
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2505
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2507
+  (0.1ms) SAVEPOINT active_record_1
2508
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2509
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2511
+  (0.5ms) rollback transaction
2512
+  (0.1ms) begin transaction
2513
+  (0.1ms) SAVEPOINT active_record_1
2514
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2515
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2517
+  (0.1ms) SAVEPOINT active_record_1
2518
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2519
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.6ms) rollback transaction
2522
+  (0.1ms) begin transaction
2523
+  (0.1ms) SAVEPOINT active_record_1
2524
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2525
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2527
+  (0.0ms) SAVEPOINT active_record_1
2528
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2529
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2531
+  (0.1ms) SAVEPOINT active_record_1
2532
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2533
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2534
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2535
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2536
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2537
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2538
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2539
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2540
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["uuid", "abd43bc00f2d01311361040ccee136f0"]]
2541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2542
+  (0.0ms) SAVEPOINT active_record_1
2543
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2544
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2545
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2546
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2547
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2548
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2549
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2550
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2551
+ SQL (0.2ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["uuid", "abd602300f2d01311362040ccee136f0"]]
2552
+ SQL (0.2ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["details", nil]]
2553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2554
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
2555
+  (0.0ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
2556
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
2557
+ Aloe::Transaction Load (0.1ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
2558
+  (1.0ms) rollback transaction
2559
+  (0.1ms) begin transaction
2560
+  (0.1ms) SAVEPOINT active_record_1
2561
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2562
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2564
+  (0.1ms) SAVEPOINT active_record_1
2565
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2566
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2568
+  (0.0ms) SAVEPOINT active_record_1
2569
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2570
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00]]
2571
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2572
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2573
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2574
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2575
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2576
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2577
+ SQL (0.4ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["uuid", "abdb99a00f2d01311363040ccee136f0"]]
2578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2579
+  (0.0ms) SAVEPOINT active_record_1
2580
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2581
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2582
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2583
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2584
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2585
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2586
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2587
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2588
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["uuid", "abde0ee00f2d01311364040ccee136f0"]]
2589
+ SQL (0.1ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["details", nil]]
2590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2591
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2592
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2593
+  (0.7ms) rollback transaction
2594
+  (0.1ms) begin transaction
2595
+  (0.1ms) SAVEPOINT active_record_1
2596
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2598
+  (0.1ms) SAVEPOINT active_record_1
2599
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2600
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
+  (0.6ms) rollback transaction
2603
+  (0.1ms) begin transaction
2604
+  (0.1ms) SAVEPOINT active_record_1
2605
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2606
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["name", "Source"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2608
+  (0.1ms) SAVEPOINT active_record_1
2609
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2610
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2611
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2612
+  (0.0ms) SAVEPOINT active_record_1
2613
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2614
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2615
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2616
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2617
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2618
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2619
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2620
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2621
+ SQL (0.2ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["uuid", "abe3a3600f2d01311365040ccee136f0"]]
2622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2623
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
2624
+  (0.1ms) SAVEPOINT active_record_1
2625
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2626
+ SQL (0.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2628
+  (0.0ms) SAVEPOINT active_record_1
2629
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2630
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2631
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2632
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2633
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2634
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
2635
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 3], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2636
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
2637
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2638
+ SQL (0.3ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["uuid", "abe734800f2d01311366040ccee136f0"]]
2639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2640
+  (0.0ms) SAVEPOINT active_record_1
2641
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2642
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2643
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2644
+  (0.7ms) rollback transaction
2645
+  (0.1ms) begin transaction
2646
+  (0.1ms) SAVEPOINT active_record_1
2647
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2648
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["name", "Test"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2650
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2651
+  (0.5ms) rollback transaction
2652
+  (0.1ms) begin transaction
2653
+  (0.1ms) SAVEPOINT active_record_1
2654
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2656
+  (0.1ms) SAVEPOINT active_record_1
2657
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2658
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00]]
2659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2660
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2661
+  (0.6ms) rollback transaction
2662
+  (2.8ms) DROP TABLE "aloe_accounts"
2663
+  (1.9ms) CREATE TABLE "aloe_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "currency" varchar(3), "state" varchar(255), "configuration" text, "balance" integer DEFAULT 0, "owner_id" integer, "owner_type" varchar(255), "created_at" datetime, "updated_at" datetime)
2664
+  (1.4ms) CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
2665
+  (2.9ms) DROP TABLE "aloe_entries"
2666
+  (1.3ms) CREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) 
2667
+  (1.3ms) CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
2668
+  (3.2ms) DROP TABLE "aloe_transactions"
2669
+  (1.2ms) CREATE TABLE "aloe_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "category" varchar(255), "code" varchar(255), "description" text, "details" text, "credit_entry_id" integer, "debit_entry_id" integer, "adjustment_transaction_id" integer, "created_at" datetime, "updated_at" datetime)
2670
+  (1.1ms) CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
2671
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
2672
+  (1.3ms) CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
2673
+  (1.2ms) CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
2674
+  (1.4ms) CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
2675
+  (1.6ms) DROP TABLE "users"
2676
+  (1.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) 
2677
+  (0.5ms) SELECT version FROM "schema_migrations"
2678
+  (0.1ms) begin transaction
2679
+  (0.1ms) SAVEPOINT active_record_1
2680
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2681
+ SQL (2.0ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Test"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2683
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2684
+  (0.6ms) rollback transaction
2685
+  (0.1ms) begin transaction
2686
+  (0.1ms) SAVEPOINT active_record_1
2687
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2689
+  (0.1ms) SAVEPOINT active_record_1
2690
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2691
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2693
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2694
+  (0.5ms) rollback transaction
2695
+  (0.1ms) begin transaction
2696
+  (0.1ms) SAVEPOINT active_record_1
2697
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2699
+  (0.0ms) SAVEPOINT active_record_1
2700
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2701
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2703
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' ORDER BY "aloe_accounts"."id" ASC LIMIT 1
2704
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
2705
+  (0.6ms) rollback transaction
2706
+  (0.1ms) begin transaction
2707
+  (0.1ms) SAVEPOINT active_record_1
2708
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2709
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2711
+  (0.0ms) SAVEPOINT active_record_1
2712
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2713
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2715
+  (0.1ms) SAVEPOINT active_record_1
2716
+ Aloe::Account Load (0.3ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2717
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2718
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2719
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2720
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2721
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2722
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2723
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2724
+ SQL (0.9ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bccbc4900f2d01311367040ccee136f0"]]
2725
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2726
+  (0.1ms) SAVEPOINT active_record_1
2727
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2728
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2729
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2730
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2731
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2732
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2733
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2734
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2735
+ SQL (0.6ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bccf8be00f2d01311368040ccee136f0"]]
2736
+ SQL (0.3ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["details", nil]]
2737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2738
+  (0.2ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
2739
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
2740
+ Aloe::Transaction Load (0.2ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
2741
+ Aloe::Transaction Load (0.2ms) SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
2742
+  (0.8ms) rollback transaction
2743
+  (0.5ms) begin transaction
2744
+  (0.1ms) SAVEPOINT active_record_1
2745
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2746
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2748
+  (0.1ms) SAVEPOINT active_record_1
2749
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2750
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2752
+  (0.1ms) SAVEPOINT active_record_1
2753
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2754
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2755
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2756
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2757
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2758
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2759
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2760
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2761
+ SQL (0.5ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bcdf01f00f2d01311369040ccee136f0"]]
2762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2763
+  (0.1ms) SAVEPOINT active_record_1
2764
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2765
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2766
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2767
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2768
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2769
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2770
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2771
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2772
+ SQL (0.5ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "rollback"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bce29a000f2d0131136a040ccee136f0"]]
2773
+ SQL (0.3ms) UPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1 [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["details", nil]]
2774
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2775
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2776
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2777
+  (1.0ms) rollback transaction
2778
+  (0.1ms) begin transaction
2779
+  (0.1ms) SAVEPOINT active_record_1
2780
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2781
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2783
+  (0.1ms) SAVEPOINT active_record_1
2784
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2785
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2787
+  (0.1ms) SAVEPOINT active_record_1
2788
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2789
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2790
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2791
+ SQL (0.1ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2792
+ Aloe::Account Load (0.0ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2793
+ SQL (0.1ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2794
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2795
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2796
+ SQL (0.5ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bce85f700f2d0131136b040ccee136f0"]]
2797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2798
+  (10.7ms) rollback transaction
2799
+  (0.2ms) begin transaction
2800
+  (0.1ms) SAVEPOINT active_record_1
2801
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2802
+ SQL (1.2ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2804
+  (0.1ms) SAVEPOINT active_record_1
2805
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2806
+ SQL (1.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2808
+  (3.3ms) rollback transaction
2809
+  (0.1ms) begin transaction
2810
+  (0.1ms) SAVEPOINT active_record_1
2811
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2812
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2814
+  (0.1ms) SAVEPOINT active_record_1
2815
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
2816
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :USD], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2818
+  (1.6ms) rollback transaction
2819
+  (0.1ms) begin transaction
2820
+  (0.1ms) SAVEPOINT active_record_1
2821
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2822
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2824
+  (0.1ms) SAVEPOINT active_record_1
2825
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2826
+ SQL (0.7ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2827
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2828
+  (0.1ms) SAVEPOINT active_record_1
2829
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2830
+ SQL (2.9ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2832
+  (7.9ms) rollback transaction
2833
+  (0.1ms) begin transaction
2834
+  (0.1ms) SAVEPOINT active_record_1
2835
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2836
+ SQL (1.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2838
+  (0.1ms) SAVEPOINT active_record_1
2839
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2840
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2842
+  (0.1ms) SAVEPOINT active_record_1
2843
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2844
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2845
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2846
+  (3.9ms) rollback transaction
2847
+  (0.4ms) begin transaction
2848
+  (0.2ms) SAVEPOINT active_record_1
2849
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2850
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2852
+  (0.1ms) SAVEPOINT active_record_1
2853
+ Aloe::Account Exists (0.3ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2854
+ SQL (0.7ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2856
+  (0.1ms) SAVEPOINT active_record_1
2857
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2858
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2860
+  (0.6ms) rollback transaction
2861
+  (0.1ms) begin transaction
2862
+  (0.1ms) SAVEPOINT active_record_1
2863
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2864
+ SQL (1.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Source"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2866
+  (0.1ms) SAVEPOINT active_record_1
2867
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2868
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Debit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2870
+  (0.1ms) SAVEPOINT active_record_1
2871
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2872
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2873
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2874
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2875
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2876
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2877
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2878
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2879
+ SQL (0.4ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 2], ["debit_entry_id", 1], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bd080e200f2d0131136c040ccee136f0"]]
2880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2881
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
2882
+  (0.1ms) SAVEPOINT active_record_1
2883
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
2884
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["name", "Credit"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2886
+  (0.1ms) SAVEPOINT active_record_1
2887
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2888
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2889
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 2], ["amount", -5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2890
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
2891
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2 [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2892
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
2893
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 3], ["amount", 5000], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2894
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
2895
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3 [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration\nallow_negative_balance: false\n"]]
2896
+ SQL (0.5ms) INSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?) [["category", "deposit"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["credit_entry_id", 4], ["debit_entry_id", 3], ["details", nil], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["uuid", "bd0c7e700f2d0131136d040ccee136f0"]]
2897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2898
+  (0.1ms) SAVEPOINT active_record_1
2899
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2900
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
2901
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2902
+  (0.7ms) rollback transaction
2903
+  (0.1ms) begin transaction
2904
+  (0.1ms) SAVEPOINT active_record_1
2905
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2907
+  (0.1ms) SAVEPOINT active_record_1
2908
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2909
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2911
+  (0.1ms) SAVEPOINT active_record_1
2912
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2914
+  (0.5ms) rollback transaction
2915
+  (0.2ms) begin transaction
2916
+  (0.1ms) SAVEPOINT active_record_1
2917
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2919
+  (0.1ms) SAVEPOINT active_record_1
2920
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2921
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2923
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
2924
+  (1.0ms) rollback transaction
2925
+  (0.2ms) begin transaction
2926
+  (0.1ms) SAVEPOINT active_record_1
2927
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2929
+  (0.1ms) SAVEPOINT active_record_1
2930
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2931
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2933
+  (0.2ms) SAVEPOINT active_record_1
2934
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2936
+  (0.1ms) SAVEPOINT active_record_1
2937
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2938
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2939
+  (0.1ms) SAVEPOINT active_record_1
2940
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2941
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2943
+ Aloe::Account Load (0.4ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
2944
+  (0.7ms) rollback transaction
2945
+  (0.2ms) begin transaction
2946
+  (0.1ms) SAVEPOINT active_record_1
2947
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2948
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2949
+  (0.1ms) SAVEPOINT active_record_1
2950
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2951
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2953
+  (0.1ms) SAVEPOINT active_record_1
2954
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2956
+  (0.6ms) rollback transaction
2957
+  (0.4ms) begin transaction
2958
+  (0.2ms) SAVEPOINT active_record_1
2959
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2961
+  (0.1ms) SAVEPOINT active_record_1
2962
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
2963
+ SQL (0.7ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00]]
2964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2965
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:18:17.972294' WHERE "aloe_accounts"."id" = 1
2966
+  (0.1ms) SAVEPOINT active_record_1
2967
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2968
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00]]
2969
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2970
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2971
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2972
+  (0.2ms) SAVEPOINT active_record_1
2973
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2974
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00]]
2975
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2976
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2977
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2978
+  (0.1ms) SAVEPOINT active_record_1
2979
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2980
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00]]
2981
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2982
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2984
+  (0.1ms) SAVEPOINT active_record_1
2985
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2986
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
2987
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2988
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2989
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2990
+  (0.1ms) SAVEPOINT active_record_1
2991
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2992
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
2993
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
2994
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
2995
+  (0.6ms) RELEASE SAVEPOINT active_record_1
2996
+  (0.1ms) SAVEPOINT active_record_1
2997
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
2998
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
2999
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3000
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3002
+  (0.1ms) SAVEPOINT active_record_1
3003
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3004
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3005
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3006
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3008
+  (0.1ms) SAVEPOINT active_record_1
3009
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3010
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3011
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3012
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3014
+  (0.1ms) SAVEPOINT active_record_1
3015
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3016
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3017
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3018
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3020
+  (0.1ms) SAVEPOINT active_record_1
3021
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3022
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3023
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3024
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3026
+  (0.1ms) SAVEPOINT active_record_1
3027
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3028
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3029
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3030
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3031
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3032
+ Aloe::Entry Load (0.3ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND ("aloe_entries"."created_at" BETWEEN '2013-09-13 14:18:18.084715' AND '2013-10-04 14:18:18.084875') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
3033
+ Aloe::Account Load (0.3ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
3034
+  (0.6ms) rollback transaction
3035
+  (0.1ms) begin transaction
3036
+  (0.1ms) rollback transaction
3037
+  (0.1ms) begin transaction
3038
+  (0.1ms) SAVEPOINT active_record_1
3039
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3041
+  (0.1ms) SAVEPOINT active_record_1
3042
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
3043
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3045
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:18:18.111614' WHERE "aloe_accounts"."id" = 1
3046
+  (0.1ms) SAVEPOINT active_record_1
3047
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3048
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 765], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3049
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3050
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3051
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3052
+  (0.1ms) SAVEPOINT active_record_1
3053
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3054
+ SQL (0.6ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 927], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3055
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3056
+ SQL (0.4ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3057
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3058
+  (0.1ms) SAVEPOINT active_record_1
3059
+ Aloe::Account Load (0.3ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3060
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3061
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3062
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3064
+  (0.1ms) SAVEPOINT active_record_1
3065
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3066
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -1239], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3067
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3068
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3070
+  (0.1ms) SAVEPOINT active_record_1
3071
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3072
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 212], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3073
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3074
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3076
+  (0.1ms) SAVEPOINT active_record_1
3077
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3078
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -232], ["created_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00]]
3079
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3080
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3082
+  (0.1ms) SAVEPOINT active_record_1
3083
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3084
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 23], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3085
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3086
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.1ms) SAVEPOINT active_record_1
3089
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3090
+ SQL (0.3ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 123], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3091
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3092
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3094
+  (0.1ms) SAVEPOINT active_record_1
3095
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3096
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 145], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3097
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3098
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3100
+  (0.1ms) SAVEPOINT active_record_1
3101
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3102
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 7864], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3103
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3104
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3106
+  (0.1ms) SAVEPOINT active_record_1
3107
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3108
+ SQL (0.2ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", -7231], ["created_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00]]
3109
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3110
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3112
+ Aloe::Entry Load (0.2ms) SELECT "aloe_entries".* FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? AND (created_at >= '2013-09-05 14:18:18.259963') ORDER BY aloe_entries.created_at DESC [["account_id", 1]]
3113
+ Aloe::Account Load (0.4ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
3114
+  (0.6ms) rollback transaction
3115
+  (0.1ms) begin transaction
3116
+  (0.1ms) SAVEPOINT active_record_1
3117
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3119
+  (0.0ms) SAVEPOINT active_record_1
3120
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
3121
+ SQL (0.6ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3123
+  (0.1ms) SAVEPOINT active_record_1
3124
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3126
+  (0.1ms) SAVEPOINT active_record_1
3127
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3129
+  (0.6ms) rollback transaction
3130
+  (0.1ms) begin transaction
3131
+  (0.1ms) SAVEPOINT active_record_1
3132
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3134
+  (0.0ms) SAVEPOINT active_record_1
3135
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
3136
+ SQL (0.4ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3138
+  (0.1ms) SAVEPOINT active_record_1
3139
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3141
+  (0.1ms) SAVEPOINT active_record_1
3142
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3144
+  (0.5ms) rollback transaction
3145
+  (0.1ms) begin transaction
3146
+  (0.1ms) SAVEPOINT active_record_1
3147
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3149
+  (0.1ms) SAVEPOINT active_record_1
3150
+ Aloe::Account Exists (0.1ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 1 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
3151
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", :GBP], ["owner_id", 1], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3153
+  (0.1ms) SAVEPOINT active_record_1
3154
+ SQL (0.3ms) UPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3156
+  (0.1ms) SAVEPOINT active_record_1
3157
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3159
+  (0.1ms) SAVEPOINT active_record_1
3160
+ Aloe::Account Exists (0.2ms) SELECT 1 AS one FROM "aloe_accounts" WHERE "aloe_accounts"."owner_type" = 'User' AND "aloe_accounts"."owner_id" = 2 AND "aloe_accounts"."currency" = 'GBP' AND "aloe_accounts"."name" IS NULL AND (state != 'closed') LIMIT 1
3161
+ SQL (0.3ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", :GBP], ["owner_id", 2], ["owner_type", "User"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3163
+ Aloe::Account Load (0.2ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
3164
+  (0.6ms) rollback transaction
3165
+  (0.1ms) begin transaction
3166
+  (0.1ms) SAVEPOINT active_record_1
3167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3168
+  (0.1ms) rollback transaction
3169
+  (0.1ms) begin transaction
3170
+  (0.1ms) SAVEPOINT active_record_1
3171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3172
+  (0.1ms) rollback transaction
3173
+  (0.1ms) begin transaction
3174
+  (0.1ms) SAVEPOINT active_record_1
3175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3176
+  (0.1ms) rollback transaction
3177
+  (0.1ms) begin transaction
3178
+  (0.1ms) SAVEPOINT active_record_1
3179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3180
+  (0.1ms) rollback transaction
3181
+  (0.1ms) begin transaction
3182
+  (0.3ms) rollback transaction
3183
+  (0.1ms) begin transaction
3184
+  (0.1ms) rollback transaction
3185
+  (0.1ms) begin transaction
3186
+  (0.1ms) rollback transaction
3187
+  (0.1ms) begin transaction
3188
+  (0.1ms) rollback transaction
3189
+  (0.1ms) begin transaction
3190
+  (0.1ms) SAVEPOINT active_record_1
3191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3192
+  (0.1ms) rollback transaction
3193
+  (0.1ms) begin transaction
3194
+  (0.1ms) SAVEPOINT active_record_1
3195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3196
+  (0.1ms) rollback transaction
3197
+  (0.1ms) begin transaction
3198
+  (0.1ms) SAVEPOINT active_record_1
3199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3200
+  (0.1ms) rollback transaction
3201
+  (0.2ms) begin transaction
3202
+  (0.1ms) SAVEPOINT active_record_1
3203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3204
+  (0.1ms) rollback transaction
3205
+  (0.1ms) begin transaction
3206
+  (0.1ms) rollback transaction
3207
+  (0.1ms) begin transaction
3208
+  (0.1ms) rollback transaction
3209
+  (0.1ms) begin transaction
3210
+  (0.1ms) rollback transaction
3211
+  (0.1ms) begin transaction
3212
+  (0.1ms) rollback transaction
3213
+  (0.1ms) begin transaction
3214
+  (0.1ms) rollback transaction
3215
+  (0.1ms) begin transaction
3216
+  (0.1ms) SAVEPOINT active_record_1
3217
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3219
+  (0.0ms) SAVEPOINT active_record_1
3220
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3221
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3222
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3223
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3225
+  (0.1ms) SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
3226
+  (0.6ms) rollback transaction
3227
+  (0.1ms) begin transaction
3228
+  (0.1ms) SAVEPOINT active_record_1
3229
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3231
+  (0.0ms) SAVEPOINT active_record_1
3232
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3233
+ SQL (0.4ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3234
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3235
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3237
+  (0.6ms) rollback transaction
3238
+  (0.1ms) begin transaction
3239
+  (0.1ms) SAVEPOINT active_record_1
3240
+ SQL (0.5ms) INSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["currency", "GBP"], ["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3241
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3242
+  (0.1ms) SAVEPOINT active_record_1
3243
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
3244
+ SQL (0.5ms) INSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 1], ["amount", 500], ["created_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00]]
3245
+ Aloe::Account Load (0.1ms) SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
3246
+ SQL (0.2ms) UPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1 [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
3247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3248
+  (0.6ms) rollback transaction
3249
+  (0.1ms) begin transaction
3250
+  (0.1ms) rollback transaction
3251
+  (0.1ms) begin transaction
3252
+  (0.1ms) rollback transaction
3253
+  (0.1ms) begin transaction
3254
+  (0.1ms) rollback transaction
3255
+  (0.1ms) begin transaction
3256
+  (0.1ms) rollback transaction
3257
+  (0.1ms) begin transaction
3258
+  (0.1ms) rollback transaction
3259
+  (0.1ms) begin transaction
3260
+  (0.1ms) rollback transaction
3261
+  (0.1ms) begin transaction
3262
+  (0.1ms) rollback transaction
3263
+  (0.1ms) begin transaction
3264
+  (0.1ms) rollback transaction
3265
+  (0.1ms) begin transaction
3266
+  (0.1ms) rollback transaction
3267
+  (0.1ms) begin transaction
3268
+  (0.1ms) rollback transaction
3269
+  (0.1ms) begin transaction
3270
+  (0.1ms) rollback transaction
3271
+  (0.1ms) begin transaction
3272
+  (0.1ms) rollback transaction
3273
+  (0.1ms) begin transaction
3274
+  (0.1ms) rollback transaction
3275
+  (0.1ms) begin transaction
3276
+  (0.2ms) rollback transaction
3277
+  (0.1ms) begin transaction
3278
+  (0.1ms) rollback transaction
3279
+  (0.1ms) begin transaction
3280
+  (0.1ms) rollback transaction
3281
+  (0.1ms) begin transaction
3282
+  (0.1ms) rollback transaction
3283
+  (0.1ms) begin transaction
3284
+  (0.1ms) rollback transaction
3285
+  (0.1ms) begin transaction
3286
+  (0.1ms) rollback transaction
3287
+  (0.1ms) begin transaction
3288
+  (0.1ms) rollback transaction
3289
+  (0.1ms) begin transaction
3290
+  (0.1ms) rollback transaction
3291
+  (0.1ms) begin transaction
3292
+  (0.1ms) rollback transaction
3293
+  (0.1ms) begin transaction
3294
+  (0.1ms) rollback transaction
3295
+  (0.1ms) begin transaction
3296
+  (0.1ms) rollback transaction
3297
+  (0.1ms) begin transaction
3298
+  (0.1ms) rollback transaction
3299
+  (0.1ms) begin transaction
3300
+  (0.1ms) rollback transaction
3301
+  (0.1ms) begin transaction
3302
+  (0.1ms) rollback transaction
3303
+  (0.1ms) begin transaction
3304
+  (0.1ms) rollback transaction
3305
+  (0.1ms) begin transaction
3306
+  (0.1ms) rollback transaction
3307
+  (0.1ms) begin transaction
3308
+  (0.1ms) rollback transaction