dynamorphic 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/lib/dynamorphic.rb +4 -0
- data/lib/dynamorphic/dynamorphic_setter.rb +57 -0
- data/lib/dynamorphic/version.rb +3 -0
- data/lib/tasks/dynamorphic_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/advanced_buy_strategy.rb +3 -0
- data/test/dummy/app/models/basic_buy_strategy.rb +3 -0
- data/test/dummy/app/models/portfolio.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160207224617_create_basic_buy_strategies.rb +8 -0
- data/test/dummy/db/migrate/20160207224627_create_advanced_buy_strategies.rb +8 -0
- data/test/dummy/db/migrate/20160207230259_create_portfolios.rb +8 -0
- data/test/dummy/db/schema.rb +35 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +60 -0
- data/test/dummy/log/test.log +859 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/portfolios.yml +11 -0
- data/test/dummy/test/models/portfolio_test.rb +7 -0
- data/test/dynamorphic_test.rb +44 -0
- data/test/test_helper.rb +20 -0
- metadata +177 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
Rails.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 file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = 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
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,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,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 082b17e65028e6578c3a2be007bfa7515692a895960fe30cf40b559f811b3a6a31b1b996414ceea377988a927975e68711634e94b3b3d3ed6a84127968d7138e
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 45b3b47707de63f3d4177e0d37196a3ea3b053ee486b6530db45ec6c179999a52ef289e3f80705f0e1da839e0f31d9acdd9b3e70f49b412621ecd86d1e9d1392
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,35 @@
|
|
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: 20160207230259) do
|
15
|
+
|
16
|
+
create_table "advanced_buy_strategies", force: :cascade do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.datetime "created_at", null: false
|
19
|
+
t.datetime "updated_at", null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "basic_buy_strategies", force: :cascade do |t|
|
23
|
+
t.string "name"
|
24
|
+
t.datetime "created_at", null: false
|
25
|
+
t.datetime "updated_at", null: false
|
26
|
+
end
|
27
|
+
|
28
|
+
create_table "portfolios", force: :cascade do |t|
|
29
|
+
t.integer "buy_strategy_id"
|
30
|
+
t.string "buy_strategy_type"
|
31
|
+
t.datetime "created_at", null: false
|
32
|
+
t.datetime "updated_at", null: false
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
Binary file
|
@@ -0,0 +1,60 @@
|
|
1
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateStocks (20160207224555)
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "stocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224555"]]
|
9
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10
|
+
Migrating to CreateBasicBuyStrategies (20160207224617)
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
13
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224617"]]
|
14
|
+
[1m[35m (0.7ms)[0m commit transaction
|
15
|
+
Migrating to CreateAdvancedBuyStrategies (20160207224627)
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
18
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224627"]]
|
19
|
+
[1m[35m (0.6ms)[0m commit transaction
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
22
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
23
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
24
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
25
|
+
Migrating to CreateStocks (20160207224555)
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "stocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "buy_strategy_id" integer, "buy_strategy_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
28
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224555"]]
|
29
|
+
[1m[35m (0.7ms)[0m commit transaction
|
30
|
+
Migrating to CreateBasicBuyStrategies (20160207224617)
|
31
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
33
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224617"]]
|
34
|
+
[1m[35m (0.6ms)[0m commit transaction
|
35
|
+
Migrating to CreateAdvancedBuyStrategies (20160207224627)
|
36
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
38
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224627"]]
|
39
|
+
[1m[35m (0.6ms)[0m commit transaction
|
40
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
41
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
42
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
43
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
44
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
45
|
+
Migrating to CreateBasicBuyStrategies (20160207224617)
|
46
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
48
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224617"]]
|
49
|
+
[1m[35m (0.6ms)[0m commit transaction
|
50
|
+
Migrating to CreateAdvancedBuyStrategies (20160207224627)
|
51
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
53
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207224627"]]
|
54
|
+
[1m[35m (0.7ms)[0m commit transaction
|
55
|
+
Migrating to CreatePortfolios (20160207230259)
|
56
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
57
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "portfolios" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "buy_strategy_id" integer, "buy_strategy_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
58
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160207230259"]]
|
59
|
+
[1m[35m (0.6ms)[0m commit transaction
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -0,0 +1,859 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
---------------------------
|
3
|
+
DynamorphicTest: test_truth
|
4
|
+
---------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
7
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
8
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "stocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "buy_strategy_id" integer, "buy_strategy_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
9
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
10
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
11
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
12
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
13
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160207224627')
|
14
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160207224555')[0m
|
15
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160207224617')
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18
|
+
------------------------------------------------------
|
19
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
20
|
+
------------------------------------------------------
|
21
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
22
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23
|
+
------------------------------------------------------
|
24
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
25
|
+
------------------------------------------------------
|
26
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[35m (0.1ms)[0m begin transaction
|
29
|
+
------------------------------------------------------
|
30
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
31
|
+
------------------------------------------------------
|
32
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33
|
+
[1m[35m (0.1ms)[0m begin transaction
|
34
|
+
------------------------------------------------------
|
35
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
36
|
+
------------------------------------------------------
|
37
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
39
|
+
[1m[35m (0.1ms)[0m begin transaction
|
40
|
+
------------------------------------------------------
|
41
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
42
|
+
------------------------------------------------------
|
43
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
44
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45
|
+
------------------------------------------------------
|
46
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
47
|
+
------------------------------------------------------
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
49
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50
|
+
------------------------------------------------------
|
51
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
52
|
+
------------------------------------------------------
|
53
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
54
|
+
[1m[35m (0.0ms)[0m begin transaction
|
55
|
+
------------------------------------------------------
|
56
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
57
|
+
------------------------------------------------------
|
58
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
[1m[35m (0.1ms)[0m begin transaction
|
61
|
+
------------------------------------------------------
|
62
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
63
|
+
------------------------------------------------------
|
64
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
65
|
+
[1m[35m (0.0ms)[0m begin transaction
|
66
|
+
------------------------------------------------------
|
67
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
68
|
+
------------------------------------------------------
|
69
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
70
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
71
|
+
[1m[35m (0.1ms)[0m begin transaction
|
72
|
+
------------------------------------------------------
|
73
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
74
|
+
------------------------------------------------------
|
75
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
76
|
+
[1m[35m (0.0ms)[0m begin transaction
|
77
|
+
------------------------------------------------------
|
78
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
79
|
+
------------------------------------------------------
|
80
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
81
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
82
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
83
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "portfolios" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "buy_strategy_id" integer, "buy_strategy_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
84
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
85
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
86
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
87
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
88
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160207230259')
|
89
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160207224617')[0m
|
90
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160207224627')
|
91
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
92
|
+
[1m[35m (0.1ms)[0m begin transaction
|
93
|
+
------------------------------------------------------
|
94
|
+
DynamorphicTest: test_gets_the_polymorphic_association
|
95
|
+
------------------------------------------------------
|
96
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
97
|
+
[1m[35m (0.1ms)[0m begin transaction
|
98
|
+
------------------------------------------------------
|
99
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
100
|
+
------------------------------------------------------
|
101
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
102
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
104
|
+
------------------------------------------------------
|
105
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
106
|
+
------------------------------------------------------
|
107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
109
|
+
------------------------------------------------------
|
110
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
111
|
+
------------------------------------------------------
|
112
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
113
|
+
[1m[35m (0.1ms)[0m begin transaction
|
114
|
+
------------------------------------------------------
|
115
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
116
|
+
------------------------------------------------------
|
117
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
118
|
+
[1m[35m (0.1ms)[0m begin transaction
|
119
|
+
------------------------------------------------------
|
120
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
121
|
+
------------------------------------------------------
|
122
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
123
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:10:00.238192"], ["updated_at", "2016-02-07 23:10:00.238192"]]
|
124
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
126
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:10:00.243915"], ["updated_at", "2016-02-07 23:10:00.243915"]]
|
127
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
128
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
129
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
131
|
+
------------------------------------------------------
|
132
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
133
|
+
------------------------------------------------------
|
134
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
135
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:10:19.480129"], ["updated_at", "2016-02-07 23:10:19.480129"]]
|
136
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
138
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140
|
+
------------------------------------------------------
|
141
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
142
|
+
------------------------------------------------------
|
143
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
144
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:10:59.973612"], ["updated_at", "2016-02-07 23:10:59.973612"]]
|
145
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
146
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
147
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
149
|
+
------------------------------------------------------
|
150
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
151
|
+
------------------------------------------------------
|
152
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
153
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:11:24.069983"], ["updated_at", "2016-02-07 23:11:24.069983"]]
|
154
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
155
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
156
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
157
|
+
[1m[35m (0.1ms)[0m begin transaction
|
158
|
+
------------------------------------------------------
|
159
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
160
|
+
------------------------------------------------------
|
161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:15:25.469625"], ["updated_at", "2016-02-07 23:15:25.469625"]]
|
163
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
164
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
165
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
167
|
+
------------------------------------------------------
|
168
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
169
|
+
------------------------------------------------------
|
170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
171
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:16:58.930687"], ["updated_at", "2016-02-07 23:16:58.930687"]]
|
172
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
173
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
174
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
175
|
+
[1m[35m (0.1ms)[0m begin transaction
|
176
|
+
------------------------------------------------------
|
177
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
178
|
+
------------------------------------------------------
|
179
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
180
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:17:07.735153"], ["updated_at", "2016-02-07 23:17:07.735153"]]
|
181
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
182
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
184
|
+
------------------------------------------------------
|
185
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
186
|
+
------------------------------------------------------
|
187
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
188
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:18:53.931857"], ["updated_at", "2016-02-07 23:18:53.931857"]]
|
189
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
190
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
191
|
+
[1m[35m (0.1ms)[0m begin transaction
|
192
|
+
------------------------------------------------------
|
193
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
194
|
+
------------------------------------------------------
|
195
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
196
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:19:55.877677"], ["updated_at", "2016-02-07 23:19:55.877677"]]
|
197
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
198
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
199
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:19:55.883238"], ["updated_at", "2016-02-07 23:19:55.883238"]]
|
200
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
201
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
202
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:19:55.885610"], ["id", 1]]
|
203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
204
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
205
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
206
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208
|
+
------------------------------------------------------
|
209
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
210
|
+
------------------------------------------------------
|
211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
212
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:20:29.249026"], ["updated_at", "2016-02-07 23:20:29.249026"]]
|
213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
214
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
215
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:20:29.256125"], ["updated_at", "2016-02-07 23:20:29.256125"]]
|
216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
217
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
219
|
+
------------------------------------------------------
|
220
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
221
|
+
------------------------------------------------------
|
222
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
223
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:17.388672"], ["updated_at", "2016-02-07 23:21:17.388672"]]
|
224
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
226
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:21:17.394389"], ["updated_at", "2016-02-07 23:21:17.394389"]]
|
227
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
228
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:21:17.396515"], ["id", 1]]
|
230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
232
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
233
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
235
|
+
------------------------------------------------------
|
236
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
237
|
+
------------------------------------------------------
|
238
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:33.595585"], ["updated_at", "2016-02-07 23:21:33.595585"]]
|
240
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
242
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:21:33.601359"], ["updated_at", "2016-02-07 23:21:33.601359"]]
|
243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
245
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:21:33.603434"], ["id", 1]]
|
246
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
247
|
+
[1m[35mBasicBuyStrategy Load (0.2ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
248
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
249
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251
|
+
------------------------------------------------------
|
252
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
253
|
+
------------------------------------------------------
|
254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
255
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:54.933117"], ["updated_at", "2016-02-07 23:21:54.933117"]]
|
256
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
258
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:21:54.939560"], ["updated_at", "2016-02-07 23:21:54.939560"]]
|
259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
261
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:21:54.941529"], ["id", 1]]
|
262
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
263
|
+
[1m[35mBasicBuyStrategy Load (0.2ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
264
|
+
[1m[36mBasicBuyStrategy Load (0.1ms)[0m [1mSELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1[0m [["id", 1]]
|
265
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
266
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
267
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
268
|
+
[1m[35m (0.1ms)[0m begin transaction
|
269
|
+
------------------------------------------------------
|
270
|
+
DynamorphicTest: test_sets_the_polymorphic_association
|
271
|
+
------------------------------------------------------
|
272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
273
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:23:05.907138"], ["updated_at", "2016-02-07 23:23:05.907138"]]
|
274
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
276
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:23:05.913317"], ["updated_at", "2016-02-07 23:23:05.913317"]]
|
277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:23:05.915613"], ["id", 1]]
|
280
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
281
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
282
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
283
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
285
|
+
-----------------------------------------------------------------
|
286
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
287
|
+
-----------------------------------------------------------------
|
288
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:24:56.773202"], ["updated_at", "2016-02-07 23:24:56.773202"]]
|
290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
292
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:24:56.780271"], ["updated_at", "2016-02-07 23:24:56.780271"]]
|
293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
295
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:24:56.782144"], ["id", 1]]
|
296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
297
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
298
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
299
|
+
[1m[35m (0.0ms)[0m begin transaction
|
300
|
+
---------------------------------------------------------------
|
301
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association
|
302
|
+
---------------------------------------------------------------
|
303
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:24:56.788739"], ["updated_at", "2016-02-07 23:24:56.788739"]]
|
305
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
307
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:24:56.789822"], ["updated_at", "2016-02-07 23:24:56.789822"]]
|
308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
310
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:24:56.790664"], ["updated_at", "2016-02-07 23:24:56.790664"]]
|
311
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
312
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:24:56.791628"], ["id", 1]]
|
314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
316
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:24:56.792708"], ["id", 2]]
|
317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
318
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
319
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
320
|
+
[1m[35m (0.1ms)[0m begin transaction
|
321
|
+
-----------------------------------------------------------------
|
322
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
323
|
+
-----------------------------------------------------------------
|
324
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
325
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:26:01.015566"], ["updated_at", "2016-02-07 23:26:01.015566"]]
|
326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
327
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
329
|
+
-----------------------------------------------------------------
|
330
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
331
|
+
-----------------------------------------------------------------
|
332
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
333
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:28:01.704611"], ["updated_at", "2016-02-07 23:28:01.704611"]]
|
334
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
335
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
337
|
+
-----------------------------------------------------------------
|
338
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
339
|
+
-----------------------------------------------------------------
|
340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:28:52.915974"], ["updated_at", "2016-02-07 23:28:52.915974"]]
|
342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
343
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
345
|
+
-----------------------------------------------------------------
|
346
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
347
|
+
-----------------------------------------------------------------
|
348
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
349
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:30:34.415112"], ["updated_at", "2016-02-07 23:30:34.415112"]]
|
350
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
352
|
+
[1m[35m (0.1ms)[0m begin transaction
|
353
|
+
-----------------------------------------------------------------
|
354
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
355
|
+
-----------------------------------------------------------------
|
356
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
357
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:17.968366"], ["updated_at", "2016-02-07 23:33:17.968366"]]
|
358
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
359
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
360
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
361
|
+
---------------------------------------------------------------
|
362
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association
|
363
|
+
---------------------------------------------------------------
|
364
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
365
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:33:17.973707"], ["updated_at", "2016-02-07 23:33:17.973707"]]
|
366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
368
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:17.975229"], ["updated_at", "2016-02-07 23:33:17.975229"]]
|
369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
371
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:33:17.979480"], ["updated_at", "2016-02-07 23:33:17.979480"]]
|
372
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
373
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
374
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:33:17.980586"], ["id", 1]]
|
375
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
376
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
377
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:33:17.984296"], ["id", 2]]
|
378
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
379
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
380
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
382
|
+
-----------------------------------------------------------------
|
383
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
384
|
+
-----------------------------------------------------------------
|
385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
386
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:31.487103"], ["updated_at", "2016-02-07 23:33:31.487103"]]
|
387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
390
|
+
-----------------------------------------------------------------
|
391
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
392
|
+
-----------------------------------------------------------------
|
393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
394
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:53.503341"], ["updated_at", "2016-02-07 23:33:53.503341"]]
|
395
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
398
|
+
---------------------------------------------------------------
|
399
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association
|
400
|
+
---------------------------------------------------------------
|
401
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
402
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:36:59.932931"], ["updated_at", "2016-02-07 23:36:59.932931"]]
|
403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
405
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:36:59.935510"], ["updated_at", "2016-02-07 23:36:59.935510"]]
|
406
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
408
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:36:59.940227"], ["updated_at", "2016-02-07 23:36:59.940227"]]
|
409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:36:59.941341"], ["id", 1]]
|
412
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
414
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:36:59.945139"], ["id", 2]]
|
415
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
416
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
417
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
418
|
+
[1m[35m (0.0ms)[0m begin transaction
|
419
|
+
-----------------------------------------------------------------
|
420
|
+
DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
|
421
|
+
-----------------------------------------------------------------
|
422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
423
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:36:59.947814"], ["updated_at", "2016-02-07 23:36:59.947814"]]
|
424
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
425
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
426
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:36:59.948852"], ["updated_at", "2016-02-07 23:36:59.948852"]]
|
427
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
429
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:36:59.949959"], ["id", 1]]
|
430
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
431
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
432
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
433
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
434
|
+
[1m[35m (0.1ms)[0m begin transaction
|
435
|
+
---------------------------------------------------------------
|
436
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association
|
437
|
+
---------------------------------------------------------------
|
438
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
439
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:37:14.671236"], ["updated_at", "2016-02-07 23:37:14.671236"]]
|
440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
441
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
442
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:37:14.674751"], ["updated_at", "2016-02-07 23:37:14.674751"]]
|
443
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
445
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:37:14.680175"], ["updated_at", "2016-02-07 23:37:14.680175"]]
|
446
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
448
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:37:14.681355"], ["id", 1]]
|
449
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
451
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:37:14.684703"], ["id", 2]]
|
452
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
453
|
+
[1m[35mPortfolio Load (0.2ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
454
|
+
[1m[36mPortfolio Load (0.1ms)[0m [1mSELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
455
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
456
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
457
|
+
[1m[35m (0.1ms)[0m begin transaction
|
458
|
+
--------------------------------------------------------------------------
|
459
|
+
DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
|
460
|
+
--------------------------------------------------------------------------
|
461
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
462
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.495687"], ["updated_at", "2016-02-07 23:44:52.495687"]]
|
463
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
465
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:44:52.501441"], ["updated_at", "2016-02-07 23:44:52.501441"]]
|
466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
468
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:44:52.503534"], ["id", 1]]
|
469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
470
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
471
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
473
|
+
---------------------------------------------------------------
|
474
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
475
|
+
---------------------------------------------------------------
|
476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
477
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.510336"], ["updated_at", "2016-02-07 23:44:52.510336"]]
|
478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
480
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:44:52.511612"], ["updated_at", "2016-02-07 23:44:52.511612"]]
|
481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
482
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
483
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.512437"], ["updated_at", "2016-02-07 23:44:52.512437"]]
|
484
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
485
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
486
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:44:52.513224"], ["id", 1]]
|
487
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
489
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:44:52.514254"], ["id", 2]]
|
490
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
491
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
492
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
494
|
+
-------------------------------------------------------------------------------------
|
495
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
|
496
|
+
-------------------------------------------------------------------------------------
|
497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
498
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.516456"], ["updated_at", "2016-02-07 23:44:52.516456"]]
|
499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
501
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:44:52.517294"], ["updated_at", "2016-02-07 23:44:52.517294"]]
|
502
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
504
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.552902"], ["updated_at", "2016-02-07 23:44:52.552902"]]
|
505
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
506
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
507
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
508
|
+
[1m[35m (0.1ms)[0m begin transaction
|
509
|
+
--------------------------------------------------------------------------------------
|
510
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
511
|
+
--------------------------------------------------------------------------------------
|
512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
513
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:45:08.719714"], ["updated_at", "2016-02-07 23:45:08.719714"]]
|
514
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
516
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:45:08.721314"], ["updated_at", "2016-02-07 23:45:08.721314"]]
|
517
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
518
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
520
|
+
[1m[35m (0.1ms)[0m begin transaction
|
521
|
+
--------------------------------------------------------------------------
|
522
|
+
DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
|
523
|
+
--------------------------------------------------------------------------
|
524
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
525
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.134196"], ["updated_at", "2016-02-07 23:46:22.134196"]]
|
526
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
528
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:22.139487"], ["updated_at", "2016-02-07 23:46:22.139487"]]
|
529
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
530
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
531
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:22.141470"], ["id", 1]]
|
532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
533
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
534
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
535
|
+
[1m[35m (0.1ms)[0m begin transaction
|
536
|
+
-------------------------------------------------------------------------------------
|
537
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
|
538
|
+
-------------------------------------------------------------------------------------
|
539
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
540
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.149145"], ["updated_at", "2016-02-07 23:46:22.149145"]]
|
541
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
543
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:22.150565"], ["updated_at", "2016-02-07 23:46:22.150565"]]
|
544
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
545
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
546
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.151651"], ["updated_at", "2016-02-07 23:46:22.151651"]]
|
547
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
548
|
+
[1m[35mPortfolio Load (0.2ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
549
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
550
|
+
[1m[35m (0.1ms)[0m begin transaction
|
551
|
+
---------------------------------------------------------------
|
552
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
553
|
+
---------------------------------------------------------------
|
554
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
555
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.892366"], ["updated_at", "2016-02-07 23:46:22.892366"]]
|
556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
558
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:22.893817"], ["updated_at", "2016-02-07 23:46:22.893817"]]
|
559
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
560
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
561
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.894911"], ["updated_at", "2016-02-07 23:46:22.894911"]]
|
562
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
564
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:22.896028"], ["id", 1]]
|
565
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
566
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
567
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:22.897081"], ["id", 2]]
|
568
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
569
|
+
[1m[35mPortfolio Load (0.0ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
570
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
571
|
+
[1m[35m (0.0ms)[0m begin transaction
|
572
|
+
--------------------------------------------------------------------------------------
|
573
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
574
|
+
--------------------------------------------------------------------------------------
|
575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
576
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.899067"], ["updated_at", "2016-02-07 23:46:22.899067"]]
|
577
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
578
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
579
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:22.900081"], ["updated_at", "2016-02-07 23:46:22.900081"]]
|
580
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
581
|
+
[1m[36mPortfolio Load (0.1ms)[0m [1mSELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
582
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
583
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
585
|
+
---------------------------------------------------------------
|
586
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
587
|
+
---------------------------------------------------------------
|
588
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.939371"], ["updated_at", "2016-02-07 23:46:29.939371"]]
|
590
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
592
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:29.942207"], ["updated_at", "2016-02-07 23:46:29.942207"]]
|
593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
594
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
595
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.947930"], ["updated_at", "2016-02-07 23:46:29.947930"]]
|
596
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
597
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
598
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:29.949275"], ["id", 1]]
|
599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
601
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:29.953260"], ["id", 2]]
|
602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
603
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
604
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
605
|
+
[1m[35m (0.1ms)[0m begin transaction
|
606
|
+
--------------------------------------------------------------------------
|
607
|
+
DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
|
608
|
+
--------------------------------------------------------------------------
|
609
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
610
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.955879"], ["updated_at", "2016-02-07 23:46:29.955879"]]
|
611
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
612
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
613
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:29.956859"], ["updated_at", "2016-02-07 23:46:29.956859"]]
|
614
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
616
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:29.957793"], ["id", 1]]
|
617
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
618
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
619
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
620
|
+
[1m[35m (0.1ms)[0m begin transaction
|
621
|
+
-------------------------------------------------------------------------------------
|
622
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
|
623
|
+
-------------------------------------------------------------------------------------
|
624
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
625
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.961867"], ["updated_at", "2016-02-07 23:46:29.961867"]]
|
626
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
627
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
628
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:30.019580"], ["updated_at", "2016-02-07 23:46:30.019580"]]
|
629
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
630
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:30.021759"], ["updated_at", "2016-02-07 23:46:30.021759"]]
|
632
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
633
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
634
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
636
|
+
--------------------------------------------------------------------------------------
|
637
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
638
|
+
--------------------------------------------------------------------------------------
|
639
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
640
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:35.283134"], ["updated_at", "2016-02-07 23:46:35.283134"]]
|
641
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
642
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
643
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:35.284632"], ["updated_at", "2016-02-07 23:46:35.284632"]]
|
644
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
645
|
+
[1m[36mPortfolio Load (0.1ms)[0m [1mSELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
646
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
648
|
+
[1m[35m (0.1ms)[0m begin transaction
|
649
|
+
---------------------------------------------------------------
|
650
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
651
|
+
---------------------------------------------------------------
|
652
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
653
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:41.432884"], ["updated_at", "2016-02-07 23:46:41.432884"]]
|
654
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
655
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
656
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:41.435819"], ["updated_at", "2016-02-07 23:46:41.435819"]]
|
657
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
659
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:41.444323"], ["updated_at", "2016-02-07 23:46:41.444323"]]
|
660
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
662
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:41.446046"], ["id", 1]]
|
663
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
664
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
665
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:46:41.449375"], ["id", 2]]
|
666
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
667
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
668
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
669
|
+
[1m[35m (0.0ms)[0m begin transaction
|
670
|
+
--------------------------------------------------------------------------------------
|
671
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
672
|
+
--------------------------------------------------------------------------------------
|
673
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
674
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:41.452076"], ["updated_at", "2016-02-07 23:46:41.452076"]]
|
675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
676
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
677
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:46:41.453036"], ["updated_at", "2016-02-07 23:46:41.453036"]]
|
678
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
679
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
680
|
+
[1m[35m (0.1ms)[0m begin transaction
|
681
|
+
--------------------------------------------------------------------------
|
682
|
+
DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
|
683
|
+
--------------------------------------------------------------------------
|
684
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
685
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.292044"], ["updated_at", "2016-02-07 23:51:53.292044"]]
|
686
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
687
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
688
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:51:53.297505"], ["updated_at", "2016-02-07 23:51:53.297505"]]
|
689
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
690
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
691
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:51:53.299489"], ["id", 1]]
|
692
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
693
|
+
[1m[35mBasicBuyStrategy Load (0.1ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
694
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
695
|
+
[1m[35m (0.1ms)[0m begin transaction
|
696
|
+
-------------------------------------------------------------------------------------
|
697
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
|
698
|
+
-------------------------------------------------------------------------------------
|
699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
700
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.306669"], ["updated_at", "2016-02-07 23:51:53.306669"]]
|
701
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
703
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:51:53.308467"], ["updated_at", "2016-02-07 23:51:53.308467"]]
|
704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
705
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
706
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.309713"], ["updated_at", "2016-02-07 23:51:53.309713"]]
|
707
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
709
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "Portfolio"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:51:53.311227"], ["id", 1]]
|
710
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
712
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "Portfolio"], ["buy_strategy_id", 2], ["updated_at", "2016-02-07 23:51:53.343032"], ["id", 2]]
|
713
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
714
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
715
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
717
|
+
--------------------------------------------------------------------------------------
|
718
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
719
|
+
--------------------------------------------------------------------------------------
|
720
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
721
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.345606"], ["updated_at", "2016-02-07 23:51:53.345606"]]
|
722
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
723
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
724
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:51:53.347380"], ["updated_at", "2016-02-07 23:51:53.347380"]]
|
725
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
727
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "Portfolio"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:51:53.348742"], ["id", 1]]
|
728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
729
|
+
[1m[35mPortfolio Load (0.0ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
730
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
731
|
+
[1m[35m (0.1ms)[0m begin transaction
|
732
|
+
---------------------------------------------------------------
|
733
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
734
|
+
---------------------------------------------------------------
|
735
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.351024"], ["updated_at", "2016-02-07 23:51:53.351024"]]
|
737
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
738
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
739
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:51:53.351943"], ["updated_at", "2016-02-07 23:51:53.351943"]]
|
740
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
741
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
742
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.352800"], ["updated_at", "2016-02-07 23:51:53.352800"]]
|
743
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
744
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
745
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:51:53.353623"], ["id", 1]]
|
746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
748
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:51:53.354490"], ["id", 2]]
|
749
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
750
|
+
[1m[35mPortfolio Load (0.0ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
751
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
752
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
754
|
+
---------------------------------------------------------------
|
755
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
756
|
+
---------------------------------------------------------------
|
757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
758
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:17.501671"], ["updated_at", "2016-02-07 23:52:17.501671"]]
|
759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:17.504219"], ["updated_at", "2016-02-07 23:52:17.504219"]]
|
762
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
763
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
764
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:17.509297"], ["updated_at", "2016-02-07 23:52:17.509297"]]
|
765
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
766
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
767
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:17.510554"], ["id", 1]]
|
768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:17.513481"], ["id", 2]]
|
771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
773
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
775
|
+
--------------------------------------------------------------------------------------
|
776
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
777
|
+
--------------------------------------------------------------------------------------
|
778
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
779
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:17.516304"], ["updated_at", "2016-02-07 23:52:17.516304"]]
|
780
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
781
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
782
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:17.517270"], ["updated_at", "2016-02-07 23:52:17.517270"]]
|
783
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
785
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "Portfolio"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:17.518321"], ["id", 1]]
|
786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
787
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
788
|
+
[1m[35m (0.1ms)[0m begin transaction
|
789
|
+
-------------------------------------------------------------------------------------
|
790
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
|
791
|
+
-------------------------------------------------------------------------------------
|
792
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
793
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.266462"], ["updated_at", "2016-02-07 23:52:43.266462"]]
|
794
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
795
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
796
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:43.269067"], ["updated_at", "2016-02-07 23:52:43.269067"]]
|
797
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
798
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.273710"], ["updated_at", "2016-02-07 23:52:43.273710"]]
|
800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
801
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
802
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.274977"], ["id", 1]]
|
803
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
804
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
805
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.278216"], ["id", 2]]
|
806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
807
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
808
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
810
|
+
---------------------------------------------------------------
|
811
|
+
DynamorphicTest: test_gets_the_has_many_dynamorphic_association
|
812
|
+
---------------------------------------------------------------
|
813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.280921"], ["updated_at", "2016-02-07 23:52:43.280921"]]
|
815
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:43.282056"], ["updated_at", "2016-02-07 23:52:43.282056"]]
|
818
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.283012"], ["updated_at", "2016-02-07 23:52:43.283012"]]
|
821
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
823
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ?[0m [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.285334"], ["id", 1]]
|
824
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.286764"], ["id", 2]]
|
827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
828
|
+
[1m[35mPortfolio Load (0.0ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
829
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
830
|
+
[1m[35m (0.0ms)[0m begin transaction
|
831
|
+
--------------------------------------------------------------------------
|
832
|
+
DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
|
833
|
+
--------------------------------------------------------------------------
|
834
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
835
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.288626"], ["updated_at", "2016-02-07 23:52:43.288626"]]
|
836
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
837
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
838
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:43.289435"], ["updated_at", "2016-02-07 23:52:43.289435"]]
|
839
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
841
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.290315"], ["id", 1]]
|
842
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
843
|
+
[1m[35mBasicBuyStrategy Load (0.2ms)[0m SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
|
844
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
845
|
+
[1m[35m (0.1ms)[0m begin transaction
|
846
|
+
--------------------------------------------------------------------------------------
|
847
|
+
DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
|
848
|
+
--------------------------------------------------------------------------------------
|
849
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
850
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.344055"], ["updated_at", "2016-02-07 23:52:43.344055"]]
|
851
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
852
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
853
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-02-07 23:52:43.346598"], ["updated_at", "2016-02-07 23:52:43.346598"]]
|
854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
855
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
856
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "portfolios" SET "buy_strategy_type" = ?, "buy_strategy_id" = ?, "updated_at" = ? WHERE "portfolios"."id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1], ["updated_at", "2016-02-07 23:52:43.348505"], ["id", 1]]
|
857
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mPortfolio Load (0.1ms)[0m SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
|
859
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|