transactionable 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/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +29 -0
- data/app/assets/javascripts/transactionable/add_bank_account.js +45 -0
- data/app/assets/javascripts/transactionable/add_credit_card.js +87 -0
- data/app/assets/javascripts/transactionable/application.js +12 -0
- data/app/assets/stylesheets/transactionable/application.css +13 -0
- data/app/controllers/transactionable/application_controller.rb +4 -0
- data/app/helpers/transactionable/application_helper.rb +4 -0
- data/app/models/transactionable/bank_account.rb +35 -0
- data/app/models/transactionable/credit.rb +28 -0
- data/app/models/transactionable/credit_card.rb +39 -0
- data/app/models/transactionable/debit.rb +28 -0
- data/app/models/transactionable/refund.rb +5 -0
- data/app/models/transactionable/remote_bank_account.rb +4 -0
- data/app/models/transactionable/remote_credit_card.rb +7 -0
- data/app/models/transactionable/remote_customer.rb +39 -0
- data/app/models/transactionable/remote_entity.rb +42 -0
- data/app/models/transactionable/remote_transaction.rb +4 -0
- data/app/models/transactionable/reversal.rb +5 -0
- data/app/models/transactionable/transaction.rb +25 -0
- data/app/views/layouts/transactionable/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20140108145608_create_transactionable_remote_entities.rb +14 -0
- data/db/migrate/20140108182203_create_transactionable_credit_cards.rb +17 -0
- data/db/migrate/20140108190511_create_transactionable_transactions.rb +18 -0
- data/db/migrate/20140108213120_create_transactionable_bank_accounts.rb +17 -0
- data/lib/tasks/transactionable_tasks.rake +4 -0
- data/lib/transactionable.rb +9 -0
- data/lib/transactionable/acts_as_transactionable.rb +17 -0
- data/lib/transactionable/balanced_customer.rb +23 -0
- data/lib/transactionable/bank_account_transactionable.rb +23 -0
- data/lib/transactionable/credit_card_transactionable.rb +23 -0
- data/lib/transactionable/engine.rb +12 -0
- data/lib/transactionable/exceptions.rb +6 -0
- data/lib/transactionable/version.rb +3 -0
- data/spec/dummy/README.rdoc +28 -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 +4 -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 +28 -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 +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140108162102_create_users.rb +8 -0
- data/spec/dummy/db/schema.rb +76 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +471 -0
- data/spec/dummy/log/test.log +2875 -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/factories/transactionable_credit_cards.rb +15 -0
- data/spec/factories/transactionable_debits.rb +6 -0
- data/spec/factories/transactionable_refunds.rb +6 -0
- data/spec/factories/transactionable_remote_credit_cards.rb +6 -0
- data/spec/factories/transactionable_remote_customers.rb +6 -0
- data/spec/factories/transactionable_remote_transactions.rb +6 -0
- data/spec/integration/acts_as_bank_account_transactionable_spec.rb +24 -0
- data/spec/integration/acts_as_credit_card_transactionable_spec.rb +46 -0
- data/spec/integration/models/bank_account_spec.rb +0 -0
- data/spec/integration/models/credit_card_spec.rb +28 -0
- data/spec/integration/models/credit_spec.rb +0 -0
- data/spec/integration/models/debit_spec.rb +0 -0
- data/spec/lib/transactionable_spec.rb +6 -0
- data/spec/models/transactionable/bank_account_spec.rb +7 -0
- data/spec/models/transactionable/credit_card_spec.rb +7 -0
- data/spec/models/transactionable/credit_spec.rb +7 -0
- data/spec/models/transactionable/debit_spec.rb +7 -0
- data/spec/models/transactionable/refund_spec.rb +7 -0
- data/spec/models/transactionable/remote_bank_account_spec.rb +7 -0
- data/spec/models/transactionable/remote_credit_card_spec.rb +7 -0
- data/spec/models/transactionable/remote_customer_spec.rb +7 -0
- data/spec/models/transactionable/remote_transaction_spec.rb +7 -0
- data/spec/models/transactionable/reversal_spec.rb +7 -0
- data/spec/models/transactionable/transaction_spec.rb +7 -0
- data/spec/spec_helper.rb +40 -0
- metadata +319 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|
@@ -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 = '817d1812a4b5acab1b1c2be1b55dd66524faab7384c2b7b7ab89d090abb5b6afcbfa56b07aba9143b8ce569c598d7fbecb81f4bd03637fcc0d818e714f2f55e4'
|
@@ -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"
|
Binary file
|
@@ -0,0 +1,76 @@
|
|
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: 20140108213120) do
|
15
|
+
|
16
|
+
create_table "transactionable_bank_accounts", force: true do |t|
|
17
|
+
t.integer "bank_accountable_id"
|
18
|
+
t.string "bank_accountable_type"
|
19
|
+
t.string "account_number"
|
20
|
+
t.string "name"
|
21
|
+
t.string "bank_name"
|
22
|
+
t.string "description"
|
23
|
+
t.string "account_type"
|
24
|
+
t.boolean "can_debit"
|
25
|
+
t.boolean "verified"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "transactionable_credit_cards", force: true do |t|
|
31
|
+
t.integer "credit_cardable_id"
|
32
|
+
t.string "credit_cardable_type"
|
33
|
+
t.string "name"
|
34
|
+
t.string "description"
|
35
|
+
t.integer "last_four"
|
36
|
+
t.string "brand"
|
37
|
+
t.integer "expiration_month"
|
38
|
+
t.integer "expiration_year"
|
39
|
+
t.date "expiration_date"
|
40
|
+
t.datetime "created_at"
|
41
|
+
t.datetime "updated_at"
|
42
|
+
end
|
43
|
+
|
44
|
+
create_table "transactionable_remote_entities", force: true do |t|
|
45
|
+
t.string "uri"
|
46
|
+
t.string "service_name"
|
47
|
+
t.integer "local_entity_id"
|
48
|
+
t.string "local_entity_type"
|
49
|
+
t.time "synced_at"
|
50
|
+
t.string "type"
|
51
|
+
t.datetime "created_at"
|
52
|
+
t.datetime "updated_at"
|
53
|
+
end
|
54
|
+
|
55
|
+
create_table "transactionable_transactions", force: true do |t|
|
56
|
+
t.integer "transactionable_id"
|
57
|
+
t.string "transactionable_type"
|
58
|
+
t.integer "transaction_loggable_id"
|
59
|
+
t.string "transaction_loggable_type"
|
60
|
+
t.integer "credit_id"
|
61
|
+
t.integer "debit_id"
|
62
|
+
t.decimal "amount", precision: 8, scale: 2
|
63
|
+
t.string "status"
|
64
|
+
t.string "description"
|
65
|
+
t.string "type"
|
66
|
+
t.datetime "created_at"
|
67
|
+
t.datetime "updated_at"
|
68
|
+
end
|
69
|
+
|
70
|
+
create_table "users", force: true do |t|
|
71
|
+
t.string "name"
|
72
|
+
t.datetime "created_at"
|
73
|
+
t.datetime "updated_at"
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
Binary file
|
@@ -0,0 +1,471 @@
|
|
1
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateTransactionableRemoteEntities (20140108145608)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108145608"]]
|
8
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
9
|
+
Migrating to CreateUsers (20140108162102)
|
10
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108162102"]]
|
13
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
14
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
15
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
16
|
+
[1m[35mSQL (6.9ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 08 Jan 2014 17:33:42 UTC +00:00], ["name", "Jackson"], ["updated_at", Wed, 08 Jan 2014 17:33:42 UTC +00:00]]
|
17
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
18
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
19
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
20
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
21
|
+
[1m[35mTransactionable::RemoteCustomer Load (2.7ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
22
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23
|
+
[1m[35mSQL (4.1ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "synced_at", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 17:40:16 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "User"], ["synced_at", 2014-01-08 12:40:18 -0500], ["type", "Transactionable::RemoteCustomer"], ["updated_at", Wed, 08 Jan 2014 17:40:16 UTC +00:00], ["uri", "/v1/customers/CU7j9asWQdNem5K3RDGbrANF"]]
|
24
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
25
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
26
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
27
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
28
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
29
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
30
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
31
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "transactionable_remote_entities" SET "synced_at" = ?, "updated_at" = ? WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."id" = 1[0m [["synced_at", 2014-01-08 12:41:35 -0500], ["updated_at", Wed, 08 Jan 2014 17:41:35 UTC +00:00]]
|
33
|
+
[1m[35m (2.5ms)[0m commit transaction
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35
|
+
Migrating to CreateTransactionableCreditCards (20140108182203)
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime) [0m
|
38
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108182203"]]
|
39
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
40
|
+
Migrating to CreateTransactionableTransactions (20140108190511)
|
41
|
+
[1m[35m (0.1ms)[0m begin transaction
|
42
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal, "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
43
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108190511"]]
|
44
|
+
[1m[36m (5.7ms)[0m [1mcommit transaction[0m
|
45
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
46
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
47
|
+
[1m[35mTransactionable::RemoteCustomer Load (3.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
48
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
49
|
+
[1m[35mTransactionable::RemoteCustomer Load (2.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
50
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
51
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
52
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53
|
+
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO "transactionable_credit_cards" ("created_at", "credit_cardable_id", "credit_cardable_type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 08 Jan 2014 20:30:28 UTC +00:00], ["credit_cardable_id", 1], ["credit_cardable_type", "User"], ["updated_at", Wed, 08 Jan 2014 20:30:28 UTC +00:00]]
|
54
|
+
[1m[35m (1.1ms)[0m commit transaction
|
55
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 20:30:28 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"], ["type", "Transactionable::RemoteCreditCard"], ["updated_at", Wed, 08 Jan 2014 20:30:28 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP5nUYKdbTqu3pQz95HCWAAT/cards/CC2DRDq83NEl2N4Zqm6pZYTM"]]
|
57
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
58
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? LIMIT 1 [["id", 1]]
|
59
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
60
|
+
[1m[35m (0.1ms)[0m begin transaction
|
61
|
+
[1m[36mSQL (1.6ms)[0m [1mUPDATE "transactionable_credit_cards" SET "description" = ?, "last_four" = ?, "brand" = ?, "expiration_month" = ?, "expiration_year" = ?, "expiration_date" = ?, "updated_at" = ? WHERE "transactionable_credit_cards"."id" = 1[0m [["description", "Visa (1111)"], ["last_four", 1111], ["brand", "Visa"], ["expiration_month", 8], ["expiration_year", 2015], ["expiration_date", Sat, 01 Aug 2015], ["updated_at", Wed, 08 Jan 2014 20:30:28 UTC +00:00]]
|
62
|
+
[1m[35m (1.1ms)[0m commit transaction
|
63
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.5ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
64
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "transactionable_remote_entities" SET "synced_at" = ?, "updated_at" = ? WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."id" = 1 [["synced_at", 2014-01-08 15:30:30 -0500], ["updated_at", Wed, 08 Jan 2014 20:30:30 UTC +00:00]]
|
67
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
68
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
69
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
70
|
+
[1m[35mTransactionable::CreditCard Load (0.5ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
71
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
72
|
+
[1m[35mTransactionable::Transaction Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" ORDER BY "transactionable_transactions"."id" ASC LIMIT 1
|
73
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
74
|
+
[1m[35mTransactionable::CreditCard Load (2.4ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
75
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
76
|
+
[1m[35m (0.1ms)[0m begin transaction
|
77
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:7fbc4ccb1af0,'0.465E2',18(45)>], ["created_at", Wed, 08 Jan 2014 20:39:36 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Debit"], ["updated_at", Wed, 08 Jan 2014 20:39:36 UTC +00:00]]
|
78
|
+
[1m[35m (1.1ms)[0m commit transaction
|
79
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
80
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 20:39:36 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 20:39:36 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP5nUYKdbTqu3pQz95HCWAAT/debits/WD7ELIJreTUA1xrDhmiC9LlC"]]
|
81
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
82
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Wed, 08 Jan 2014 20:39:36 UTC +00:00]]
|
84
|
+
[1m[35m (1.2ms)[0m commit transaction
|
85
|
+
[1m[36mTransactionable::Debit Load (0.6ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ?[0m [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
86
|
+
[1m[35mTransactionable::CreditCard Load (0.4ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
87
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
88
|
+
[1m[35mTransactionable::Transaction Load (0.5ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
89
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
90
|
+
[1m[35mTransactionable::Transaction Load (0.5ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" DESC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
91
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
92
|
+
[1m[35mTransactionable::Transaction Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" DESC LIMIT 1 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
93
|
+
[1m[36m (3.3ms)[0m [1mSELECT SUM("transactionable_transactions"."amount") AS sum_id FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Refund') AND "transactionable_transactions"."debit_id" = ?[0m [["debit_id", 1]]
|
94
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
95
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
96
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:7fbc4b2c3d00,'0.3889E2',18(45)>], ["created_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Refund"], ["updated_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00]]
|
97
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
98
|
+
[1m[35m (0.1ms)[0m begin transaction
|
99
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP5nUYKdbTqu3pQz95HCWAAT/refunds/RF1TGlKWAb5P8RNkv5lJU5BR"]]
|
100
|
+
[1m[35m (1.0ms)[0m commit transaction
|
101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
102
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "transactionable_transactions" SET "debit_id" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Refund') AND "transactionable_transactions"."id" = 2 [["debit_id", 1], ["updated_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00]]
|
103
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
104
|
+
[1m[35mTransactionable::CreditCard Load (0.2ms)[0m SELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1 [["id", 1]]
|
105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Refund') AND "transactionable_transactions"."id" = 2 [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"], ["updated_at", Wed, 08 Jan 2014 20:41:27 UTC +00:00]]
|
107
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
108
|
+
[1m[35mTransactionable::Transaction Load (0.2ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
109
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ? ORDER BY "transactionable_credit_cards"."id" ASC LIMIT 1[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
110
|
+
[1m[35mTransactionable::Transaction Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 1], ["transactionable_type", "Transactionable::CreditCard"]]
|
111
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
112
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
113
|
+
Migrating to CreateTransactionableTransactions (20140108190511)
|
114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35m (1.2ms)[0m DROP TABLE "transactionable_transactions"
|
116
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140108190511'[0m
|
117
|
+
[1m[35m (1.4ms)[0m commit transaction
|
118
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
|
+
Migrating to CreateTransactionableTransactions (20140108190511)
|
121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
122
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
123
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108190511"]]
|
124
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
125
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
126
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
127
|
+
[1m[35mTransactionable::RemoteCustomer Load (2.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
128
|
+
[1m[36mTransactionable::CreditCard Load (0.3ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ?[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
129
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
130
|
+
Migrating to CreateTransactionableBankAccounts (20140108213120)
|
131
|
+
[1m[35m (0.3ms)[0m begin transaction
|
132
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
133
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140108213120"]]
|
134
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
135
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
136
|
+
[1m[36mUser Load (2.0ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
137
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
138
|
+
[1m[36mTransactionable::BankAccount Load (3.1ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ?[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
139
|
+
[1m[35m (0.2ms)[0m begin transaction
|
140
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"], ["created_at", Wed, 08 Jan 2014 21:59:57 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 21:59:57 UTC +00:00]]
|
141
|
+
[1m[35m (1.5ms)[0m commit transaction
|
142
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
144
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"], ["created_at", Wed, 08 Jan 2014 22:02:27 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 22:02:27 UTC +00:00]]
|
145
|
+
[1m[35m (1.1ms)[0m commit transaction
|
146
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
147
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 22:02:27 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Wed, 08 Jan 2014 22:02:27 UTC +00:00], ["uri", "/v1/bank_accounts/BA126jTgKYoXvPJDhHN8BZxY"]]
|
148
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
149
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 2]]
|
150
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
151
|
+
[1m[35m (0.2ms)[0m begin transaction
|
152
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 2[0m [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "Joplin"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Wed, 08 Jan 2014 22:02:28 UTC +00:00]]
|
153
|
+
[1m[35m (2.5ms)[0m commit transaction
|
154
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
155
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
156
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "transactionable_remote_entities" SET "synced_at" = ?, "updated_at" = ? WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."id" = 1 [["synced_at", 2014-01-08 17:02:30 -0500], ["updated_at", Wed, 08 Jan 2014 22:02:30 UTC +00:00]]
|
158
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
159
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
160
|
+
[1m[36mTransactionable::RemoteCustomer Load (0.2ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "User"]]
|
161
|
+
[1m[35mTransactionable::BankAccount Load (0.4ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
162
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
163
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1 [["id", 1]]
|
164
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
165
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
166
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
167
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.5ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1
|
168
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.6ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m
|
169
|
+
[1m[35mTransactionable::BankAccount Load (0.3ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
170
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.5ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m
|
171
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["id", 2]]
|
172
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
173
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
174
|
+
[1m[36mTransactionable::BankAccount Load (0.4ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
175
|
+
[1m[35mTransactionable::BankAccount Load (0.3ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
176
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::BankAccount"]]
|
177
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1
|
178
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount')[0m
|
179
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "transactionable_bank_accounts"
|
180
|
+
[1m[36mTransactionable::BankAccount Load (0.4ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m
|
181
|
+
[1m[35mTransactionable::BankAccount Load (0.4ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" ORDER BY "transactionable_bank_accounts"."id" DESC LIMIT 1
|
182
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" ORDER BY "transactionable_bank_accounts"."id" DESC LIMIT 1[0m
|
183
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
184
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m
|
185
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = 1
|
186
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m
|
187
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
188
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
189
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
190
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
191
|
+
[1m[35mTransactionable::BankAccount Load (0.3ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
192
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
193
|
+
[1m[35mTransactionable::BankAccount Load (0.3ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
194
|
+
[1m[36mTransactionable::RemoteBankAccount Load (2.3ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
195
|
+
[1m[35m (0.1ms)[0m begin transaction
|
196
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:7fcd627bd130,'0.10075E3',18(45)>], ["created_at", Wed, 08 Jan 2014 22:14:39 UTC +00:00], ["status", "paid"], ["type", "Transactionable::Credit"], ["updated_at", Wed, 08 Jan 2014 22:14:39 UTC +00:00]]
|
197
|
+
[1m[35m (1.2ms)[0m commit transaction
|
198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
199
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 22:14:39 UTC +00:00], ["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 22:14:39 UTC +00:00], ["uri", "/v1/credits/CR22Xr7IstWUnx5C1v6bmB9J"]]
|
200
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
202
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."id" = 1[0m [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"], ["updated_at", Wed, 08 Jan 2014 22:14:39 UTC +00:00]]
|
203
|
+
[1m[35m (0.8ms)[0m commit transaction
|
204
|
+
[1m[36mTransactionable::Credit Load (0.3ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ?[0m [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
205
|
+
[1m[35mTransactionable::BankAccount Load (0.3ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
206
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
207
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
208
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
209
|
+
[1m[35mTransactionable::Credit Load (0.6ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
210
|
+
[1m[36m (0.4ms)[0m [1mSELECT SUM("transactionable_transactions"."amount") AS sum_id FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Reversal') AND "transactionable_transactions"."credit_id" = ?[0m [["credit_id", 1]]
|
211
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.5ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
212
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
213
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
214
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
215
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
216
|
+
[1m[36m (0.2ms)[0m [1mSELECT SUM("transactionable_transactions"."amount") AS sum_id FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Reversal') AND "transactionable_transactions"."credit_id" = ?[0m [["credit_id", 1]]
|
217
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
218
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
219
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
220
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
221
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
222
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
223
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" ASC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
224
|
+
[1m[36mTransactionable::RemoteTransaction Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
225
|
+
[1m[35mTransactionable::BankAccount Load (0.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1 [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
226
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
227
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
228
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
229
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
230
|
+
[1m[36mTransactionable::BankAccount Load (0.3ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
231
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.3ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
233
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:7fcd6612e0e0,'0.2E3',9(45)>], ["created_at", Wed, 08 Jan 2014 22:22:33 UTC +00:00], ["status", "paid"], ["type", "Transactionable::Credit"], ["updated_at", Wed, 08 Jan 2014 22:22:33 UTC +00:00]]
|
234
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 08 Jan 2014 22:22:33 UTC +00:00], ["local_entity_id", 2], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 22:22:33 UTC +00:00], ["uri", "/v1/credits/CR2RelRYNWmtTnNBinPuwHg4"]]
|
237
|
+
[1m[35m (0.7ms)[0m commit transaction
|
238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."id" = 2 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"], ["updated_at", Wed, 08 Jan 2014 22:22:33 UTC +00:00]]
|
240
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
241
|
+
[1m[35mTransactionable::Credit Load (0.2ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
242
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ?[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
243
|
+
[1m[35mTransactionable::Credit Load (0.5ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" DESC LIMIT 1 [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
244
|
+
[1m[36mTransactionable::Credit Load (0.4ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? ORDER BY "transactionable_transactions"."id" DESC LIMIT 1[0m [["transactionable_id", 2], ["transactionable_type", "Transactionable::BankAccount"]]
|
245
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 2], ["local_entity_type", "Transactionable::Transaction"]]
|
246
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
247
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
248
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
249
|
+
[1m[35m (0.2ms)[0m begin transaction
|
250
|
+
[1m[36mTransactionable::RemoteBankAccount Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 2], ["local_entity_type", "Transactionable::BankAccount"]]
|
251
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."id" = ? [["id", 5]]
|
252
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ?[0m [["id", 2]]
|
253
|
+
[1m[35m (3.6ms)[0m commit transaction
|
254
|
+
[1m[36mTransactionable::CreditCard Load (0.4ms)[0m [1mSELECT "transactionable_credit_cards".* FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."credit_cardable_id" = ? AND "transactionable_credit_cards"."credit_cardable_type" = ?[0m [["credit_cardable_id", 1], ["credit_cardable_type", "User"]]
|
255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
256
|
+
[1m[36mTransactionable::RemoteCreditCard Load (0.7ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::CreditCard"]]
|
257
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCreditCard') AND "transactionable_remote_entities"."id" = ? [["id", 2]]
|
258
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "transactionable_credit_cards" WHERE "transactionable_credit_cards"."id" = ?[0m [["id", 1]]
|
259
|
+
[1m[35m (2.6ms)[0m commit transaction
|
260
|
+
[1m[36mTransactionable::Transaction Load (0.4ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions"[0m
|
261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
262
|
+
[1m[36mTransactionable::RemoteTransaction Load (0.4ms)[0m [1mSELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1[0m [["local_entity_id", 1], ["local_entity_type", "Transactionable::Transaction"]]
|
263
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
264
|
+
[1m[36mSQL (5.5ms)[0m [1mDELETE FROM "transactionable_transactions"[0m
|
265
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit')
|
266
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Debit')[0m
|
267
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
268
|
+
[1m[35mTransactionable::BankAccount Load (5.2ms)[0m SELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ? [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
269
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
270
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "transactionable_bank_accounts" ("bank_accountable_id", "bank_accountable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["bank_accountable_id", 1], ["bank_accountable_type", "User"], ["created_at", Wed, 08 Jan 2014 22:29:29 UTC +00:00], ["updated_at", Wed, 08 Jan 2014 22:29:29 UTC +00:00]]
|
271
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
272
|
+
[1m[35m (0.1ms)[0m begin transaction
|
273
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 08 Jan 2014 22:29:29 UTC +00:00], ["local_entity_id", 3], ["local_entity_type", "Transactionable::BankAccount"], ["type", "Transactionable::RemoteBankAccount"], ["updated_at", Wed, 08 Jan 2014 22:29:29 UTC +00:00], ["uri", "/v1/bank_accounts/BA2khTFCHNWjczgNVKkR9ZzO"]]
|
274
|
+
[1m[35m (1.0ms)[0m commit transaction
|
275
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? LIMIT 1[0m [["id", 3]]
|
276
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 3], ["local_entity_type", "Transactionable::BankAccount"]]
|
277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
278
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "transactionable_bank_accounts" SET "bank_name" = ?, "description" = ?, "name" = ?, "can_debit" = ?, "account_type" = ?, "updated_at" = ? WHERE "transactionable_bank_accounts"."id" = 3 [["bank_name", "JPMORGAN CHASE BANK"], ["description", "xxxxxx0002"], ["name", "User 1"], ["can_debit", false], ["account_type", "checking"], ["updated_at", Wed, 08 Jan 2014 22:29:30 UTC +00:00]]
|
279
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
280
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.5ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
281
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
283
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "transactionable_remote_entities" SET "synced_at" = ?, "updated_at" = ? WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."id" = 1[0m [["synced_at", 2014-01-08 17:29:32 -0500], ["updated_at", Wed, 08 Jan 2014 22:29:32 UTC +00:00]]
|
284
|
+
[1m[35m (2.2ms)[0m commit transaction
|
285
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
286
|
+
[1m[35mTransactionable::RemoteCustomer Load (0.2ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteCustomer') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 1], ["local_entity_type", "User"]]
|
287
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."bank_accountable_id" = ? AND "transactionable_bank_accounts"."bank_accountable_type" = ?[0m [["bank_accountable_id", 1], ["bank_accountable_type", "User"]]
|
288
|
+
[1m[35mTransactionable::RemoteBankAccount Load (0.4ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteBankAccount') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 3], ["local_entity_type", "Transactionable::BankAccount"]]
|
289
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
290
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["amount", #<BigDecimal:7ffbbb3fd220,'0.32023E3',18(45)>], ["created_at", Wed, 08 Jan 2014 22:30:19 UTC +00:00], ["status", "paid"], ["type", "Transactionable::Credit"], ["updated_at", Wed, 08 Jan 2014 22:30:19 UTC +00:00]]
|
291
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
293
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 08 Jan 2014 22:30:19 UTC +00:00], ["local_entity_id", 3], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 22:30:19 UTC +00:00], ["uri", "/v1/credits/CR3vdnALprY8aWcLwqe12fZo"]]
|
294
|
+
[1m[35m (1.0ms)[0m commit transaction
|
295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
296
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."id" = 3 [["transactionable_id", 3], ["transactionable_type", "Transactionable::BankAccount"], ["updated_at", Wed, 08 Jan 2014 22:30:19 UTC +00:00]]
|
297
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
298
|
+
[1m[35mTransactionable::Credit Load (0.3ms)[0m SELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Credit') AND "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ? [["transactionable_id", 3], ["transactionable_type", "Transactionable::BankAccount"]]
|
299
|
+
[1m[36mTransactionable::Transaction Load (0.5ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ?[0m [["transactionable_id", 3], ["transactionable_type", "Transactionable::BankAccount"]]
|
300
|
+
[1m[35mTransactionable::RemoteTransaction Load (0.5ms)[0m SELECT "transactionable_remote_entities".* FROM "transactionable_remote_entities" WHERE "transactionable_remote_entities"."type" IN ('Transactionable::RemoteTransaction') AND "transactionable_remote_entities"."local_entity_id" = ? AND "transactionable_remote_entities"."local_entity_type" = ? ORDER BY "transactionable_remote_entities"."id" ASC LIMIT 1 [["local_entity_id", 3], ["local_entity_type", "Transactionable::Transaction"]]
|
301
|
+
[1m[36m (0.5ms)[0m [1mSELECT SUM("transactionable_transactions"."amount") AS sum_id FROM "transactionable_transactions" WHERE "transactionable_transactions"."type" IN ('Transactionable::Reversal') AND "transactionable_transactions"."credit_id" = ?[0m [["credit_id", 3]]
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
303
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "transactionable_transactions" ("amount", "created_at", "status", "type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["amount", #<BigDecimal:7ffbbb021818,'0.32023E3',18(45)>], ["created_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00], ["status", "succeeded"], ["type", "Transactionable::Reversal"], ["updated_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00]]
|
304
|
+
[1m[35m (4.0ms)[0m commit transaction
|
305
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
306
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "transactionable_remote_entities" ("created_at", "local_entity_id", "local_entity_type", "type", "updated_at", "uri") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00], ["local_entity_id", 4], ["local_entity_type", "Transactionable::Transaction"], ["type", "Transactionable::RemoteTransaction"], ["updated_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00], ["uri", "/v1/marketplaces/TEST-MP5nUYKdbTqu3pQz95HCWAAT/credits/CR3vdnALprY8aWcLwqe12fZo/reversals/RV4DYEuiso15sF3mqhsXPxD2"]]
|
307
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
308
|
+
[1m[35m (0.1ms)[0m begin transaction
|
309
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "transactionable_transactions" SET "credit_id" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Reversal') AND "transactionable_transactions"."id" = 4[0m [["credit_id", 3], ["updated_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00]]
|
310
|
+
[1m[35m (1.0ms)[0m commit transaction
|
311
|
+
[1m[36mTransactionable::BankAccount Load (0.2ms)[0m [1mSELECT "transactionable_bank_accounts".* FROM "transactionable_bank_accounts" WHERE "transactionable_bank_accounts"."id" = ? ORDER BY "transactionable_bank_accounts"."id" ASC LIMIT 1[0m [["id", 3]]
|
312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
313
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "transactionable_transactions" SET "transactionable_id" = ?, "transactionable_type" = ?, "updated_at" = ? WHERE "transactionable_transactions"."type" IN ('Transactionable::Reversal') AND "transactionable_transactions"."id" = 4[0m [["transactionable_id", 3], ["transactionable_type", "Transactionable::BankAccount"], ["updated_at", Wed, 08 Jan 2014 22:31:21 UTC +00:00]]
|
314
|
+
[1m[35m (0.7ms)[0m commit transaction
|
315
|
+
[1m[36mTransactionable::Transaction Load (0.2ms)[0m [1mSELECT "transactionable_transactions".* FROM "transactionable_transactions" WHERE "transactionable_transactions"."transactionable_id" = ? AND "transactionable_transactions"."transactionable_type" = ?[0m [["transactionable_id", 3], ["transactionable_type", "Transactionable::BankAccount"]]
|
316
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
317
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
318
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
319
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
320
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
321
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
322
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
323
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
324
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
325
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
326
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
327
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
328
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
329
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
330
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
331
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
332
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
333
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
334
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
335
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
336
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
337
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
338
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
339
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
340
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
341
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
342
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
343
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
344
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
345
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
346
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
347
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
348
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
349
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
350
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
351
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
352
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
353
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
354
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
355
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
356
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
357
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
358
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
359
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
360
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
361
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
362
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
363
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
364
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
365
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
366
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
367
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
368
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
369
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
370
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
371
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
372
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
373
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
374
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
375
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
376
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
377
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
378
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
379
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
380
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
381
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
382
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
383
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
384
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
385
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
386
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
387
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
388
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
389
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
390
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
391
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
392
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
393
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
394
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
395
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
396
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
397
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
398
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
399
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
400
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
401
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
402
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
403
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
404
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
405
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
406
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
407
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
408
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
409
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
410
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
411
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
412
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
413
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
414
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
415
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
416
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
417
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
418
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
419
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
420
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
421
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
422
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
423
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
424
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
425
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
426
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
427
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
428
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
429
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
430
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
431
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
432
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
433
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
434
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
435
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
436
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
437
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
438
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
439
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
440
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
441
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
442
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
443
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
444
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
445
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
446
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
447
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
448
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
449
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
450
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
451
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
452
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
453
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
454
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
455
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
456
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
457
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
458
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|
459
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "transactionable_bank_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "bank_accountable_id" integer, "bank_accountable_type" varchar(255), "account_number" varchar(255), "name" varchar(255), "bank_name" varchar(255), "description" varchar(255), "account_type" varchar(255), "can_debit" boolean, "verified" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
460
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "credit_cardable_id" integer, "credit_cardable_type" varchar(255), "name" varchar(255), "description" varchar(255), "last_four" integer, "brand" varchar(255), "expiration_month" integer, "expiration_year" integer, "expiration_date" date, "created_at" datetime, "updated_at" datetime)
|
461
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "transactionable_remote_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uri" varchar(255), "service_name" varchar(255), "local_entity_id" integer, "local_entity_type" varchar(255), "synced_at" time, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
462
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "transactionable_transactions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "transactionable_id" integer, "transactionable_type" varchar(255), "transaction_loggable_id" integer, "transaction_loggable_type" varchar(255), "credit_id" integer, "debit_id" integer, "amount" decimal(8,2), "status" varchar(255), "description" varchar(255), "type" varchar(255), "created_at" datetime, "updated_at" datetime)
|
463
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
464
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
465
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
466
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
467
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108213120')[0m
|
468
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108162102')
|
469
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108145608')[0m
|
470
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140108182203')
|
471
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140108190511')[0m
|