auto_build 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 (54) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +45 -0
  3. data/Rakefile +37 -0
  4. data/lib/auto_build.rb +4 -0
  5. data/lib/auto_build/builder.rb +40 -0
  6. data/lib/auto_build/version.rb +3 -0
  7. data/lib/tasks/auto_build_tasks.rake +4 -0
  8. data/test/auto_build_test.rb +24 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +9 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/address.rb +3 -0
  15. data/test/dummy/app/models/phone.rb +3 -0
  16. data/test/dummy/app/models/user.rb +6 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/config.ru +4 -0
  19. data/test/dummy/config/application.rb +45 -0
  20. data/test/dummy/config/boot.rb +10 -0
  21. data/test/dummy/config/database.yml +25 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +30 -0
  24. data/test/dummy/config/environments/production.rb +60 -0
  25. data/test/dummy/config/environments/test.rb +39 -0
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/test/dummy/config/initializers/inflections.rb +10 -0
  28. data/test/dummy/config/initializers/mime_types.rb +5 -0
  29. data/test/dummy/config/initializers/secret_token.rb +7 -0
  30. data/test/dummy/config/initializers/session_store.rb +8 -0
  31. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/test/dummy/config/locales/en.yml +5 -0
  33. data/test/dummy/config/routes.rb +58 -0
  34. data/test/dummy/db/development.sqlite3 +0 -0
  35. data/test/dummy/db/migrate/20111211212757_create_users.rb +9 -0
  36. data/test/dummy/db/migrate/20111211212813_create_addresses.rb +11 -0
  37. data/test/dummy/db/migrate/20111211213814_create_phones.rb +10 -0
  38. data/test/dummy/db/schema.rb +37 -0
  39. data/test/dummy/db/test.sqlite3 +0 -0
  40. data/test/dummy/log/development.log +86 -0
  41. data/test/dummy/log/test.log +211 -0
  42. data/test/dummy/public/404.html +26 -0
  43. data/test/dummy/public/422.html +26 -0
  44. data/test/dummy/public/500.html +26 -0
  45. data/test/dummy/public/favicon.ico +0 -0
  46. data/test/dummy/script/rails +6 -0
  47. data/test/dummy/test/fixtures/addresses.yml +7 -0
  48. data/test/dummy/test/fixtures/phones.yml +9 -0
  49. data/test/dummy/test/fixtures/users.yml +7 -0
  50. data/test/dummy/test/unit/address_test.rb +7 -0
  51. data/test/dummy/test/unit/phone_test.rb +7 -0
  52. data/test/dummy/test/unit/user_test.rb +7 -0
  53. data/test/test_helper.rb +10 -0
  54. metadata +168 -0
