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.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/lib/dynamorphic.rb +4 -0
  6. data/lib/dynamorphic/dynamorphic_setter.rb +57 -0
  7. data/lib/dynamorphic/version.rb +3 -0
  8. data/lib/tasks/dynamorphic_tasks.rake +4 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/models/advanced_buy_strategy.rb +3 -0
  16. data/test/dummy/app/models/basic_buy_strategy.rb +3 -0
  17. data/test/dummy/app/models/portfolio.rb +3 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/bin/bundle +3 -0
  20. data/test/dummy/bin/rails +4 -0
  21. data/test/dummy/bin/rake +4 -0
  22. data/test/dummy/bin/setup +29 -0
  23. data/test/dummy/config.ru +4 -0
  24. data/test/dummy/config/application.rb +26 -0
  25. data/test/dummy/config/boot.rb +5 -0
  26. data/test/dummy/config/database.yml +25 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +41 -0
  29. data/test/dummy/config/environments/production.rb +79 -0
  30. data/test/dummy/config/environments/test.rb +42 -0
  31. data/test/dummy/config/initializers/assets.rb +11 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +4 -0
  37. data/test/dummy/config/initializers/session_store.rb +3 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +23 -0
  40. data/test/dummy/config/routes.rb +56 -0
  41. data/test/dummy/config/secrets.yml +22 -0
  42. data/test/dummy/db/development.sqlite3 +0 -0
  43. data/test/dummy/db/migrate/20160207224617_create_basic_buy_strategies.rb +8 -0
  44. data/test/dummy/db/migrate/20160207224627_create_advanced_buy_strategies.rb +8 -0
  45. data/test/dummy/db/migrate/20160207230259_create_portfolios.rb +8 -0
  46. data/test/dummy/db/schema.rb +35 -0
  47. data/test/dummy/db/test.sqlite3 +0 -0
  48. data/test/dummy/log/development.log +60 -0
  49. data/test/dummy/log/test.log +859 -0
  50. data/test/dummy/public/404.html +67 -0
  51. data/test/dummy/public/422.html +67 -0
  52. data/test/dummy/public/500.html +66 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/test/fixtures/portfolios.yml +11 -0
  55. data/test/dummy/test/models/portfolio_test.rb +7 -0
  56. data/test/dynamorphic_test.rb +44 -0
  57. data/test/test_helper.rb +20 -0
  58. 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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ 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"] %>
