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.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/Rakefile +26 -0
- data/lib/aloe.rb +14 -0
- data/lib/aloe/account.rb +176 -0
- data/lib/aloe/account_configuration.rb +21 -0
- data/lib/aloe/account_repository.rb +45 -0
- data/lib/aloe/engine.rb +6 -0
- data/lib/aloe/entry.rb +59 -0
- data/lib/aloe/inoperable_account_error.rb +11 -0
- data/lib/aloe/insufficient_balance_error.rb +14 -0
- data/lib/aloe/invalid_amount_error.rb +3 -0
- data/lib/aloe/invalid_currency_error.rb +16 -0
- data/lib/aloe/ledger.rb +83 -0
- data/lib/aloe/ledger_entry.rb +83 -0
- data/lib/aloe/reports/account_history.rb +32 -0
- data/lib/aloe/reports/accounts_list.rb +39 -0
- data/lib/aloe/transaction.rb +80 -0
- data/lib/aloe/transaction_rollback.rb +34 -0
- data/lib/aloe/version.rb +3 -0
- data/lib/generators/aloe/aloe_generator.rb +17 -0
- data/lib/generators/aloe/templates/migration.rb +44 -0
- data/lib/tasks/aloe_tasks.rake +24 -0
- data/spec/aloe/account_configuration_spec.rb +21 -0
- data/spec/aloe/account_integration_spec.rb +144 -0
- data/spec/aloe/account_spec.rb +189 -0
- data/spec/aloe/accounting_integration_spec.rb +172 -0
- data/spec/aloe/entry_spec.rb +43 -0
- data/spec/aloe/ledger_entry_spec.rb +105 -0
- data/spec/aloe/ledger_spec.rb +98 -0
- data/spec/aloe/transaction_rollback_spec.rb +49 -0
- data/spec/aloe/transaction_spec.rb +59 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20131003200954_create_users.rb +8 -0
- data/spec/dummy/db/migrate/20131003203647_create_aloe_tables.rb +43 -0
- data/spec/dummy/db/schema.rb +63 -0
- data/spec/dummy/log/test.log +3308 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/test/fixtures/users.yml +11 -0
- data/spec/dummy/test/models/user_test.rb +7 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/account_helpers.rb +17 -0
- data/spec/support/user.rb +1 -0
- 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,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = 'e4625cca6febcf009b31c4d7fd55a7d7d0d698546d69f009e9df776b746779a360a00d889cde0346bb6d712474955f04bd6cee71adc1b60cd10dbb58b4010f62'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
Binary file
|
@@ -0,0 +1,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
|
+
[1m[36m (1.6ms)[0m [1mCREATE 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) [0m
|
2
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")
|
3
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
4
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
5
|
+
[1m[36m (1.1ms)[0m [1mCREATE 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) [0m
|
6
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")
|
7
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")[0m
|
8
|
+
[1m[35m (1.5ms)[0m CREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")
|
9
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")[0m
|
10
|
+
[1m[35m (1.6ms)[0m CREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")
|
11
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "users"[0m
|
12
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
|
13
|
+
[1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
14
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
15
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
17
|
+
[1m[35m (1.4ms)[0m DROP TABLE "aloe_entries"
|
18
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
19
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
20
|
+
[1m[36m (1.7ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
21
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
23
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
24
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
25
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
26
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
27
|
+
[1m[35m (1.4ms)[0m DROP TABLE "users"
|
28
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
29
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
30
|
+
[1m[36m (3.9ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
31
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
33
|
+
[1m[35m (2.9ms)[0m DROP TABLE "aloe_entries"
|
34
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
35
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
36
|
+
[1m[36m (4.6ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
37
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36m (1.7ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
39
|
+
[1m[35m (1.6ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
40
|
+
[1m[36m (1.7ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
41
|
+
[1m[35m (1.6ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
42
|
+
[1m[36m (1.7ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
43
|
+
[1m[35m (1.3ms)[0m DROP TABLE "users"
|
44
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
45
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
46
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
47
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
49
|
+
[1m[35m (1.5ms)[0m DROP TABLE "aloe_entries"
|
50
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
51
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
52
|
+
[1m[36m (1.7ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
53
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
55
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
56
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
57
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
58
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
59
|
+
[1m[35m (1.2ms)[0m DROP TABLE "users"
|
60
|
+
[1m[36m (10.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
61
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
62
|
+
[1m[36m (1.8ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
63
|
+
[1m[35m (1.8ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
65
|
+
[1m[35m (1.7ms)[0m DROP TABLE "aloe_entries"
|
66
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
67
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
68
|
+
[1m[36m (1.9ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
69
|
+
[1m[35m (1.8ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
71
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
72
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
73
|
+
[1m[35m (1.6ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
74
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
75
|
+
[1m[35m (1.4ms)[0m DROP TABLE "users"
|
76
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
77
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
78
|
+
[1m[36m (3.2ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
79
|
+
[1m[35m (1.8ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
81
|
+
[1m[35m (2.1ms)[0m DROP TABLE "aloe_entries"
|
82
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
83
|
+
[1m[35m (1.5ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
84
|
+
[1m[36m (3.5ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
85
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
87
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
88
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
89
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
90
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
91
|
+
[1m[35m (1.7ms)[0m DROP TABLE "users"
|
92
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
93
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
94
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
95
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
96
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
97
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
100
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
103
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
104
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
107
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
109
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
110
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
113
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
114
|
+
[1m[36m (1.4ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
117
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
118
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
119
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
120
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
123
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
128
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
129
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
130
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
131
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
133
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
138
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
141
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
145
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
149
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
151
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
152
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
153
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
155
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
159
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
160
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
163
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
164
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
166
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
167
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
168
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 1]]
|
169
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
172
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
174
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
175
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
176
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
178
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
179
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
180
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
182
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
183
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
185
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
186
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
187
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
189
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
191
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
192
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
193
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
194
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
195
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
199
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
200
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
201
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
203
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
204
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
211
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
212
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
213
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
215
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
219
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
221
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
222
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
223
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
225
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
226
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
227
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
231
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
233
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
235
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
237
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1[0m [["id", 2]]
|
241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
242
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
243
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
246
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
247
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
248
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
250
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
|
252
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
|
254
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3[0m [["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
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
258
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
259
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
260
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
261
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
263
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
264
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
266
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
267
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
270
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "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[0m
|
271
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
272
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
274
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
275
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
276
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
280
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
282
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
283
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
284
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
286
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
287
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
288
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
290
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:28 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
291
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
293
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
294
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
295
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
296
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
297
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
301
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
303
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
304
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
305
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
307
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
309
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
310
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
311
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
313
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
314
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1[0m
|
315
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
317
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
318
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
319
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
320
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
321
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
324
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
325
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
327
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
328
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
329
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
330
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
331
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
333
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
334
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
335
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
337
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
338
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
339
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
342
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
343
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
345
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
346
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
347
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
348
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
349
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
352
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
353
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
357
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
358
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
359
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
361
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
362
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
363
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
366
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
367
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
369
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
371
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
373
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
376
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
377
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
378
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
380
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
381
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
382
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
384
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
385
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1[0m [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["details", nil]]
|
387
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
388
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 1]]
|
389
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
|
390
|
+
[1m[36mAloe::Transaction Load (0.1ms)[0m [1mSELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1[0m
|
391
|
+
[1m[35mAloe::Transaction Load (0.1ms)[0m SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
|
392
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
393
|
+
[1m[35m (0.1ms)[0m begin transaction
|
394
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
396
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
398
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
399
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
400
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
406
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
407
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
408
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
410
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
411
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
414
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
415
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
417
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
419
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
421
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
425
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
426
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
427
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
429
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
430
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
431
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
433
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
434
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
435
|
+
[1m[35m (0.1ms)[0m begin transaction
|
436
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
437
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
439
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
440
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
441
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
443
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
446
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
448
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
449
|
+
[1m[35m (0.1ms)[0m begin transaction
|
450
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
452
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
454
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
455
|
+
[1m[35m (0.1ms)[0m begin transaction
|
456
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
458
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
459
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
461
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
462
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
463
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
465
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
466
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
468
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
469
|
+
[1m[35m (0.1ms)[0m begin transaction
|
470
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
474
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
475
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
477
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 07:29:29.206413' WHERE "aloe_accounts"."id" = 1
|
478
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
479
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
480
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
482
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 765], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
483
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
484
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
485
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
486
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
488
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
489
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
490
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
491
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
492
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
494
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
495
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
496
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
497
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
498
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
500
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 576], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
501
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
502
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
503
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
504
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
506
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 788], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
507
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
508
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
510
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
512
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 556], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
513
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
514
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
515
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
516
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
518
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 579], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
519
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
520
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
521
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
522
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
524
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 702], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
526
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
527
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
528
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
530
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 847], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
532
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
533
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
534
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
536
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
539
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
540
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
542
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
543
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
544
|
+
[1m[36mAloe::Entry Load (0.3ms)[0m [1mSELECT "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[0m [["account_id", 1]]
|
545
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
|
546
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
547
|
+
[1m[35m (0.1ms)[0m begin transaction
|
548
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
549
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
552
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
553
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
555
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 07:29:29.303895' WHERE "aloe_accounts"."id" = 1
|
556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
557
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
558
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
560
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 765], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
561
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
563
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
564
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
566
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
567
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
568
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
569
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
570
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
572
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
573
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
576
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
578
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 576], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
579
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
580
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
581
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
582
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
584
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 788], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
585
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
587
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
588
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
590
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 556], ["updated_at", Wed, 04 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
591
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
594
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
596
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 579], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
597
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
598
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
599
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
600
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
602
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 702], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
603
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
604
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
605
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
606
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
608
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 847], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
609
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
610
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
611
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
612
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
614
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
615
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
617
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
618
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
620
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
621
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
622
|
+
[1m[36mAloe::Entry Load (0.2ms)[0m [1mSELECT "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[0m [["account_id", 1]]
|
623
|
+
[1m[35mAloe::Account Load (0.3ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
|
624
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
626
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
627
|
+
[1m[35m (0.1ms)[0m begin transaction
|
628
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
629
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
631
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
632
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
633
|
+
[1m[35mSQL (1.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
635
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
636
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
637
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
639
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
641
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
642
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
643
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
644
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
646
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
647
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
650
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
651
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
653
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
654
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
655
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
656
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
659
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
662
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1[0m
|
663
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
664
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
665
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
666
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
669
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
672
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
673
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
675
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
676
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "open"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
677
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
678
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
679
|
+
[1m[35m (0.1ms)[0m begin transaction
|
680
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
681
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
683
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
684
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
685
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
687
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
688
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
689
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
690
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
691
|
+
[1m[35mSQL (2.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
693
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
694
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
695
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
697
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
|
698
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
699
|
+
[1m[35m (0.1ms)[0m begin transaction
|
700
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
701
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
703
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
704
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
705
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
708
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 07:29:29 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
709
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
710
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
711
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
713
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
714
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
715
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
717
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
|
718
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
720
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
722
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
724
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
725
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
726
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (1.6ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
728
|
+
[1m[35m (4.0ms)[0m DROP TABLE "aloe_entries"
|
729
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
730
|
+
[1m[35m (2.1ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
731
|
+
[1m[36m (5.2ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
732
|
+
[1m[35m (13.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
734
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
735
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
736
|
+
[1m[35m (1.6ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
737
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
738
|
+
[1m[35m (1.6ms)[0m DROP TABLE "users"
|
739
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
740
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
742
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
744
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
745
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
746
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
748
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
749
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
750
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
751
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
752
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
753
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
755
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
756
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
759
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
760
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
762
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
763
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
764
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
765
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
767
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
768
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
770
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
771
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
772
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
774
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
775
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
776
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
778
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
780
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
781
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
782
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
784
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
|
785
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
787
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
788
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
791
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
792
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
794
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
797
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
798
|
+
[1m[35m (0.1ms)[0m begin transaction
|
799
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
800
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
802
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
803
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
804
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
806
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
|
807
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
808
|
+
[1m[35m (0.1ms)[0m begin transaction
|
809
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
810
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
813
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
814
|
+
[1m[35mSQL (3.9ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
817
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
818
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
819
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
823
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
824
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
826
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
827
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
829
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
830
|
+
[1m[35mAloe::Account Exists (0.7ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
833
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:04:11.199087' WHERE "aloe_accounts"."id" = 1[0m
|
834
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
835
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
836
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
838
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
840
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
841
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
842
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
844
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
846
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
847
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
848
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
850
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
852
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
853
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
854
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
856
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
858
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
859
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
860
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
862
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
865
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
866
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
868
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
870
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
871
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
872
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
874
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
876
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
877
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
878
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
880
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
882
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
883
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
884
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
886
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
888
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
890
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
892
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
894
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
895
|
+
[1m[36mAloe::Account Load (38.9ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
896
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
898
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
900
|
+
[1m[35mAloe::Entry Load (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
902
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
903
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
904
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
905
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
908
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
912
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
914
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
915
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
916
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
917
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
920
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
923
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:04:11.374034' WHERE "aloe_accounts"."id" = 1[0m
|
924
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
926
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
928
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
931
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
932
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
934
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
936
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
937
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
938
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
940
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
942
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
943
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
944
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
946
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
948
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
949
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
950
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
952
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
954
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
955
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
956
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
958
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
960
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
961
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
962
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
964
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
966
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
967
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
968
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
970
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
972
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
973
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
974
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
976
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
979
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
980
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
982
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
985
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
986
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
988
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
990
|
+
[1m[35mAloe::Entry Load (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
992
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
993
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
994
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
995
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
997
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
998
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1001
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1002
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1005
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1007
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1008
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1011
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')[0m
|
1012
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1014
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1015
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1016
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1018
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1019
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1020
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1022
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1023
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1024
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1026
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1028
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1030
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1033
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1[0m [["id", 2]]
|
1034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1035
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1036
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1038
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1039
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1040
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1041
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1043
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["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
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
|
1045
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
|
1047
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3[0m [["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
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1050
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1051
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1052
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1053
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1054
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1055
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1056
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1057
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1058
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1061
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1062
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1065
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1066
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1068
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1070
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1072
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1075
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1076
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1078
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1079
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1081
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1082
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1084
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1086
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1087
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1089
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1090
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1091
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1092
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1093
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1095
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1096
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1097
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1099
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1100
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1101
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1102
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1103
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1105
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1106
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1107
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1109
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1110
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
|
1111
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1113
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1115
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1116
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1117
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1119
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1120
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1121
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1123
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1125
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1127
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1130
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1133
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1134
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1135
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1137
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1140
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1142
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1143
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
1144
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1146
|
+
[1m[35mAloe::Account Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
1148
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1151
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1152
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1154
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1155
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1157
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1158
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1160
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1161
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
1162
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1164
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1168
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1169
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1172
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1173
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1175
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1176
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1177
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1179
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1180
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1181
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1183
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1184
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1187
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1188
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1190
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1192
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1194
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1198
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
|
1199
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 2]]
|
1200
|
+
[1m[35mAloe::Transaction Load (0.1ms)[0m SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
|
1201
|
+
[1m[36mAloe::Transaction Load (0.3ms)[0m [1mSELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1[0m
|
1202
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1203
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1204
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1205
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1206
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1208
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1209
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1210
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1213
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1214
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1216
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1218
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1220
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1224
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1225
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1227
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1228
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1229
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1231
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1232
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1[0m [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["details", nil]]
|
1234
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1235
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1236
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1237
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1239
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1241
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1243
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1245
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1246
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1247
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1251
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1252
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1253
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1255
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1257
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1258
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1259
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1261
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1262
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1263
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1265
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1267
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1268
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1269
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1271
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1272
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1273
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1274
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1275
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1277
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1278
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1280
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1281
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1282
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1284
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1286
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1289
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1292
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1293
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1295
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:04:11 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1296
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1297
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1298
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1299
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1300
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1302
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1303
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1304
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1306
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1308
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
|
1309
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1310
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1311
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1313
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1314
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1315
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1317
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1318
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1319
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1321
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1323
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1325
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1327
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1328
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1330
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1331
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1332
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1333
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1334
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1336
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1339
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1340
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1341
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1342
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1343
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1345
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1349
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1352
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1353
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1354
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1355
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1356
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1357
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1359
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1360
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1361
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1367
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1368
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1369
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1371
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1372
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
1373
|
+
[1m[35m (1.8ms)[0m 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
|
+
[1m[36m (2.4ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
1375
|
+
[1m[35m (2.4ms)[0m DROP TABLE "aloe_entries"
|
1376
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
1377
|
+
[1m[35m (1.8ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
1378
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
1379
|
+
[1m[35m (1.3ms)[0m 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
|
+
[1m[36m (2.1ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
1381
|
+
[1m[35m (1.8ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
1382
|
+
[1m[36m (1.9ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
1383
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
1384
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
1385
|
+
[1m[35m (1.7ms)[0m DROP TABLE "users"
|
1386
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
1387
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
1388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1389
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1390
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1391
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1393
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1394
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1395
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1396
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1397
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1398
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1400
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1401
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1403
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1404
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1405
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1407
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1409
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1410
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1412
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1413
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1414
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1416
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1417
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1418
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 1]]
|
1419
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1420
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1421
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1422
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1424
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1425
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1426
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1428
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1429
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1430
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1433
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1435
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1436
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1437
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1439
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1441
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1443
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1444
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1445
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1446
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1447
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1449
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1450
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1451
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1454
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1455
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1456
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1457
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1458
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1461
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1462
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1463
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1466
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1467
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1469
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1472
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1474
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1475
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1478
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:13:19.310490' WHERE "aloe_accounts"."id" = 1[0m
|
1479
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1480
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1481
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1483
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1486
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1487
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1489
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1491
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1492
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1493
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1495
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1498
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1499
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1501
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1503
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1504
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1505
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1507
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1509
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1510
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1511
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1513
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1515
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1516
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1517
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1519
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1521
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1522
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1523
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1525
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1527
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1528
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1529
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1531
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1534
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1535
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1537
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1540
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1541
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1543
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1545
|
+
[1m[35mAloe::Entry Load (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
1547
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1548
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1549
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1550
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1552
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1553
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1557
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1559
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1560
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1563
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1566
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))[0m
|
1567
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1569
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1570
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1572
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1573
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1576
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:13:19.424973' WHERE "aloe_accounts"."id" = 1[0m
|
1577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1578
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1579
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1581
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1584
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1585
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1587
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1590
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1591
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1593
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1595
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1596
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1597
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1599
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1601
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1602
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1603
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1605
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1608
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1609
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1611
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1613
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1614
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1615
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1617
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1619
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1620
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1621
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1623
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1625
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1626
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1627
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1629
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1631
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1632
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1633
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1635
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1637
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1638
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1639
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1641
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1643
|
+
[1m[35mAloe::Entry Load (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
1645
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1646
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1647
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1648
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1650
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1651
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1655
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1658
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1659
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1660
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1661
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1662
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1663
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1665
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1666
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
1667
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1669
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1670
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1671
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1672
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1673
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1675
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1676
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1677
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1678
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1680
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1681
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1684
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1685
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1687
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1688
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1690
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1692
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1693
|
+
[1m[35mAloe::Account Exists (0.9ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1696
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1697
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1699
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1700
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1701
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1702
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1704
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1705
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1708
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1[0m
|
1709
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1712
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1715
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1718
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1719
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1721
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1722
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1724
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1725
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1728
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')[0m
|
1729
|
+
[1m[35m (2.1ms)[0m rollback transaction
|
1730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1731
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1735
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1736
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1737
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1739
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1740
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1741
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1745
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1746
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1749
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1750
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1751
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1752
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1753
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1755
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1756
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1757
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1758
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1759
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1761
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1765
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1766
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1767
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1768
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1769
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1770
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1771
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1772
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1773
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1774
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1775
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1776
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1777
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1779
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1781
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1783
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1784
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1785
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1786
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1787
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1788
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1789
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1790
|
+
[1m[36mAloe::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1791
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1793
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1794
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1795
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1796
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1797
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1799
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1800
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
1801
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1803
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1805
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1806
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1807
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1808
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1810
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1811
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1812
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1814
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1815
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1816
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1818
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1819
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1820
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1822
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:19 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1823
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1825
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1826
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1827
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1828
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1829
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1831
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1832
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1833
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1835
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1836
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1837
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1838
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1839
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1841
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1842
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1843
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1845
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1846
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1847
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1848
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1849
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1850
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1851
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1852
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1853
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1855
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1856
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1[0m
|
1857
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1859
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1860
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1861
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1862
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1863
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1865
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1866
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1867
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1869
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1870
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1871
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1873
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1875
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1876
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1877
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1879
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1880
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."id" != 1 AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1881
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1883
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1884
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1885
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1887
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
1888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1889
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1890
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1892
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1893
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1896
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1899
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1900
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1902
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1903
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1904
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1907
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1908
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1910
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1911
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1912
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1914
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1917
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
|
1918
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1919
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1920
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1922
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1923
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1924
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1925
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1927
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 3]]
|
1929
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 3]]
|
1931
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1934
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1935
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1936
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1937
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1938
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1939
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1941
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1942
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1944
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1945
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
1946
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1948
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1949
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
1950
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
1952
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1953
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1954
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
1956
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
1957
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1959
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1960
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1961
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1963
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1965
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1967
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1971
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
|
1972
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 2]]
|
1973
|
+
[1m[35mAloe::Transaction Load (0.1ms)[0m SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
|
1974
|
+
[1m[36mAloe::Transaction Load (0.2ms)[0m [1mSELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1[0m
|
1975
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1976
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1977
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1978
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1979
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1982
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
1983
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1985
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1986
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
1987
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
1989
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
1991
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
1993
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1997
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
1998
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2000
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2001
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2002
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2004
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2005
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1[0m [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:13:20 UTC +00:00], ["details", nil]]
|
2007
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2008
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2009
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2010
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2011
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2012
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2013
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2014
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2015
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2016
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2017
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
2018
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
2020
|
+
[1m[35m (2.3ms)[0m DROP TABLE "aloe_entries"
|
2021
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
2022
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
2023
|
+
[1m[36m (4.0ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
2024
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
2026
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
2027
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
2028
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
2029
|
+
[1m[36m (1.5ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
2030
|
+
[1m[35m (1.9ms)[0m DROP TABLE "users"
|
2031
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
2032
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
2033
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2035
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2036
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2038
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2039
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2040
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2042
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2043
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2044
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2045
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2047
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2048
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2049
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2050
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2051
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2053
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2054
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2057
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:17:48.176465' WHERE "aloe_accounts"."id" = 1[0m
|
2058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2059
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2060
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.3ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2062
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2064
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2065
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2066
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2068
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2070
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2071
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2072
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2074
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2076
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2077
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2078
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2080
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2083
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2084
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2086
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2088
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2089
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2090
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2092
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2094
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2095
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2096
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2098
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2101
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2102
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2104
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2106
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2107
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2108
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2110
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2112
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2113
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2114
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2116
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2118
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2119
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2120
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2122
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2124
|
+
[1m[35mAloe::Entry Load (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
2126
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2128
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2129
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2131
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2132
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2136
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2138
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2139
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2141
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2142
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2145
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))[0m
|
2146
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2147
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2148
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2149
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2151
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2152
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2156
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2158
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2159
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2162
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2165
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')[0m
|
2166
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2169
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2172
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2175
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:17:48.389392' WHERE "aloe_accounts"."id" = 1[0m
|
2176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2177
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2178
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2180
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2183
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2184
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2186
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2188
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2189
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2190
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2192
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2194
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2195
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2196
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2198
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2201
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2202
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2204
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2206
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2207
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2208
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2210
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2213
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2214
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2216
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2219
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2220
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2222
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2224
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2225
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2226
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2228
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2231
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2232
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2234
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2236
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2237
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2238
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2240
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2242
|
+
[1m[35mAloe::Entry Load (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')[0m
|
2244
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2246
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2247
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2250
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2253
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2254
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2256
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2257
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2259
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2262
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2265
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
2266
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2268
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2269
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2270
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2271
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2272
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2274
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2276
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2277
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2279
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2280
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2283
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2284
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2286
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2290
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2291
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2293
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2294
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2298
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2300
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2302
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2303
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2305
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2306
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2309
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1[0m
|
2310
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2314
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2315
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2316
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2318
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2319
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2321
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2322
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2324
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2326
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2328
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2330
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2332
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2333
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2334
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2336
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2340
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2341
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2342
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2344
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2345
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2346
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2348
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2354
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2357
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2360
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2362
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2364
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2366
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2367
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2371
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2372
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2373
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2374
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2375
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2376
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2380
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2381
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2382
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2383
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2384
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2385
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2386
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2387
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2388
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2390
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2392
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2393
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2394
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2395
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2396
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2398
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2399
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2400
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2402
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2403
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2404
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2406
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2407
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2409
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2410
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2411
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2413
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2414
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2415
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 1]]
|
2416
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2417
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2418
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2419
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2421
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2422
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2423
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2425
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2426
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2427
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2429
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2430
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2432
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2433
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2434
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2436
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2438
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2439
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2440
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2441
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2442
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2444
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2445
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2446
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2449
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2450
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2452
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2454
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2456
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2459
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2462
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2463
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2465
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2466
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2467
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2470
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2471
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2472
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2473
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2475
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2476
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2477
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2479
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2480
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2482
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2483
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2484
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2485
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2487
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2489
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2490
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2491
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2494
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
|
2495
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2497
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2499
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2500
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2501
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2504
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2507
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2508
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2509
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2511
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2512
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2513
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2514
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2515
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2517
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2518
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2519
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2521
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2523
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2524
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2525
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2527
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2528
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2529
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2531
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2532
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2533
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2535
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2536
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2537
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2539
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:17:48 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2540
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2543
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2544
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2546
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2548
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2550
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2554
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
|
2555
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 2]]
|
2556
|
+
[1m[35mAloe::Transaction Load (0.1ms)[0m SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
|
2557
|
+
[1m[36mAloe::Transaction Load (0.1ms)[0m [1mSELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1[0m
|
2558
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2560
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2561
|
+
[1m[36mAloe::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2562
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2565
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2566
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2568
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2569
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2570
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2572
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2574
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2576
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2580
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2581
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2583
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2584
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2585
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2587
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2588
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1[0m [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:17:49 UTC +00:00], ["details", nil]]
|
2590
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2591
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2592
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2593
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2595
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2596
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2598
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2599
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2600
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2602
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2603
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2604
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2605
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2606
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2608
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2609
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2610
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2612
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2613
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2614
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2616
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2618
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2620
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2623
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1[0m [["id", 2]]
|
2624
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2625
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2626
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2628
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2629
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2630
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2631
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2633
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 3]]
|
2635
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 3]]
|
2637
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 3[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2640
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2641
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2642
|
+
[1m[35mAloe::Account Load (0.0ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2643
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2644
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2645
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2646
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2647
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2648
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2650
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2651
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2653
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2654
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2656
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2657
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
2658
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2660
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2662
|
+
[1m[36m (2.8ms)[0m [1mDROP TABLE "aloe_accounts"[0m
|
2663
|
+
[1m[35m (1.9ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_accounts_on_owner_id_and_owner_type" ON "aloe_accounts" ("owner_id", "owner_type")[0m
|
2665
|
+
[1m[35m (2.9ms)[0m DROP TABLE "aloe_entries"
|
2666
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "aloe_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "account_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
2667
|
+
[1m[35m (1.3ms)[0m CREATE INDEX "index_aloe_entries_on_account_id" ON "aloe_entries" ("account_id")
|
2668
|
+
[1m[36m (3.2ms)[0m [1mDROP TABLE "aloe_transactions"[0m
|
2669
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_adjustment_transaction_id" ON "aloe_transactions" ("adjustment_transaction_id")[0m
|
2671
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_category" ON "aloe_transactions" ("category")
|
2672
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_credit_entry_id" ON "aloe_transactions" ("credit_entry_id")[0m
|
2673
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_aloe_transactions_on_debit_entry_id" ON "aloe_transactions" ("debit_entry_id")
|
2674
|
+
[1m[36m (1.4ms)[0m [1mCREATE INDEX "index_aloe_transactions_on_uuid" ON "aloe_transactions" ("uuid")[0m
|
2675
|
+
[1m[35m (1.6ms)[0m DROP TABLE "users"
|
2676
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
2677
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
2678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2679
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2680
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2681
|
+
[1m[35mSQL (2.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2683
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Test' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2684
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2685
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2687
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2690
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
2691
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2693
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2695
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2696
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2697
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2699
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2700
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
2701
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2703
|
+
[1m[35mAloe::Account Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
2705
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2706
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2708
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2709
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2711
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2712
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2713
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2715
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2716
|
+
[1m[36mAloe::Account Load (0.3ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2717
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.2ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2719
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2721
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2723
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2726
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2727
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2728
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2730
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2731
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2732
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2734
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 0], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2735
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_transactions" SET "adjustment_transaction_id" = ?, "updated_at" = ?, "details" = ? WHERE "aloe_transactions"."id" = 1[0m [["adjustment_transaction_id", 2], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["details", nil]]
|
2737
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2738
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ?[0m [["account_id", 1]]
|
2739
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 2]]
|
2740
|
+
[1m[36mAloe::Transaction Load (0.2ms)[0m [1mSELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1[0m
|
2741
|
+
[1m[35mAloe::Transaction Load (0.2ms)[0m SELECT "aloe_transactions".* FROM "aloe_transactions" ORDER BY "aloe_transactions"."id" DESC LIMIT 1
|
2742
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2743
|
+
[1m[35m (0.5ms)[0m begin transaction
|
2744
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2745
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2746
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2748
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2749
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2750
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2752
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2753
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2754
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2756
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2757
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2758
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2760
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["balance", 5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2761
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2763
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2764
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2765
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2767
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2769
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2771
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2775
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2776
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2777
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2778
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2779
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2780
|
+
[1m[36mAloe::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2781
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2783
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2784
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1[0m
|
2785
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2787
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2788
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2789
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
2791
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.0ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2793
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2795
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2798
|
+
[1m[36m (10.7ms)[0m [1mrollback transaction[0m
|
2799
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2800
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2801
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2802
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2804
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2805
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2806
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2808
|
+
[1m[36m (3.3ms)[0m [1mrollback transaction[0m
|
2809
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2810
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2811
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2812
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2814
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2815
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'USD') LIMIT 1
|
2816
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2818
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
2819
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2820
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2821
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2822
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2824
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2825
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2827
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2828
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2829
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2830
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2832
|
+
[1m[36m (7.9ms)[0m [1mrollback transaction[0m
|
2833
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2834
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2835
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2836
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2838
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2839
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2840
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2842
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2843
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2844
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
2845
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2846
|
+
[1m[36m (3.9ms)[0m [1mrollback transaction[0m
|
2847
|
+
[1m[35m (0.4ms)[0m begin transaction
|
2848
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2849
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2850
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2852
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2853
|
+
[1m[35mAloe::Account Exists (0.3ms)[0m 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
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2855
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2856
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2857
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2858
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2860
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2863
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Source' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2864
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2866
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2867
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Debit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2868
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2870
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2871
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2872
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2874
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", -5000], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2875
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2876
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
2878
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 2[0m [["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
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2881
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') LIMIT 1 [["id", 2]]
|
2882
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2883
|
+
[1m[35mAloe::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "aloe_accounts" WHERE ("aloe_accounts"."name" = 'Credit' AND "aloe_accounts"."currency" = 'GBP') LIMIT 1
|
2884
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2886
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2887
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2888
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2889
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 2]]
|
2891
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 3]]
|
2893
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 3]]
|
2895
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_transactions" ("category", "created_at", "credit_entry_id", "debit_entry_id", "details", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2899
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
2900
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 2]]
|
2901
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2902
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2904
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2905
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2907
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2908
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2909
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2911
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2912
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2913
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2914
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2915
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2916
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2917
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2919
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2920
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2921
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2923
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "aloe_accounts" SET "balance" = 123 WHERE "aloe_accounts"."id" = 1
|
2924
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2925
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2926
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2927
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2929
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2930
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2931
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2933
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2934
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2935
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2936
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2937
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2939
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2940
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2941
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2943
|
+
[1m[35mAloe::Account Load (0.4ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE ("aloe_accounts"."state" IN ('closed'))
|
2944
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2945
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2946
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2947
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2950
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2951
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2953
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2954
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2955
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2956
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2957
|
+
[1m[35m (0.4ms)[0m begin transaction
|
2958
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2959
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2961
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2962
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
2963
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2965
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:18:17.972294' WHERE "aloe_accounts"."id" = 1
|
2966
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2967
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2968
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2970
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2971
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2972
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2973
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2974
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2976
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:18:17 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2977
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2979
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2980
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2982
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2983
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2984
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2985
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2986
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2988
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2989
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2990
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2991
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2992
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
2994
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
2995
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2997
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
2998
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3000
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3001
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3002
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3003
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3004
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3006
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3007
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3008
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3009
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3010
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3012
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3013
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3014
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3015
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3016
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3018
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3019
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3020
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3021
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3022
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3024
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3025
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3026
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3027
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3028
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3030
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3031
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3032
|
+
[1m[36mAloe::Entry Load (0.3ms)[0m [1mSELECT "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[0m [["account_id", 1]]
|
3033
|
+
[1m[35mAloe::Account Load (0.3ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
|
3034
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3035
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3036
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3037
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3038
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3039
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3041
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3042
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
3043
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3045
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "aloe_accounts" SET "created_at" = '2013-09-04 14:18:18.111614' WHERE "aloe_accounts"."id" = 1
|
3046
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3047
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3048
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3050
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 765], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3051
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3053
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3054
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3056
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1692], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3057
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3058
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3059
|
+
[1m[35mAloe::Account Load (0.3ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3060
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3062
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1815], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3063
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3064
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3065
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3066
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3068
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 576], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3069
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3070
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3071
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3072
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3074
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 788], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3075
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3076
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3077
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3078
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3080
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 556], ["updated_at", Wed, 04 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3081
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3082
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3083
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3084
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3086
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 579], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3087
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3088
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3089
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3090
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3092
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 702], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3093
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3094
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3095
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3096
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3098
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 847], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3099
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3100
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3101
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3102
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3104
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 8711], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3105
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3107
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3108
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3110
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 1480], ["updated_at", Sat, 14 Sep 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3111
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3112
|
+
[1m[36mAloe::Entry Load (0.2ms)[0m [1mSELECT "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[0m [["account_id", 1]]
|
3113
|
+
[1m[35mAloe::Account Load (0.4ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" IN (1) AND (state != 'closed')
|
3114
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3115
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3116
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3117
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3119
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3120
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
3121
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3123
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3124
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "suspended"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3125
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3126
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3127
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3129
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
3130
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3131
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3132
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3134
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3135
|
+
[1m[35mAloe::Account Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "owner_id", "owner_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3138
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3139
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3141
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3142
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "open"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3143
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3144
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
3145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3146
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3147
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3150
|
+
[1m[36mAloe::Account Exists (0.1ms)[0m [1mSELECT 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[0m
|
3151
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3154
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "aloe_accounts" SET "state" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["state", "closed"], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3155
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3156
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3157
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3159
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3160
|
+
[1m[36mAloe::Account Exists (0.2ms)[0m [1mSELECT 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[0m
|
3161
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3163
|
+
[1m[35mAloe::Account Load (0.2ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE (state != 'closed')
|
3164
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3167
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3168
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3169
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3170
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3171
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3172
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3174
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3175
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3178
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3180
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3182
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
3183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3184
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3185
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3186
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3189
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3190
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3191
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3192
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3193
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3194
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3195
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3196
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3197
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3198
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3199
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3200
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3201
|
+
[1m[35m (0.2ms)[0m begin transaction
|
3202
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3203
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3204
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3205
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3206
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3208
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3211
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3213
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3214
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3216
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3217
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3220
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
3221
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
3223
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3225
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "aloe_entries" WHERE "aloe_entries"."account_id" = ? [["account_id", 1]]
|
3226
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3229
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3232
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1[0m [["id", 1]]
|
3233
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mAloe::Account Load (0.1ms)[0m [1mSELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1[0m [["id", 1]]
|
3235
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3237
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
3238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3239
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3240
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_accounts" ("configuration", "created_at", "currency", "state", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3242
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3243
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
3244
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "aloe_entries" ("account_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35mAloe::Account Load (0.1ms)[0m SELECT "aloe_accounts".* FROM "aloe_accounts" WHERE "aloe_accounts"."id" = ? AND (state != 'closed') ORDER BY "aloe_accounts"."id" ASC LIMIT 1 [["id", 1]]
|
3246
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "aloe_accounts" SET "balance" = ?, "updated_at" = ?, "configuration" = ? WHERE "aloe_accounts"."id" = 1[0m [["balance", 500], ["updated_at", Fri, 04 Oct 2013 14:18:18 UTC +00:00], ["configuration", "--- !ruby/object:Aloe::AccountConfiguration {}\n"]]
|
3247
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3248
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3249
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3250
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3251
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3252
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3253
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3256
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3258
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3259
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3260
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3262
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3263
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3266
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3268
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3270
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3271
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3272
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3274
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3276
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3277
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3278
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3279
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3280
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3282
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3284
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3285
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3286
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3287
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3288
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3289
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3290
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3291
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3292
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3294
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3296
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3297
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3298
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3300
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3301
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3302
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3304
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3306
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3308
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|