@@ -0,0 +1,39 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'bd30b29974384121bf43396f01d860692282032464cf076b3aaa7288deca405f14b90e910abc4b4ad256d3aaae3b0641f7f5080d0bdb400f08fae8b1a8519ab0'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -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]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
Binary file
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ class CreateAddresses < ActiveRecord::Migration
2
+ def change
3
+ create_table :addresses do |t|
4
+ t.string :street
5
+ t.string :city
6
+ t.belongs_to :user
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePhones < ActiveRecord::Migration
2
+ def change
3
+ create_table :phones do |t|
4
+ t.string :number
5
+ t.belongs_to :user
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,37 @@
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 to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20111211213814) do
15
+
16
+ create_table "addresses", :force => true do |t|
17
+ t.string "street"
18
+ t.string "city"
19
+ t.integer "user_id"
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ end
23
+
24
+ create_table "phones", :force => true do |t|
25
+ t.string "number"
26
+ t.integer "user_id"
27
+ t.datetime "created_at"
28
+ t.datetime "updated_at"
29
+ end
30
+
31
+ create_table "users", :force => true do |t|
32
+ t.string "name"
33
+ t.datetime "created_at"
34
+ t.datetime "updated_at"
35
+ end
36
+
37
+ end
Binary file
@@ -0,0 +1,86 @@
1
+  (0.1ms) select sqlite_version(*)
2
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
+  (0.1ms) PRAGMA index_list("schema_migrations")
4
+  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
6
+ Migrating to CreateUsers (20111211212757)
7
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
8
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111211212757')
9
+ Migrating to CreateAddresses (20111211212813)
10
+  (0.5ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)
11
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111211212813')
12
+  (0.3ms) select sqlite_version(*)
13
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+  (0.0ms) PRAGMA index_list("addresses")
15
+  (0.0ms) PRAGMA index_list("users")
16
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
17
+ Migrating to CreateUsers (20111211212757)
18
+ Migrating to CreateAddresses (20111211212813)
19
+  (0.3ms) select sqlite_version(*)
20
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
21
+  (0.0ms) PRAGMA index_list("addresses")
22
+  (0.0ms) PRAGMA index_list("users")
23
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
24
+  (0.2ms) select sqlite_version(*)
25
+  (1.1ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
26
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
27
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
28
+  (0.6ms) PRAGMA index_list("schema_migrations")
29
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.1ms) SELECT version FROM "schema_migrations"
31
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20111211212813')
32
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111211212757')
33
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
34
+ Migrating to CreateUsers (20111211212757)
35
+ Migrating to CreateAddresses (20111211212813)
36
+ Migrating to CreatePhones (20111211213814)
37
+  (0.0ms) select sqlite_version(*)
38
+  (0.5ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
39
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111211213814')
40
+  (0.5ms) select sqlite_version(*)
41
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
42
+  (0.0ms) PRAGMA index_list("addresses")
43
+  (0.0ms) PRAGMA index_list("phones")
44
+  (0.0ms) PRAGMA index_list("users")
45
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
46
+  (0.3ms) select sqlite_version(*)
47
+  (1.2ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
48
+  (0.9ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)
49
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
50
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
51
+  (0.0ms) PRAGMA index_list("schema_migrations")
52
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
+  (0.1ms) SELECT version FROM "schema_migrations"
54
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111211213814')
55
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111211212757')
56
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20111211212813')
57
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
58
+ Migrating to CreateUsers (20111211212757)
59
+ Migrating to CreateAddresses (20111211212813)
60
+ Migrating to CreatePhones (20111211213814)
61
+  (0.3ms) select sqlite_version(*)
62
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
63
+  (0.0ms) PRAGMA index_list("addresses")
64
+  (0.0ms) PRAGMA index_list("phones")
65
+  (0.0ms) PRAGMA index_list("users")
66
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
67
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
68
+ Migrating to CreatePhones (20111211213814)
69
+  (0.0ms) select sqlite_version(*)
70
+  (0.5ms) DROP TABLE "phones"
71
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20111211213814'
72
+  (0.3ms) select sqlite_version(*)
73
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
74
+  (0.0ms) PRAGMA index_list("addresses")
75
+  (0.0ms) PRAGMA index_list("users")
76
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
77
+ Migrating to CreateUsers (20111211212757)
78
+ Migrating to CreateAddresses (20111211212813)
79
+ Migrating to CreatePhones (20111211213814)
80
+  (0.6ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime) 
81
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111211213814')
82
+  (0.3ms) select sqlite_version(*)
83
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
84
+  (0.0ms) PRAGMA index_list("addresses")
85
+  (0.0ms) PRAGMA index_list("phones")
86
+  (0.0ms) PRAGMA index_list("users")
@@ -0,0 +1,211 @@
1
+  (0.1ms) SAVEPOINT active_record_1
2
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3
+  (0.0ms) SAVEPOINT active_record_1
4
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5
+  (0.0ms) SAVEPOINT active_record_1
6
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7
+  (0.0ms) SAVEPOINT active_record_1
8
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9
+  (0.1ms) SAVEPOINT active_record_1
10
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11
+  (0.0ms) SAVEPOINT active_record_1
12
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13
+  (0.0ms) SAVEPOINT active_record_1
14
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15
+  (0.0ms) SAVEPOINT active_record_1
16
+  (0.0ms) RELEASE SAVEPOINT active_record_1
17
+  (0.0ms) SAVEPOINT active_record_1
18
+  (0.0ms) RELEASE SAVEPOINT active_record_1
19
+  (0.0ms) SAVEPOINT active_record_1
20
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21
+  (0.1ms) SAVEPOINT active_record_1
22
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23
+  (0.0ms) SAVEPOINT active_record_1
24
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25
+  (0.0ms) SAVEPOINT active_record_1
26
+  (0.0ms) RELEASE SAVEPOINT active_record_1
27
+  (0.0ms) SAVEPOINT active_record_1
28
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29
+  (0.0ms) SAVEPOINT active_record_1
30
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31
+  (0.0ms) SAVEPOINT active_record_1
32
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33
+  (0.0ms) SAVEPOINT active_record_1
34
+ SQL (43.2ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:04:27 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 22:04:27 UTC +00:00], ["user_id", nil]]
35
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36
+  (0.0ms) SAVEPOINT active_record_1
37
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38
+  (0.0ms) SAVEPOINT active_record_1
39
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 22:04:27 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 22:04:27 UTC +00:00]]
40
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 22:04:27.587030' WHERE "addresses"."id" = 1
41
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
43
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
44
+  (0.1ms) SAVEPOINT active_record_1
45
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46
+  (0.0ms) SAVEPOINT active_record_1
47
+  (0.0ms) RELEASE SAVEPOINT active_record_1
48
+  (0.0ms) SAVEPOINT active_record_1
49
+  (0.0ms) RELEASE SAVEPOINT active_record_1
50
+  (0.0ms) SAVEPOINT active_record_1
51
+  (0.0ms) RELEASE SAVEPOINT active_record_1
52
+  (0.0ms) SAVEPOINT active_record_1
53
+  (0.0ms) RELEASE SAVEPOINT active_record_1
54
+  (0.0ms) SAVEPOINT active_record_1
55
+  (0.0ms) RELEASE SAVEPOINT active_record_1
56
+  (0.0ms) SAVEPOINT active_record_1
57
+ SQL (51.7ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:04:43 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 22:04:43 UTC +00:00], ["user_id", nil]]
58
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59
+  (0.0ms) SAVEPOINT active_record_1
60
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61
+  (0.1ms) SAVEPOINT active_record_1
62
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63
+  (0.0ms) SAVEPOINT active_record_1
64
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65
+  (0.0ms) SAVEPOINT active_record_1
66
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00]]
67
+ SQL (0.4ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00], ["street", nil], ["updated_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00], ["user_id", 1]]
68
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
70
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
71
+  (0.0ms) SAVEPOINT active_record_1
72
+  (0.1ms) UPDATE "addresses" SET "user_id" = NULL, "updated_at" = '2011-12-11 22:04:44.036655' WHERE "addresses"."id" = 2
73
+  (0.1ms) RELEASE SAVEPOINT active_record_1
74
+  (0.0ms) SAVEPOINT active_record_1
75
+ SQL (0.5ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00], ["street", nil], ["updated_at", Sun, 11 Dec 2011 22:04:44 UTC +00:00], ["user_id", 1]]
76
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77
+  (0.1ms) SAVEPOINT active_record_1
78
+  (0.0ms) RELEASE SAVEPOINT active_record_1
79
+  (0.0ms) SAVEPOINT active_record_1
80
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81
+  (0.1ms) SAVEPOINT active_record_1
82
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83
+  (0.0ms) SAVEPOINT active_record_1
84
+  (0.0ms) RELEASE SAVEPOINT active_record_1
85
+  (0.0ms) SAVEPOINT active_record_1
86
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87
+  (0.0ms) SAVEPOINT active_record_1
88
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89
+  (0.0ms) SAVEPOINT active_record_1
90
+ SQL (42.1ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:04:56 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 22:04:56 UTC +00:00], ["user_id", nil]]
91
+  (0.1ms) RELEASE SAVEPOINT active_record_1
92
+  (0.0ms) SAVEPOINT active_record_1
93
+  (0.0ms) RELEASE SAVEPOINT active_record_1
94
+  (0.0ms) SAVEPOINT active_record_1
95
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 22:04:56 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 22:04:56 UTC +00:00]]
96
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 22:04:56.724847' WHERE "addresses"."id" = 1
97
+  (0.0ms) RELEASE SAVEPOINT active_record_1
98
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
99
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
100
+  (0.1ms) SAVEPOINT active_record_1
101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
102
+  (0.0ms) SAVEPOINT active_record_1
103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
104
+  (0.0ms) SAVEPOINT active_record_1
105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
106
+  (0.0ms) SAVEPOINT active_record_1
107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
108
+  (0.0ms) SAVEPOINT active_record_1
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+  (0.0ms) SAVEPOINT active_record_1
111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
112
+  (0.0ms) SAVEPOINT active_record_1
113
+ SQL (44.2ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 22:50:04 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 22:50:04 UTC +00:00], ["user_id", nil]]
114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
115
+  (0.0ms) SAVEPOINT active_record_1
116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
117
+  (0.1ms) SAVEPOINT active_record_1
118
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 22:50:04 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 22:50:04 UTC +00:00]]
119
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 22:50:04.837782' WHERE "addresses"."id" = 1
120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
121
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
122
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
123
+  (0.1ms) SAVEPOINT active_record_1
124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
125
+  (0.0ms) SAVEPOINT active_record_1
126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
127
+  (0.1ms) SAVEPOINT active_record_1
128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
129
+  (0.0ms) SAVEPOINT active_record_1
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+  (0.0ms) SAVEPOINT active_record_1
132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
133
+  (0.0ms) SAVEPOINT active_record_1
134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135
+  (0.1ms) SAVEPOINT active_record_1
136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137
+  (0.0ms) SAVEPOINT active_record_1
138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139
+  (0.0ms) SAVEPOINT active_record_1
140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141
+  (0.0ms) SAVEPOINT active_record_1
142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
143
+  (0.0ms) SAVEPOINT active_record_1
144
+ SQL (44.5ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 23:48:34 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 23:48:34 UTC +00:00], ["user_id", nil]]
145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
146
+  (0.0ms) SAVEPOINT active_record_1
147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
148
+  (0.0ms) SAVEPOINT active_record_1
149
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 23:48:34 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 23:48:34 UTC +00:00]]
150
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 23:48:34.371519' WHERE "addresses"."id" = 1
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
153
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
154
+  (0.1ms) SAVEPOINT active_record_1
155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
156
+  (0.0ms) SAVEPOINT active_record_1
157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
158
+  (0.0ms) SAVEPOINT active_record_1
159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
160
+  (0.0ms) SAVEPOINT active_record_1
161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
162
+  (0.0ms) SAVEPOINT active_record_1
163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.0ms) SAVEPOINT active_record_1
165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
166
+  (0.0ms) SAVEPOINT active_record_1
167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
168
+  (0.0ms) SAVEPOINT active_record_1
169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+  (0.0ms) SAVEPOINT active_record_1
171
+ SQL (41.5ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 23:48:51 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 23:48:51 UTC +00:00], ["user_id", nil]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+  (0.0ms) SAVEPOINT active_record_1
174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
175
+  (0.0ms) SAVEPOINT active_record_1
176
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 23:48:51 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 23:48:51 UTC +00:00]]
177
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 23:48:51.800823' WHERE "addresses"."id" = 1
178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
179
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
180
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1
181
+  (0.1ms) SAVEPOINT active_record_1
182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
183
+  (0.0ms) SAVEPOINT active_record_1
184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
185
+  (0.0ms) SAVEPOINT active_record_1
186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
187
+  (0.0ms) SAVEPOINT active_record_1
188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189
+  (0.0ms) SAVEPOINT active_record_1
190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
191
+  (0.0ms) SAVEPOINT active_record_1
192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
193
+  (0.0ms) SAVEPOINT active_record_1
194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
195
+  (0.0ms) SAVEPOINT active_record_1
196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
+  (0.0ms) SAVEPOINT active_record_1
198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
199
+  (0.0ms) SAVEPOINT active_record_1
200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
201
+  (0.1ms) SAVEPOINT active_record_1
202
+ SQL (8.2ms) INSERT INTO "addresses" ("city", "created_at", "street", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["city", nil], ["created_at", Sun, 11 Dec 2011 23:51:53 UTC +00:00], ["street", "Highway 61"], ["updated_at", Sun, 11 Dec 2011 23:51:53 UTC +00:00], ["user_id", nil]]
203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
204
+  (0.0ms) SAVEPOINT active_record_1
205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206
+  (0.0ms) SAVEPOINT active_record_1
207
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 11 Dec 2011 23:51:53 UTC +00:00], ["name", nil], ["updated_at", Sun, 11 Dec 2011 23:51:53 UTC +00:00]]
208
+  (0.2ms) UPDATE "addresses" SET "user_id" = 1, "updated_at" = '2011-12-11 23:51:53.174978' WHERE "addresses"."id" = 1
209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
210
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
211
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."user_id" = 1 LIMIT 1