@@ -0,0 +1,8 @@
1
+ class CreateBasicBuyStrategies < ActiveRecord::Migration
2
+ def change
3
+ create_table :basic_buy_strategies do |t|
4
+ t.string :name
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ class CreateAdvancedBuyStrategies < ActiveRecord::Migration
2
+ def change
3
+ create_table :advanced_buy_strategies do |t|
4
+ t.string :name
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ class CreatePortfolios < ActiveRecord::Migration
2
+ def change
3
+ create_table :portfolios do |t|
4
+ t.references :buy_strategy, polymorphic: true
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -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
@@ -0,0 +1,60 @@
1
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.3ms) select sqlite_version(*)
3
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateStocks (20160207224555)
6
+  (0.0ms) begin transaction
7
+  (0.3ms) CREATE TABLE "stocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224555"]]
9
+  (0.6ms) commit transaction
10
+ Migrating to CreateBasicBuyStrategies (20160207224617)
11
+  (0.0ms) begin transaction
12
+  (0.2ms) CREATE TABLE "basic_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224617"]]
14
+  (0.7ms) commit transaction
15
+ Migrating to CreateAdvancedBuyStrategies (20160207224627)
16
+  (0.1ms) begin transaction
17
+  (0.2ms) CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
18
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224627"]]
19
+  (0.6ms) commit transaction
20
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
22
+  (0.1ms) select sqlite_version(*)
23
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ Migrating to CreateStocks (20160207224555)
26
+  (0.1ms) begin transaction
27
+  (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224555"]]
29
+  (0.7ms) commit transaction
30
+ Migrating to CreateBasicBuyStrategies (20160207224617)
31
+  (0.0ms) begin transaction
32
+  (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224617"]]
34
+  (0.6ms) commit transaction
35
+ Migrating to CreateAdvancedBuyStrategies (20160207224627)
36
+  (0.1ms) begin transaction
37
+  (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224627"]]
39
+  (0.6ms) commit transaction
40
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
42
+  (0.1ms) select sqlite_version(*)
43
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
44
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+ Migrating to CreateBasicBuyStrategies (20160207224617)
46
+  (0.1ms) begin transaction
47
+  (0.3ms) 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
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224617"]]
49
+  (0.6ms) commit transaction
50
+ Migrating to CreateAdvancedBuyStrategies (20160207224627)
51
+  (0.0ms) begin transaction
52
+  (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207224627"]]
54
+  (0.7ms) commit transaction
55
+ Migrating to CreatePortfolios (20160207230259)
56
+  (0.0ms) begin transaction
57
+  (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160207230259"]]
59
+  (0.6ms) commit transaction
60
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,859 @@
1
+  (0.1ms) begin transaction
2
+ ---------------------------
3
+ DynamorphicTest: test_truth
4
+ ---------------------------
5
+  (0.0ms) rollback transaction
6
+  (2.0ms) CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
7
+  (1.1ms) 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
+  (1.0ms) 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) 
9
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
10
+  (0.0ms) select sqlite_version(*)
11
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12
+  (0.1ms) SELECT version FROM "schema_migrations"
13
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207224627')
14
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207224555')
15
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207224617')
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+  (0.1ms) begin transaction
18
+ ------------------------------------------------------
19
+ DynamorphicTest: test_gets_the_polymorphic_association
20
+ ------------------------------------------------------
21
+  (0.0ms) rollback transaction
22
+  (0.0ms) begin transaction
23
+ ------------------------------------------------------
24
+ DynamorphicTest: test_sets_the_polymorphic_association
25
+ ------------------------------------------------------
26
+  (0.0ms) rollback transaction
27
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+  (0.1ms) begin transaction
29
+ ------------------------------------------------------
30
+ DynamorphicTest: test_gets_the_polymorphic_association
31
+ ------------------------------------------------------
32
+  (0.0ms) rollback transaction
33
+  (0.1ms) begin transaction
34
+ ------------------------------------------------------
35
+ DynamorphicTest: test_sets_the_polymorphic_association
36
+ ------------------------------------------------------
37
+  (0.0ms) rollback transaction
38
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+  (0.1ms) begin transaction
40
+ ------------------------------------------------------
41
+ DynamorphicTest: test_gets_the_polymorphic_association
42
+ ------------------------------------------------------
43
+  (0.0ms) rollback transaction
44
+  (0.0ms) begin transaction
45
+ ------------------------------------------------------
46
+ DynamorphicTest: test_sets_the_polymorphic_association
47
+ ------------------------------------------------------
48
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
+  (0.1ms) begin transaction
50
+ ------------------------------------------------------
51
+ DynamorphicTest: test_gets_the_polymorphic_association
52
+ ------------------------------------------------------
53
+  (0.0ms) rollback transaction
54
+  (0.0ms) begin transaction
55
+ ------------------------------------------------------
56
+ DynamorphicTest: test_sets_the_polymorphic_association
57
+ ------------------------------------------------------
58
+  (0.1ms) rollback transaction
59
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+  (0.1ms) begin transaction
61
+ ------------------------------------------------------
62
+ DynamorphicTest: test_gets_the_polymorphic_association
63
+ ------------------------------------------------------
64
+  (0.0ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+ ------------------------------------------------------
67
+ DynamorphicTest: test_sets_the_polymorphic_association
68
+ ------------------------------------------------------
69
+  (0.1ms) rollback transaction
70
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
71
+  (0.1ms) begin transaction
72
+ ------------------------------------------------------
73
+ DynamorphicTest: test_gets_the_polymorphic_association
74
+ ------------------------------------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ ------------------------------------------------------
78
+ DynamorphicTest: test_sets_the_polymorphic_association
79
+ ------------------------------------------------------
80
+  (0.0ms) rollback transaction
81
+  (1.8ms) CREATE TABLE "advanced_buy_strategies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
82
+  (1.1ms) 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
+  (0.9ms) 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) 
84
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
85
+  (0.0ms) select sqlite_version(*)
86
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
87
+  (0.1ms) SELECT version FROM "schema_migrations"
88
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207230259')
89
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207224617')
90
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160207224627')
91
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
92
+  (0.1ms) begin transaction
93
+ ------------------------------------------------------
94
+ DynamorphicTest: test_gets_the_polymorphic_association
95
+ ------------------------------------------------------
96
+  (0.0ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+ ------------------------------------------------------
99
+ DynamorphicTest: test_sets_the_polymorphic_association
100
+ ------------------------------------------------------
101
+  (0.0ms) rollback transaction
102
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
103
+  (0.1ms) begin transaction
104
+ ------------------------------------------------------
105
+ DynamorphicTest: test_sets_the_polymorphic_association
106
+ ------------------------------------------------------
107
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
108
+  (0.1ms) begin transaction
109
+ ------------------------------------------------------
110
+ DynamorphicTest: test_sets_the_polymorphic_association
111
+ ------------------------------------------------------
112
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
113
+  (0.1ms) begin transaction
114
+ ------------------------------------------------------
115
+ DynamorphicTest: test_sets_the_polymorphic_association
116
+ ------------------------------------------------------
117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
118
+  (0.1ms) begin transaction
119
+ ------------------------------------------------------
120
+ DynamorphicTest: test_sets_the_polymorphic_association
121
+ ------------------------------------------------------
122
+  (0.0ms) SAVEPOINT active_record_1
123
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
125
+  (0.0ms) SAVEPOINT active_record_1
126
+ SQL (0.9ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:10:00.243915"], ["updated_at", "2016-02-07 23:10:00.243915"]]
127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
128
+  (1.2ms) rollback transaction
129
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
130
+  (0.1ms) begin transaction
131
+ ------------------------------------------------------
132
+ DynamorphicTest: test_sets_the_polymorphic_association
133
+ ------------------------------------------------------
134
+  (0.0ms) SAVEPOINT active_record_1
135
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137
+  (1.1ms) rollback transaction
138
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
139
+  (0.1ms) begin transaction
140
+ ------------------------------------------------------
141
+ DynamorphicTest: test_sets_the_polymorphic_association
142
+ ------------------------------------------------------
143
+  (0.0ms) SAVEPOINT active_record_1
144
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+  (0.9ms) rollback transaction
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+  (0.1ms) begin transaction
149
+ ------------------------------------------------------
150
+ DynamorphicTest: test_sets_the_polymorphic_association
151
+ ------------------------------------------------------
152
+  (0.1ms) SAVEPOINT active_record_1
153
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.7ms) rollback transaction
156
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
157
+  (0.1ms) begin transaction
158
+ ------------------------------------------------------
159
+ DynamorphicTest: test_sets_the_polymorphic_association
160
+ ------------------------------------------------------
161
+  (0.1ms) SAVEPOINT active_record_1
162
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.8ms) rollback transaction
165
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
+  (0.1ms) begin transaction
167
+ ------------------------------------------------------
168
+ DynamorphicTest: test_sets_the_polymorphic_association
169
+ ------------------------------------------------------
170
+  (0.0ms) SAVEPOINT active_record_1
171
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
173
+  (0.7ms) rollback transaction
174
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
175
+  (0.1ms) begin transaction
176
+ ------------------------------------------------------
177
+ DynamorphicTest: test_sets_the_polymorphic_association
178
+ ------------------------------------------------------
179
+  (0.0ms) SAVEPOINT active_record_1
180
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
183
+  (0.1ms) begin transaction
184
+ ------------------------------------------------------
185
+ DynamorphicTest: test_sets_the_polymorphic_association
186
+ ------------------------------------------------------
187
+  (0.0ms) SAVEPOINT active_record_1
188
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
191
+  (0.1ms) begin transaction
192
+ ------------------------------------------------------
193
+ DynamorphicTest: test_sets_the_polymorphic_association
194
+ ------------------------------------------------------
195
+  (0.0ms) SAVEPOINT active_record_1
196
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
198
+  (0.1ms) SAVEPOINT active_record_1
199
+ SQL (1.4ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:19:55.883238"], ["updated_at", "2016-02-07 23:19:55.883238"]]
200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
201
+  (0.0ms) SAVEPOINT active_record_1
202
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
204
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
205
+  (0.8ms) rollback transaction
206
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
207
+  (0.1ms) begin transaction
208
+ ------------------------------------------------------
209
+ DynamorphicTest: test_sets_the_polymorphic_association
210
+ ------------------------------------------------------
211
+  (0.0ms) SAVEPOINT active_record_1
212
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
214
+  (0.1ms) SAVEPOINT active_record_1
215
+ SQL (0.9ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:20:29.256125"], ["updated_at", "2016-02-07 23:20:29.256125"]]
216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+  (0.1ms) begin transaction
219
+ ------------------------------------------------------
220
+ DynamorphicTest: test_sets_the_polymorphic_association
221
+ ------------------------------------------------------
222
+  (0.0ms) SAVEPOINT active_record_1
223
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ SQL (1.0ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:17.394389"], ["updated_at", "2016-02-07 23:21:17.394389"]]
227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228
+  (0.0ms) SAVEPOINT active_record_1
229
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
232
+  (1.2ms) rollback transaction
233
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
234
+  (0.1ms) begin transaction
235
+ ------------------------------------------------------
236
+ DynamorphicTest: test_sets_the_polymorphic_association
237
+ ------------------------------------------------------
238
+  (0.0ms) SAVEPOINT active_record_1
239
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241
+  (0.0ms) SAVEPOINT active_record_1
242
+ SQL (1.1ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:33.601359"], ["updated_at", "2016-02-07 23:21:33.601359"]]
243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
244
+  (0.0ms) SAVEPOINT active_record_1
245
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
247
+ BasicBuyStrategy Load (0.2ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
248
+  (0.7ms) rollback transaction
249
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
250
+  (0.1ms) begin transaction
251
+ ------------------------------------------------------
252
+ DynamorphicTest: test_sets_the_polymorphic_association
253
+ ------------------------------------------------------
254
+  (0.1ms) SAVEPOINT active_record_1
255
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
257
+  (0.1ms) SAVEPOINT active_record_1
258
+ SQL (0.8ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:21:54.939560"], ["updated_at", "2016-02-07 23:21:54.939560"]]
259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
260
+  (0.0ms) SAVEPOINT active_record_1
261
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
263
+ BasicBuyStrategy Load (0.2ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
264
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
265
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
266
+  (0.2ms) rollback transaction
267
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
+  (0.1ms) begin transaction
269
+ ------------------------------------------------------
270
+ DynamorphicTest: test_sets_the_polymorphic_association
271
+ ------------------------------------------------------
272
+  (0.0ms) SAVEPOINT active_record_1
273
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
275
+  (0.1ms) SAVEPOINT active_record_1
276
+ SQL (0.9ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:23:05.913317"], ["updated_at", "2016-02-07 23:23:05.913317"]]
277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
278
+  (0.0ms) SAVEPOINT active_record_1
279
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
281
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
282
+  (1.0ms) rollback transaction
283
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
284
+  (0.1ms) begin transaction
285
+ -----------------------------------------------------------------
286
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
287
+ -----------------------------------------------------------------
288
+  (0.1ms) SAVEPOINT active_record_1
289
+ SQL (1.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
291
+  (0.0ms) SAVEPOINT active_record_1
292
+ SQL (0.7ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:24:56.780271"], ["updated_at", "2016-02-07 23:24:56.780271"]]
293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294
+  (0.0ms) SAVEPOINT active_record_1
295
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
297
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
298
+  (1.1ms) rollback transaction
299
+  (0.0ms) begin transaction
300
+ ---------------------------------------------------------------
301
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association
302
+ ---------------------------------------------------------------
303
+  (0.0ms) SAVEPOINT active_record_1
304
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
306
+  (0.0ms) SAVEPOINT active_record_1
307
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:24:56.789822"], ["updated_at", "2016-02-07 23:24:56.789822"]]
308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
309
+  (0.0ms) SAVEPOINT active_record_1
310
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
312
+  (0.0ms) SAVEPOINT active_record_1
313
+ SQL (0.0ms) 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.791628"], ["id", 1]]
314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
315
+  (0.1ms) SAVEPOINT active_record_1
316
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
318
+  (0.6ms) rollback transaction
319
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
320
+  (0.1ms) begin transaction
321
+ -----------------------------------------------------------------
322
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
323
+ -----------------------------------------------------------------
324
+  (0.0ms) SAVEPOINT active_record_1
325
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
327
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
328
+  (0.1ms) begin transaction
329
+ -----------------------------------------------------------------
330
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
331
+ -----------------------------------------------------------------
332
+  (0.1ms) SAVEPOINT active_record_1
333
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
335
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
336
+  (0.1ms) begin transaction
337
+ -----------------------------------------------------------------
338
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
339
+ -----------------------------------------------------------------
340
+  (0.0ms) SAVEPOINT active_record_1
341
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
343
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
344
+  (0.1ms) begin transaction
345
+ -----------------------------------------------------------------
346
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
347
+ -----------------------------------------------------------------
348
+  (0.0ms) SAVEPOINT active_record_1
349
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
351
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
352
+  (0.1ms) begin transaction
353
+ -----------------------------------------------------------------
354
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
355
+ -----------------------------------------------------------------
356
+  (0.0ms) SAVEPOINT active_record_1
357
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
359
+  (0.9ms) rollback transaction
360
+  (0.1ms) begin transaction
361
+ ---------------------------------------------------------------
362
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association
363
+ ---------------------------------------------------------------
364
+  (0.0ms) SAVEPOINT active_record_1
365
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:17.973707"], ["updated_at", "2016-02-07 23:33:17.973707"]]
366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
367
+  (0.0ms) SAVEPOINT active_record_1
368
+ SQL (0.9ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
370
+  (0.0ms) SAVEPOINT active_record_1
371
+ SQL (0.1ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:33:17.979480"], ["updated_at", "2016-02-07 23:33:17.979480"]]
372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
373
+  (0.0ms) SAVEPOINT active_record_1
374
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
376
+  (0.0ms) SAVEPOINT active_record_1
377
+ SQL (0.0ms) 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.984296"], ["id", 2]]
378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
379
+  (0.5ms) rollback transaction
380
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
381
+  (0.1ms) begin transaction
382
+ -----------------------------------------------------------------
383
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
384
+ -----------------------------------------------------------------
385
+  (0.0ms) SAVEPOINT active_record_1
386
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
389
+  (0.1ms) begin transaction
390
+ -----------------------------------------------------------------
391
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
392
+ -----------------------------------------------------------------
393
+  (0.0ms) SAVEPOINT active_record_1
394
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+  (0.1ms) begin transaction
398
+ ---------------------------------------------------------------
399
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association
400
+ ---------------------------------------------------------------
401
+  (0.0ms) SAVEPOINT active_record_1
402
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
404
+  (0.0ms) SAVEPOINT active_record_1
405
+ SQL (0.8ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:36:59.935510"], ["updated_at", "2016-02-07 23:36:59.935510"]]
406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
407
+  (0.0ms) SAVEPOINT active_record_1
408
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
410
+  (0.0ms) SAVEPOINT active_record_1
411
+ SQL (0.2ms) 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.941341"], ["id", 1]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
416
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
417
+  (0.5ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+ -----------------------------------------------------------------
420
+ DynamorphicTest: test_sets_the_belongs_to_dynamorphic_association
421
+ -----------------------------------------------------------------
422
+  (0.0ms) SAVEPOINT active_record_1
423
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
425
+  (0.0ms) SAVEPOINT active_record_1
426
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:36:59.948852"], ["updated_at", "2016-02-07 23:36:59.948852"]]
427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
428
+  (0.0ms) SAVEPOINT active_record_1
429
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
431
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
432
+  (0.5ms) rollback transaction
433
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
434
+  (0.1ms) begin transaction
435
+ ---------------------------------------------------------------
436
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association
437
+ ---------------------------------------------------------------
438
+  (0.1ms) SAVEPOINT active_record_1
439
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
441
+  (0.0ms) SAVEPOINT active_record_1
442
+ SQL (0.8ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:37:14.674751"], ["updated_at", "2016-02-07 23:37:14.674751"]]
443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
444
+  (0.0ms) SAVEPOINT active_record_1
445
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
447
+  (0.0ms) SAVEPOINT active_record_1
448
+ SQL (0.1ms) 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.681355"], ["id", 1]]
449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
450
+  (0.0ms) SAVEPOINT active_record_1
451
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
453
+ Portfolio Load (0.2ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
454
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
455
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
456
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
457
+  (0.1ms) begin transaction
458
+ --------------------------------------------------------------------------
459
+ DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
460
+ --------------------------------------------------------------------------
461
+  (0.0ms) SAVEPOINT active_record_1
462
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
464
+  (0.0ms) SAVEPOINT active_record_1
465
+ SQL (1.0ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.501441"], ["updated_at", "2016-02-07 23:44:52.501441"]]
466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
467
+  (0.0ms) SAVEPOINT active_record_1
468
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
470
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
471
+  (1.3ms) rollback transaction
472
+  (0.1ms) begin transaction
473
+ ---------------------------------------------------------------
474
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
475
+ ---------------------------------------------------------------
476
+  (0.0ms) SAVEPOINT active_record_1
477
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.511612"], ["updated_at", "2016-02-07 23:44:52.511612"]]
481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
482
+  (0.0ms) SAVEPOINT active_record_1
483
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
485
+  (0.0ms) SAVEPOINT active_record_1
486
+ SQL (0.0ms) 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.513224"], ["id", 1]]
487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
492
+  (0.6ms) rollback transaction
493
+  (0.0ms) begin transaction
494
+ -------------------------------------------------------------------------------------
495
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
496
+ -------------------------------------------------------------------------------------
497
+  (0.0ms) SAVEPOINT active_record_1
498
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
500
+  (0.0ms) SAVEPOINT active_record_1
501
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:44:52.517294"], ["updated_at", "2016-02-07 23:44:52.517294"]]
502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
503
+  (0.0ms) SAVEPOINT active_record_1
504
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
506
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
507
+  (0.3ms) rollback transaction
508
+  (0.1ms) begin transaction
509
+ --------------------------------------------------------------------------------------
510
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
511
+ --------------------------------------------------------------------------------------
512
+  (0.0ms) SAVEPOINT active_record_1
513
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
515
+  (0.0ms) SAVEPOINT active_record_1
516
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:45:08.721314"], ["updated_at", "2016-02-07 23:45:08.721314"]]
517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
518
+  (0.6ms) rollback transaction
519
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
+  (0.1ms) begin transaction
521
+ --------------------------------------------------------------------------
522
+ DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
523
+ --------------------------------------------------------------------------
524
+  (0.0ms) SAVEPOINT active_record_1
525
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
527
+  (0.0ms) SAVEPOINT active_record_1
528
+ SQL (1.0ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.139487"], ["updated_at", "2016-02-07 23:46:22.139487"]]
529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
530
+  (0.0ms) SAVEPOINT active_record_1
531
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
533
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
534
+  (1.1ms) rollback transaction
535
+  (0.1ms) begin transaction
536
+ -------------------------------------------------------------------------------------
537
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
538
+ -------------------------------------------------------------------------------------
539
+  (0.0ms) SAVEPOINT active_record_1
540
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
542
+  (0.0ms) SAVEPOINT active_record_1
543
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.150565"], ["updated_at", "2016-02-07 23:46:22.150565"]]
544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
545
+  (0.0ms) SAVEPOINT active_record_1
546
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
548
+ Portfolio Load (0.2ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
549
+  (0.6ms) rollback transaction
550
+  (0.1ms) begin transaction
551
+ ---------------------------------------------------------------
552
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
553
+ ---------------------------------------------------------------
554
+  (0.0ms) SAVEPOINT active_record_1
555
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
557
+  (0.0ms) SAVEPOINT active_record_1
558
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.893817"], ["updated_at", "2016-02-07 23:46:22.893817"]]
559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
560
+  (0.0ms) SAVEPOINT active_record_1
561
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
563
+  (0.0ms) SAVEPOINT active_record_1
564
+ SQL (0.0ms) 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.896028"], ["id", 1]]
565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
566
+  (0.0ms) SAVEPOINT active_record_1
567
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
569
+ Portfolio Load (0.0ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
570
+  (0.5ms) rollback transaction
571
+  (0.0ms) begin transaction
572
+ --------------------------------------------------------------------------------------
573
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
574
+ --------------------------------------------------------------------------------------
575
+  (0.0ms) SAVEPOINT active_record_1
576
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
578
+  (0.0ms) SAVEPOINT active_record_1
579
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:22.900081"], ["updated_at", "2016-02-07 23:46:22.900081"]]
580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
581
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
582
+  (0.4ms) rollback transaction
583
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
584
+  (0.1ms) begin transaction
585
+ ---------------------------------------------------------------
586
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
587
+ ---------------------------------------------------------------
588
+  (0.1ms) SAVEPOINT active_record_1
589
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
591
+  (0.0ms) SAVEPOINT active_record_1
592
+ SQL (0.9ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.942207"], ["updated_at", "2016-02-07 23:46:29.942207"]]
593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
594
+  (0.1ms) SAVEPOINT active_record_1
595
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
597
+  (0.0ms) SAVEPOINT active_record_1
598
+ SQL (0.1ms) 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.949275"], ["id", 1]]
599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
600
+  (0.0ms) SAVEPOINT active_record_1
601
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
603
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
604
+  (0.5ms) rollback transaction
605
+  (0.1ms) begin transaction
606
+ --------------------------------------------------------------------------
607
+ DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
608
+ --------------------------------------------------------------------------
609
+  (0.0ms) SAVEPOINT active_record_1
610
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
612
+  (0.0ms) SAVEPOINT active_record_1
613
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:29.956859"], ["updated_at", "2016-02-07 23:46:29.956859"]]
614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
615
+  (0.0ms) SAVEPOINT active_record_1
616
+ SQL (0.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
618
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
619
+  (0.5ms) rollback transaction
620
+  (0.1ms) begin transaction
621
+ -------------------------------------------------------------------------------------
622
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
623
+ -------------------------------------------------------------------------------------
624
+  (0.1ms) SAVEPOINT active_record_1
625
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (0.0ms) SAVEPOINT active_record_1
628
+ SQL (0.4ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:30.019580"], ["updated_at", "2016-02-07 23:46:30.019580"]]
629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
630
+  (0.1ms) SAVEPOINT active_record_1
631
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
633
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
634
+  (0.5ms) rollback transaction
635
+  (0.1ms) begin transaction
636
+ --------------------------------------------------------------------------------------
637
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
638
+ --------------------------------------------------------------------------------------
639
+  (0.0ms) SAVEPOINT active_record_1
640
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
642
+  (0.0ms) SAVEPOINT active_record_1
643
+ SQL (0.3ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:35.284632"], ["updated_at", "2016-02-07 23:46:35.284632"]]
644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
645
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
646
+  (0.5ms) rollback transaction
647
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
648
+  (0.1ms) begin transaction
649
+ ---------------------------------------------------------------
650
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
651
+ ---------------------------------------------------------------
652
+  (0.0ms) SAVEPOINT active_record_1
653
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
655
+  (0.0ms) SAVEPOINT active_record_1
656
+ SQL (0.9ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:41.435819"], ["updated_at", "2016-02-07 23:46:41.435819"]]
657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
658
+  (0.1ms) SAVEPOINT active_record_1
659
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
661
+  (0.0ms) SAVEPOINT active_record_1
662
+ SQL (0.1ms) 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.446046"], ["id", 1]]
663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
664
+  (0.0ms) SAVEPOINT active_record_1
665
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
667
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
668
+  (0.9ms) rollback transaction
669
+  (0.0ms) begin transaction
670
+ --------------------------------------------------------------------------------------
671
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
672
+ --------------------------------------------------------------------------------------
673
+  (0.0ms) SAVEPOINT active_record_1
674
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
676
+  (0.0ms) SAVEPOINT active_record_1
677
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:46:41.453036"], ["updated_at", "2016-02-07 23:46:41.453036"]]
678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
680
+  (0.1ms) begin transaction
681
+ --------------------------------------------------------------------------
682
+ DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
683
+ --------------------------------------------------------------------------
684
+  (0.0ms) SAVEPOINT active_record_1
685
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
687
+  (0.0ms) SAVEPOINT active_record_1
688
+ SQL (0.9ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.297505"], ["updated_at", "2016-02-07 23:51:53.297505"]]
689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
690
+  (0.0ms) SAVEPOINT active_record_1
691
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
693
+ BasicBuyStrategy Load (0.1ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
694
+  (1.4ms) rollback transaction
695
+  (0.1ms) begin transaction
696
+ -------------------------------------------------------------------------------------
697
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
698
+ -------------------------------------------------------------------------------------
699
+  (0.0ms) SAVEPOINT active_record_1
700
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
702
+  (0.0ms) SAVEPOINT active_record_1
703
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.308467"], ["updated_at", "2016-02-07 23:51:53.308467"]]
704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
705
+  (0.0ms) SAVEPOINT active_record_1
706
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
708
+  (0.0ms) SAVEPOINT active_record_1
709
+ SQL (0.1ms) 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.311227"], ["id", 1]]
710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
715
+  (0.6ms) rollback transaction
716
+  (0.1ms) begin transaction
717
+ --------------------------------------------------------------------------------------
718
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
719
+ --------------------------------------------------------------------------------------
720
+  (0.0ms) SAVEPOINT active_record_1
721
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
723
+  (0.0ms) SAVEPOINT active_record_1
724
+ SQL (0.3ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.347380"], ["updated_at", "2016-02-07 23:51:53.347380"]]
725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
726
+  (0.0ms) SAVEPOINT active_record_1
727
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
729
+ Portfolio Load (0.0ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
730
+  (0.5ms) rollback transaction
731
+  (0.1ms) begin transaction
732
+ ---------------------------------------------------------------
733
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
734
+ ---------------------------------------------------------------
735
+  (0.0ms) SAVEPOINT active_record_1
736
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
738
+  (0.0ms) SAVEPOINT active_record_1
739
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:51:53.351943"], ["updated_at", "2016-02-07 23:51:53.351943"]]
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+  (0.0ms) SAVEPOINT active_record_1
742
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
744
+  (0.0ms) SAVEPOINT active_record_1
745
+ SQL (0.0ms) 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.353623"], ["id", 1]]
746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
747
+  (0.0ms) SAVEPOINT active_record_1
748
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
750
+ Portfolio Load (0.0ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
751
+  (0.4ms) rollback transaction
752
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
753
+  (0.1ms) begin transaction
754
+ ---------------------------------------------------------------
755
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
756
+ ---------------------------------------------------------------
757
+  (0.1ms) SAVEPOINT active_record_1
758
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
760
+  (0.0ms) SAVEPOINT active_record_1
761
+ SQL (0.7ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:17.504219"], ["updated_at", "2016-02-07 23:52:17.504219"]]
762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
763
+  (0.0ms) SAVEPOINT active_record_1
764
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
766
+  (0.1ms) SAVEPOINT active_record_1
767
+ SQL (0.1ms) 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.510554"], ["id", 1]]
768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
769
+  (0.0ms) SAVEPOINT active_record_1
770
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
772
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
773
+  (0.8ms) rollback transaction
774
+  (0.0ms) begin transaction
775
+ --------------------------------------------------------------------------------------
776
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
777
+ --------------------------------------------------------------------------------------
778
+  (0.0ms) SAVEPOINT active_record_1
779
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+  (0.0ms) SAVEPOINT active_record_1
782
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:17.517270"], ["updated_at", "2016-02-07 23:52:17.517270"]]
783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
784
+  (0.0ms) SAVEPOINT active_record_1
785
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
787
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
788
+  (0.1ms) begin transaction
789
+ -------------------------------------------------------------------------------------
790
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_arrays_of_objects
791
+ -------------------------------------------------------------------------------------
792
+  (0.1ms) SAVEPOINT active_record_1
793
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
795
+  (0.0ms) SAVEPOINT active_record_1
796
+ SQL (0.7ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.269067"], ["updated_at", "2016-02-07 23:52:43.269067"]]
797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+  (0.0ms) SAVEPOINT active_record_1
799
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
801
+  (0.0ms) SAVEPOINT active_record_1
802
+ SQL (0.1ms) 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.274977"], ["id", 1]]
803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
804
+  (0.0ms) SAVEPOINT active_record_1
805
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
807
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
808
+  (1.0ms) rollback transaction
809
+  (0.0ms) begin transaction
810
+ ---------------------------------------------------------------
811
+ DynamorphicTest: test_gets_the_has_many_dynamorphic_association
812
+ ---------------------------------------------------------------
813
+  (0.0ms) SAVEPOINT active_record_1
814
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
816
+  (0.0ms) SAVEPOINT active_record_1
817
+ SQL (0.2ms) INSERT INTO "portfolios" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.282056"], ["updated_at", "2016-02-07 23:52:43.282056"]]
818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
819
+  (0.0ms) SAVEPOINT active_record_1
820
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
822
+  (0.1ms) SAVEPOINT active_record_1
823
+ SQL (0.1ms) 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.285334"], ["id", 1]]
824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
825
+  (0.0ms) SAVEPOINT active_record_1
826
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
828
+ Portfolio Load (0.0ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
829
+  (0.5ms) rollback transaction
830
+  (0.0ms) begin transaction
831
+ --------------------------------------------------------------------------
832
+ DynamorphicTest: test_sets_and_gets_the_belongs_to_dynamorphic_association
833
+ --------------------------------------------------------------------------
834
+  (0.0ms) SAVEPOINT active_record_1
835
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
837
+  (0.0ms) SAVEPOINT active_record_1
838
+ SQL (0.2ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.289435"], ["updated_at", "2016-02-07 23:52:43.289435"]]
839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
840
+  (0.0ms) SAVEPOINT active_record_1
841
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
843
+ BasicBuyStrategy Load (0.2ms) SELECT "basic_buy_strategies".* FROM "basic_buy_strategies" WHERE "basic_buy_strategies"."id" = ? LIMIT 1 [["id", 1]]
844
+  (0.7ms) rollback transaction
845
+  (0.1ms) begin transaction
846
+ --------------------------------------------------------------------------------------
847
+ DynamorphicTest: test_sets_the_has_many_dynamorphic_association_for_individual_objects
848
+ --------------------------------------------------------------------------------------
849
+  (0.1ms) SAVEPOINT active_record_1
850
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+  (0.1ms) SAVEPOINT active_record_1
853
+ SQL (0.4ms) INSERT INTO "basic_buy_strategies" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-07 23:52:43.346598"], ["updated_at", "2016-02-07 23:52:43.346598"]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
858
+ Portfolio Load (0.1ms) SELECT "portfolios".* FROM "portfolios" WHERE "portfolios"."buy_strategy_type" = ? AND "portfolios"."buy_strategy_id" = ? [["buy_strategy_type", "BasicBuyStrategy"], ["buy_strategy_id", 1]]
859
+  (0.5ms) rollback transaction