Processing by CompaniesController#new as HTML Rendered companies/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 35ms (Views: 34.6ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (25.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position, name Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position", nil], ["system_code", "selection_2"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position", nil], ["system_code", "selection_3"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections" Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position", nil], ["system_code", "selection_4"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position", nil], ["system_code", "selection_5"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position", nil], ["system_code", "selection_6"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position", nil], ["system_code", "selection_7"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position", nil], ["system_code", "selection_8"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_9', "system_code" = 'selection_9', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position", nil], ["system_code", "selection_10"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.3ms) UPDATE "selections_selections" SET "name" = 'selection_11', "system_code" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position", nil], ["system_code", "selection_12"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position", nil], ["system_code", "selection_13"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position", nil], ["system_code", "selection_14"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections" Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 48ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections" WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position", nil], ["system_code", "selection_15"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position", nil], ["system_code", "selection_16"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position", nil], ["system_code", "selection_17"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position", nil], ["system_code", "duplicate"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position", nil], ["system_code", "selection_18"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position", nil], ["system_code", "selection_19"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position", nil], ["system_code", "duplicate"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "something_else"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position", nil], ["system_code", "telephone_prefix"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position", nil], ["system_code", "telephone_prefix"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "hello_world_good_bye"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position", nil], ["system_code", "selection_20"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position", nil], ["system_code", "selection_21"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position", nil], ["system_code", "selection_22"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position", nil], ["system_code", "selection_23"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position", nil], ["system_code", "selection_24"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position", nil], ["system_code", "selection_25"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position", nil], ["system_code", "selection_26"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position", nil], ["system_code", "selection_27"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position", nil], ["system_code", "selection_28"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position", nil], ["system_code", "selection_29"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-18 23:03:04.543577' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position", nil], ["system_code", "selection_30"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position", nil], ["system_code", "selection_31"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position", nil], ["system_code", "selection_32"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position", nil], ["system_code", "selection_33"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position", nil], ["system_code", "selection_34"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-18 23:03:04.563755' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_35"], ["parent_id", nil], ["position", nil], ["system_code", "selection_35"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position", nil], ["system_code", "selection_36"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position", nil], ["system_code", "selection_37"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position", nil], ["system_code", "selection_38"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position", nil], ["system_code", "selection_39"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position", nil], ["system_code", "selection_40"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position", nil], ["system_code", "selection_41"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position", nil], ["system_code", "selection_42"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position", nil], ["system_code", "selection_43"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position", nil], ["system_code", "selection_44"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:04.606272', "updated_at" = '2012-01-18 23:03:04.606540' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position", nil], ["system_code", "selection_45"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_46"], ["parent_id", 1], ["position", nil], ["system_code", "selection_46"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position", nil], ["system_code", "selection_47"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position", nil], ["system_code", "selection_48"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position", nil], ["system_code", "selection_49"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:04.626978', "updated_at" = '2012-01-18 23:03:04.627244' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_50"], ["parent_id", nil], ["position", nil], ["system_code", "selection_50"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position", nil], ["system_code", "selection_51"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_52"], ["parent_id", 1], ["position", nil], ["system_code", "selection_52"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position", nil], ["system_code", "selection_53"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position", nil], ["system_code", "selection_54"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:04.647744', "updated_at" = '2012-01-18 23:03:04.648006' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:04.648711', "updated_at" = '2012-01-18 23:03:04.648982' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_55"], ["parent_id", nil], ["position", nil], ["system_code", "selection_55"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position", nil], ["system_code", "selection_56"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position", nil], ["system_code", "selection_57"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position", nil], ["system_code", "selection_58"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position", nil], ["system_code", "selection_59"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_60"], ["parent_id", nil], ["position", nil], ["system_code", "selection_60"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position", nil], ["system_code", "selection_61"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position", nil], ["system_code", "selection_62"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position", nil], ["system_code", "selection_63"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position", nil], ["system_code", "selection_64"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position", nil], ["system_code", "selection_65"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position", nil], ["system_code", "selection_66"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position", nil], ["system_code", "selection_67"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position", nil], ["system_code", "selection_68"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position", nil], ["system_code", "selection_69"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.739834' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position", nil], ["system_code", "selection_70"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position", nil], ["system_code", "selection_71"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position", nil], ["system_code", "selection_72"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position", nil], ["system_code", "selection_73"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position", nil], ["system_code", "selection_74"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.765998' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position", nil], ["system_code", "selection_75"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position", nil], ["system_code", "selection_76"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position", nil], ["system_code", "selection_77"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position", nil], ["system_code", "selection_78"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position", nil], ["system_code", "selection_79"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position", nil], ["system_code", "selection_80"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.789284' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position", nil], ["system_code", "selection_81"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position", nil], ["system_code", "selection_82"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position", nil], ["system_code", "selection_83"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position", nil], ["system_code", "selection_84"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position", nil], ["system_code", "selection_85"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position", nil], ["system_code", "selection_86"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position", nil], ["system_code", "selection_87"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_88"], ["parent_id", 6], ["position", nil], ["system_code", "selection_88"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (32.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 6], ["position", nil], ["system_code", "selection_89"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.855460' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:04.856380' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_90"], ["parent_id", nil], ["position", nil], ["system_code", "selection_90"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position", nil], ["system_code", "selection_91"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position", nil], ["system_code", "selection_92"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position", nil], ["system_code", "selection_93"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position", nil], ["system_code", "selection_94"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.877811' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_95"], ["parent_id", nil], ["position", nil], ["system_code", "selection_95"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position", nil], ["system_code", "selection_96"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position", nil], ["system_code", "selection_97"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position", nil], ["system_code", "selection_98"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position", nil], ["system_code", "selection_99"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.900925' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:04.901709' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_100"], ["parent_id", nil], ["position", nil], ["system_code", "selection_100"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position", nil], ["system_code", "selection_101"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position", nil], ["system_code", "selection_102"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_103"], ["parent_id", 1], ["position", nil], ["system_code", "selection_103"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position", nil], ["system_code", "selection_104"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:04.923715' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:04.924494' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_105"], ["parent_id", nil], ["position", nil], ["system_code", "selection_105"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_106"], ["parent_id", nil], ["position", nil], ["system_code", "selection_106"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Mon, 16 Jan 2012 23:03:04 UTC +00:00], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_107"], ["parent_id", nil], ["position", nil], ["system_code", "selection_107"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_110"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_111"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_112"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_115"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_116"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_119"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (32.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_120"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_121"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_124"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_125"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_126"], ["parent_id", nil], ["position", nil], ["system_code", "selection_126"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position", nil], ["system_code", "selection_127"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:05.048319' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:05.050978' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_129"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_130"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_131"], ["parent_id", nil], ["position", nil], ["system_code", "selection_131"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position", nil], ["system_code", "selection_132"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:05.073381' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:05.075950' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-18 23:03:05.076833' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position", nil], ["system_code", "selection_134"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position", nil], ["system_code", "selection_135"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position", nil], ["system_code", "selection_136"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position", nil], ["system_code", "selection_137"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 6], ["position", nil], ["system_code", "selection_139"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position", nil], ["system_code", "selection_140"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position, name LIMIT 1 Rendered companies/_form.html.erb (4.3ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position", nil], ["system_code", "selection_142"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position", nil], ["system_code", "selection_143"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position", nil], ["system_code", "selection_144"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_145"], ["parent_id", 1], ["position", nil], ["system_code", "selection_145"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position", nil], ["system_code", "selection_147"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position", nil], ["system_code", "selection_148"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.9ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position", nil], ["system_code", "selection_150"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position", nil], ["system_code", "selection_151"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position", nil], ["system_code", "selection_152"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_153"], ["parent_id", 1], ["position", nil], ["system_code", "selection_153"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 6], ["position", nil], ["system_code", "selection_155"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position", nil], ["system_code", "selection_156"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:05.237552' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_158"], ["parent_id", 1], ["position", nil], ["system_code", "selection_158"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position", nil], ["system_code", "selection_159"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position", nil], ["system_code", "selection_160"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position", nil], ["system_code", "selection_161"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_163"], ["parent_id", 6], ["position", nil], ["system_code", "selection_163"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position", nil], ["system_code", "selection_164"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:05.315108', "updated_at" = '2012-01-18 23:03:05.315389' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.9ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_166"], ["parent_id", 1], ["position", nil], ["system_code", "selection_166"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position", nil], ["system_code", "selection_167"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position", nil], ["system_code", "selection_168"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position", nil], ["system_code", "selection_169"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_170"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_171"], ["parent_id", 6], ["position", nil], ["system_code", "selection_171"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position", nil], ["system_code", "selection_172"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:05.357561', "updated_at" = '2012-01-18 23:03:05.357845' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_174"], ["parent_id", 1], ["position", nil], ["system_code", "selection_174"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_175"], ["parent_id", 1], ["position", nil], ["system_code", "selection_175"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_176"], ["parent_id", 1], ["position", nil], ["system_code", "selection_176"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_177"], ["parent_id", 1], ["position", nil], ["system_code", "selection_177"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_179"], ["parent_id", 6], ["position", nil], ["system_code", "selection_179"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position", nil], ["system_code", "selection_180"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (7.0ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_182"], ["parent_id", 1], ["position", nil], ["system_code", "selection_182"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_183"], ["parent_id", 1], ["position", nil], ["system_code", "selection_183"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_184"], ["parent_id", 1], ["position", nil], ["system_code", "selection_184"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (35.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_185"], ["parent_id", 1], ["position", nil], ["system_code", "selection_185"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_187"], ["parent_id", 6], ["position", nil], ["system_code", "selection_187"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position", nil], ["system_code", "selection_188"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:05.483837' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (6.9ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_190"], ["parent_id", 1], ["position", nil], ["system_code", "selection_190"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_191"], ["parent_id", 1], ["position", nil], ["system_code", "selection_191"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_192"], ["parent_id", 1], ["position", nil], ["system_code", "selection_192"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_193"], ["parent_id", 1], ["position", nil], ["system_code", "selection_193"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_195"], ["parent_id", 6], ["position", nil], ["system_code", "selection_195"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position", nil], ["system_code", "selection_196"], ["updated_at", Wed, 18 Jan 2012 23:03:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1 Processing by CompaniesController#new as HTML Rendered companies/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position, name Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position", nil], ["system_code", "selection_2"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position", nil], ["system_code", "selection_3"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections" Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position", nil], ["system_code", "selection_4"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position", nil], ["system_code", "selection_5"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position", nil], ["system_code", "selection_6"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 32ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position", nil], ["system_code", "selection_7"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position", nil], ["system_code", "selection_8"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.3ms) UPDATE "selections_selections" SET "name" = 'selection_9', "system_code" = 'selection_9', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position", nil], ["system_code", "selection_10"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "system_code"=>nil, "position"=>nil, "is_default"=>nil, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "system_code" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position", nil], ["system_code", "selection_12"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position", nil], ["system_code", "selection_13"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position", nil], ["system_code", "selection_14"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections" Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 20ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections" WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position", nil], ["system_code", "selection_15"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position", nil], ["system_code", "selection_16"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position", nil], ["system_code", "selection_17"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position", nil], ["system_code", "duplicate"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position", nil], ["system_code", "selection_18"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position", nil], ["system_code", "selection_19"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position", nil], ["system_code", "duplicate"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "something_else"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position", nil], ["system_code", "telephone_prefix"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position", nil], ["system_code", "telephone_prefix"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position", nil], ["system_code", "hello_world_good_bye"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position", nil], ["system_code", "selection_20"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position", nil], ["system_code", "selection_21"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position", nil], ["system_code", "selection_22"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position", nil], ["system_code", "selection_23"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position", nil], ["system_code", "selection_24"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position", nil], ["system_code", "selection_25"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position", nil], ["system_code", "selection_26"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position", nil], ["system_code", "selection_27"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position", nil], ["system_code", "selection_28"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position", nil], ["system_code", "selection_29"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-18 23:03:42.880244' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position", nil], ["system_code", "selection_30"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position", nil], ["system_code", "selection_31"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (30.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position", nil], ["system_code", "selection_32"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position", nil], ["system_code", "selection_33"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position", nil], ["system_code", "selection_34"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-18 23:03:42.934065' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_35"], ["parent_id", nil], ["position", nil], ["system_code", "selection_35"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position", nil], ["system_code", "selection_36"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position", nil], ["system_code", "selection_37"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position", nil], ["system_code", "selection_38"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position", nil], ["system_code", "selection_39"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position", nil], ["system_code", "selection_40"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position", nil], ["system_code", "selection_41"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position", nil], ["system_code", "selection_42"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position", nil], ["system_code", "selection_43"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position", nil], ["system_code", "selection_44"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:42.981360', "updated_at" = '2012-01-18 23:03:42.981648' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position", nil], ["system_code", "selection_45"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_46"], ["parent_id", 1], ["position", nil], ["system_code", "selection_46"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position", nil], ["system_code", "selection_47"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position", nil], ["system_code", "selection_48"], ["updated_at", Wed, 18 Jan 2012 23:03:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position", nil], ["system_code", "selection_49"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:43.003909', "updated_at" = '2012-01-18 23:03:43.004186' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_50"], ["parent_id", nil], ["position", nil], ["system_code", "selection_50"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position", nil], ["system_code", "selection_51"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_52"], ["parent_id", 1], ["position", nil], ["system_code", "selection_52"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position", nil], ["system_code", "selection_53"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position", nil], ["system_code", "selection_54"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:43.026982', "updated_at" = '2012-01-18 23:03:43.027268' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:43.028101', "updated_at" = '2012-01-18 23:03:43.028382' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_55"], ["parent_id", nil], ["position", nil], ["system_code", "selection_55"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position", nil], ["system_code", "selection_56"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position", nil], ["system_code", "selection_57"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position", nil], ["system_code", "selection_58"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position", nil], ["system_code", "selection_59"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_60"], ["parent_id", nil], ["position", nil], ["system_code", "selection_60"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position", nil], ["system_code", "selection_61"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position", nil], ["system_code", "selection_62"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position", nil], ["system_code", "selection_63"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position", nil], ["system_code", "selection_64"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position", nil], ["system_code", "selection_65"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position", nil], ["system_code", "selection_66"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position", nil], ["system_code", "selection_67"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position", nil], ["system_code", "selection_68"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position", nil], ["system_code", "selection_69"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.123985' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position", nil], ["system_code", "selection_70"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position", nil], ["system_code", "selection_71"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position", nil], ["system_code", "selection_72"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position", nil], ["system_code", "selection_73"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position", nil], ["system_code", "selection_74"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.147900' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position", nil], ["system_code", "selection_75"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position", nil], ["system_code", "selection_76"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position", nil], ["system_code", "selection_77"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position", nil], ["system_code", "selection_78"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position", nil], ["system_code", "selection_79"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position", nil], ["system_code", "selection_80"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.172117' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position", nil], ["system_code", "selection_81"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position", nil], ["system_code", "selection_82"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position", nil], ["system_code", "selection_83"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position", nil], ["system_code", "selection_84"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position", nil], ["system_code", "selection_85"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position", nil], ["system_code", "selection_86"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position", nil], ["system_code", "selection_87"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_88"], ["parent_id", 6], ["position", nil], ["system_code", "selection_88"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 6], ["position", nil], ["system_code", "selection_89"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.205627' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:43.206419' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_90"], ["parent_id", nil], ["position", nil], ["system_code", "selection_90"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position", nil], ["system_code", "selection_91"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position", nil], ["system_code", "selection_92"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position", nil], ["system_code", "selection_93"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position", nil], ["system_code", "selection_94"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.227328' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_95"], ["parent_id", nil], ["position", nil], ["system_code", "selection_95"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position", nil], ["system_code", "selection_96"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (30.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position", nil], ["system_code", "selection_97"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position", nil], ["system_code", "selection_98"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position", nil], ["system_code", "selection_99"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.282171' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:43.282994' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_100"], ["parent_id", nil], ["position", nil], ["system_code", "selection_100"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position", nil], ["system_code", "selection_101"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position", nil], ["system_code", "selection_102"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_103"], ["parent_id", 1], ["position", nil], ["system_code", "selection_103"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position", nil], ["system_code", "selection_104"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.305688' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-18 23:03:43.306491' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_105"], ["parent_id", nil], ["position", nil], ["system_code", "selection_105"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_106"], ["parent_id", nil], ["position", nil], ["system_code", "selection_106"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Mon, 16 Jan 2012 23:03:43 UTC +00:00], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_107"], ["parent_id", nil], ["position", nil], ["system_code", "selection_107"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_110"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_111"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_112"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_115"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_116"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_119"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_120"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_121"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_124"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_125"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_126"], ["parent_id", nil], ["position", nil], ["system_code", "selection_126"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position", nil], ["system_code", "selection_127"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:43.401039' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:43.403770' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position", nil], ["system_code", "parent_1"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_129"], ["parent_id", nil], ["position", nil], ["system_code", "parent_2"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_130"], ["parent_id", nil], ["position", nil], ["system_code", "parent_3"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_131"], ["parent_id", nil], ["position", nil], ["system_code", "selection_131"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position", nil], ["system_code", "selection_132"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:43.460942' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-18 23:03:43.463731' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-18 23:03:43.464649' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position", nil], ["system_code", "selection_134"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position", nil], ["system_code", "selection_135"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position", nil], ["system_code", "selection_136"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position", nil], ["system_code", "selection_137"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 6], ["position", nil], ["system_code", "selection_139"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position", nil], ["system_code", "selection_140"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position, name LIMIT 1 Rendered companies/_form.html.erb (4.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position", nil], ["system_code", "selection_142"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position", nil], ["system_code", "selection_143"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position", nil], ["system_code", "selection_144"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_145"], ["parent_id", 1], ["position", nil], ["system_code", "selection_145"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position", nil], ["system_code", "selection_147"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position", nil], ["system_code", "selection_148"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position", nil], ["system_code", "selection_150"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position", nil], ["system_code", "selection_151"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position", nil], ["system_code", "selection_152"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_153"], ["parent_id", 1], ["position", nil], ["system_code", "selection_153"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 6], ["position", nil], ["system_code", "selection_155"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position", nil], ["system_code", "selection_156"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.629590' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_158"], ["parent_id", 1], ["position", nil], ["system_code", "selection_158"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position", nil], ["system_code", "selection_159"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position", nil], ["system_code", "selection_160"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position", nil], ["system_code", "selection_161"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_163"], ["parent_id", 6], ["position", nil], ["system_code", "selection_163"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position", nil], ["system_code", "selection_164"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:43.675327', "updated_at" = '2012-01-18 23:03:43.675610' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.9ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_166"], ["parent_id", 1], ["position", nil], ["system_code", "selection_166"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position", nil], ["system_code", "selection_167"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position", nil], ["system_code", "selection_168"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position", nil], ["system_code", "selection_169"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_170"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_171"], ["parent_id", 6], ["position", nil], ["system_code", "selection_171"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position", nil], ["system_code", "selection_172"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-18 23:03:43.753749', "updated_at" = '2012-01-18 23:03:43.754046' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (7.0ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_174"], ["parent_id", 1], ["position", nil], ["system_code", "selection_174"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_175"], ["parent_id", 1], ["position", nil], ["system_code", "selection_175"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_176"], ["parent_id", 1], ["position", nil], ["system_code", "selection_176"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_177"], ["parent_id", 1], ["position", nil], ["system_code", "selection_177"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_179"], ["parent_id", 6], ["position", nil], ["system_code", "selection_179"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position", nil], ["system_code", "selection_180"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (6.8ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_182"], ["parent_id", 1], ["position", nil], ["system_code", "selection_182"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_183"], ["parent_id", 1], ["position", nil], ["system_code", "selection_183"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_184"], ["parent_id", 1], ["position", nil], ["system_code", "selection_184"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_185"], ["parent_id", 1], ["position", nil], ["system_code", "selection_185"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_187"], ["parent_id", 6], ["position", nil], ["system_code", "selection_187"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position", nil], ["system_code", "selection_188"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-18 23:03:43.843120' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position", nil], ["system_code", "state"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (34.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_190"], ["parent_id", 1], ["position", nil], ["system_code", "selection_190"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_191"], ["parent_id", 1], ["position", nil], ["system_code", "selection_191"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_192"], ["parent_id", 1], ["position", nil], ["system_code", "selection_192"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_193"], ["parent_id", 1], ["position", nil], ["system_code", "selection_193"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position", nil], ["system_code", "priority"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_195"], ["parent_id", 6], ["position", nil], ["system_code", "selection_195"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position", nil], ["system_code", "selection_196"], ["updated_at", Wed, 18 Jan 2012 23:03:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position, name Rendered companies/_form.html.erb (7.0ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 00:36:08.160672' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 00:36:08.162288' WHERE "selections_selections"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position", nil], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (1.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position", nil], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position", nil], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position", nil], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position", nil], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 00:36:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 00:36:08.193436' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 00:36:08.194261' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 00:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-19 00:36:19.792598' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 00:38:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-19 00:38:57.602039' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:06:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-19 01:06:13.865663' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = 10, "updated_at" = '2012-01-19 01:09:05.052427' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:09:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -10, "updated_at" = '2012-01-19 01:09:21.362674' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:10:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -10, "updated_at" = '2012-01-19 01:10:10.057591' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -20, "updated_at" = '2012-01-19 01:10:10.059106' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:10:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -10, "updated_at" = '2012-01-19 01:10:19.090547' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:10:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -10, "updated_at" = '2012-01-19 01:10:28.057102' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -20, "updated_at" = '2012-01-19 01:10:28.058797' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:10:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -10, "updated_at" = '2012-01-19 01:10:36.713572' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position" = -20, "updated_at" = '2012-01-19 01:10:36.715115' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:12:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:13:41 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position", nil], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position", nil], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position", nil], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position", nil], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00], ["is_default", nil], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position", nil], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:13:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1 SQLite3::SQLException: no such column: position: SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", -10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", -10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:27:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", -10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 01:28:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 01:29:40.406406' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 01:29:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 01:29:40.426774' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 01:29:40.427680' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.2ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", -30], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 01:31:02.030914' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 01:31:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 01:31:02.051567' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 01:31:02.052617' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:31:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (23.2ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:34:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (23.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:36:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:36:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:36:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:39:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:39:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:39:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:40:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 01:57:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:53:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 02:54:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 02:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 02:55:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 02:57:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (1.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 02:59:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 03:00:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:05:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:05:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:06:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:06:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 03:09:37.684899' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 03:09:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:09:37.706321' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:09:37.707276' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:17:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:17:47.625326' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:17:47.626840' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:18:17.269151' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:18:17.271912' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:21:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:21:03.606396' WHERE "selections_selections"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:21:03.611058' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:21:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:21:24.656040' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:21:24.659405' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (24.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 03:22:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 03:22:20.486938' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 03:22:20.489707' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:40:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:40:03.833619' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:40:03.836373' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (24.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:41:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:41:59.504880' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:41:59.507663' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:50:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:50:51.757745' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:50:51.760495' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:52:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:52:22.264577' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:52:22.267463' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:52:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:52:45.868505' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:52:45.871377' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:54:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value desc, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:54:20.593588' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:54:20.596497' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:58:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:58:03.558645' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:58:03.561571' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:58:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.2ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:58:47.830865' WHERE "selections_selections"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:58:47.835330' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 04:59:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 04:59:43.298996' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 04:59:43.301920' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 05:00:55.846159' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 05:00:55.849340' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 05:01:48.229617' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 05:01:48.232353' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:02:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 05:02:27.097139' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 05:02:27.100017' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value desc, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value desc, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:03:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -10, "updated_at" = '2012-01-19 05:03:28.003487' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value desc, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = -20, "updated_at" = '2012-01-19 05:03:28.006233' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value desc, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:21:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:22:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:27:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:28:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:28:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:31:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:32:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:32:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:34:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:34:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:34:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:34:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (26.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 0], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (35.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:37:19.945369' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:37:19.969131' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:37:19.971568' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 05:37:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:37:20.016364', "updated_at" = '2012-01-19 05:37:20.016655' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (32.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:37:20.071159', "updated_at" = '2012-01-19 05:37:20.071453' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:37:20.094399', "updated_at" = '2012-01-19 05:37:20.094697' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:37:20.095510', "updated_at" = '2012-01-19 05:37:20.095797' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.156415' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.180135' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.203837' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (34.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.273605' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:37:20.274505' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.296240' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.319803' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:37:20.320633' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:37:20.342385' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:37:20.343199' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 05:37:20 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_154"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:37:20.441976' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:37:20.444658' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 05:37:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:37:20.501032' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:37:20.503805' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 05:37:20.504702' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:39:52.029721' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:39:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:39:52.052939' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:39:52.055339' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:40:02.931086' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:40:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:40:02.954139' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:40:02.956559' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:40:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:40:31.347686' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:41:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:41:22.124856' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:41:22.127626' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:42:00.268876' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:42:00.271655' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:42:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:42:26.285742' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:42:56.911910' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:42:56.935944' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:42:56.938348' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:42:56.979696', "updated_at" = '2012-01-19 05:42:56.979995' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 05:42:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:42:57.002020', "updated_at" = '2012-01-19 05:42:57.002333' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:42:57.025225', "updated_at" = '2012-01-19 05:42:57.025514' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:42:57.026292', "updated_at" = '2012-01-19 05:42:57.026568' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.123441' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.146342' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.170195' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.206415' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:42:57.207261' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.228422' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.252193' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:42:57.253011' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:42:57.276476' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:42:57.277290' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 05:42:57 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_154"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:42:57.409075' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:42:57.411819' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 05:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:42:57.436691' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:42:57.439427' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 05:42:57.440326' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (23.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_3"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:46:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:46:22.490489' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:46:22.493036' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (25.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (28.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:46:30.902121' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:46:30.924127' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:46:30.926391' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:46:30.966204', "updated_at" = '2012-01-19 05:46:30.966489' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:46:30.986619', "updated_at" = '2012-01-19 05:46:30.986885' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 05:46:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:46:31.006848', "updated_at" = '2012-01-19 05:46:31.007135' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:46:31.007821', "updated_at" = '2012-01-19 05:46:31.008084' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (30.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.098020' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.120524' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.143636' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.176260' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:46:31.177066' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.197899' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.220757' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:46:31.221540' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (31.6ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:46:31.275110' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:46:31.276112' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 05:46:31 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_154"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:46:31.369777' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:46:31.372510' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 05:46:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:46:31.395348' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:46:31.397984' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 05:46:31.398885' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (37.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:47:45.592380' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:47:45.614888' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:47:45.617279' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:47:45.658800', "updated_at" = '2012-01-19 05:47:45.659096' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (30.2ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:47:45.710410', "updated_at" = '2012-01-19 05:47:45.710813' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:47:45.732365', "updated_at" = '2012-01-19 05:47:45.732648' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:47:45.733394', "updated_at" = '2012-01-19 05:47:45.733688' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.792120' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.814376' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.837453' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.869308' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:47:45.870049' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.921887' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.944575' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:47:45.945326' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:47:45.965741' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:47:45.966512' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 05:47:45 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_154"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:47:46.060212' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:47:46.062934' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (33.2ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 05:47:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:47:46.120031' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:47:46.122794' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 05:47:46.123680' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (25.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_7"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (29.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 05:48:20.483132' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 05:48:20.506235' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 05:48:20.508544' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:48:20.549007', "updated_at" = '2012-01-19 05:48:20.549297' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:48:20.570050', "updated_at" = '2012-01-19 05:48:20.570323' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:48:20.590941', "updated_at" = '2012-01-19 05:48:20.591226' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 05:48:20.591953', "updated_at" = '2012-01-19 05:48:20.592219' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (30.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.683967' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.706687' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.729686' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 6) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.761895' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:48:20.762683' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.783165' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.805892' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:48:20.806672' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 05:48:20.858932' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 05:48:20.859834' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 05:48:20 UTC +00:00], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_154"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:48:20.951186' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:48:20.953850' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 05:48:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:48:20.976170' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 05:48:20.978775' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 05:48:20.979623' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:54:14 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 05:54:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 05:58:22 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 05:58:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:00:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:00:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:00:11 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:00:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:00:19 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:00:55 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:00:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'selection_1' LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:01:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:01:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'selection_1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (2.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:15 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:02:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'something_else' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'hello world good bye' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'selection_5' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (27.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_9"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 06:02:16.381552' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_62' AND "selections_selections"."id" != 4) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 06:02:16.408045' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_61' AND "selections_selections"."id" != 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 06:02:16.410961' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:02:16.457090', "updated_at" = '2012-01-19 06:02:16.457395' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:02:16.480848', "updated_at" = '2012-01-19 06:02:16.481147' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_79"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:02:16.537909', "updated_at" = '2012-01-19 06:02:16.538294' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:02:16.539191', "updated_at" = '2012-01-19 06:02:16.539475' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.608329' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.634325' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_105"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.660975' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_118"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_112' AND "selections_selections"."id" != 2) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.699682' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:02:16.700448' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_121' AND "selections_selections"."id" != 3) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.757051' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_125' AND "selections_selections"."id" != 2) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.784071' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:02:16.784845' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_130' AND "selections_selections"."id" != 2) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:02:16.809189' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:02:16.809977' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_130' AND "selections_selections"."id" != 2) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_135"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 06:02:16 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_136"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_136' AND "selections_selections"."id" != 1) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_155"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_156"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_155' AND "selections_selections"."id" != 4) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:02:16.922206' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_156' AND "selections_selections"."id" != 5) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:02:16.926648' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (31.7ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_3' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_160"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_160"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_161"], ["updated_at", Thu, 19 Jan 2012 06:02:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_160' AND "selections_selections"."id" != 4) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:02:16.986008' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_161' AND "selections_selections"."id" != 5) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:02:16.989396' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 06:02:16.990311' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (2.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:05:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:05:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:05:46.469191', "updated_at" = '2012-01-19 06:05:46.471564' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'selection_1' LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = '' LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:07:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:07:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:07:16.200886', "updated_at" = '2012-01-19 06:07:16.202219' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'selection_1' LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:38:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:38:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:38:02.156451') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:38:02.156451', "updated_at" = '2012-01-19 06:38:02.158673' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:38:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:38:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:38:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:38:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:38:17.578306') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:38:17.578306', "updated_at" = '2012-01-19 06:38:17.580345' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:39:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:39:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:39:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:39:31.142763') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:39:31.142763', "updated_at" = '2012-01-19 06:39:31.145167' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:41:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:41:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:41:46.895942') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:41:46.895942', "updated_at" = '2012-01-19 06:41:46.897977' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:42:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:42:00.145491') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:00.145491', "updated_at" = '2012-01-19 06:42:00.147514' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "duplicate"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world good bye' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (27.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:42:16.476357') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:16.476357', "updated_at" = '2012-01-19 06:42:16.478216' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_11"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_16"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_19"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_25"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_31"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_32"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_37"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_38"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_43"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_44"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_46"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_49"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_50"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_52"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_55"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_56"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 06:42:16.742835' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_61"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_62"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_64"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_64' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 06:42:16.768522' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_63' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 06:42:16.771334' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_66"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_67"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_69"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_72"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_74"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:16.818303', "updated_at" = '2012-01-19 06:42:16.818577' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_79"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:16.842595', "updated_at" = '2012-01-19 06:42:16.842874' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_81"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_84"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:16.899743', "updated_at" = '2012-01-19 06:42:16.900018' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:42:16.900764', "updated_at" = '2012-01-19 06:42:16.901037' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_86"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_87"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_89"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_91"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_92"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_94"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_96"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_97"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_99"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:16.970629' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_101"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_102"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_103"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_104"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:16.996833' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_106"], ["updated_at", Thu, 19 Jan 2012 06:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_107"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_110"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:17.023322' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_112"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_114"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_116"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_119"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_120"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_114' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:17.060655' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:42:17.061427' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_121"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_123"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_124"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:17.117513' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_126"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_127"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_129"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_127' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:17.143646' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:42:17.144430' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_131"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_132"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_135"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_132' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:42:17.169312' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:42:17.170076' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_132' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_136"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-19 06:42:17.180952') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_137"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-17 06:42:17.185618') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 06:42:17 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_138"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_138' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-17 06:42:17.185618') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (32.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_157"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_157' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:42:17.311150' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:42:17.314518' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_160"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_162"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_163"], ["updated_at", Thu, 19 Jan 2012 06:42:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_162' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:42:17.341494' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_163' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:42:17.344818' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 06:42:17.345713' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:48:38 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:48:38 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 06:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:49:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:49:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:49:56 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:49:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:50:38 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:50:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:50:38 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:50:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:51:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:26 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:51:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2_duplicate"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4_duplicate"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world good bye' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (29.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5_selection_6"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:51:41.526913') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:51:41.526913', "updated_at" = '2012-01-19 06:51:41.528824' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_9' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_12"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_13"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_14"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_15"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_17"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_18"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_19"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_20"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_23"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_24"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_25"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_26"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_29"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_30"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_31"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_32"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_35"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_36"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_37"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_38"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_41"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_42"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_43"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_44"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_47"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_48"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_49"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_50"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_53"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_54"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_55"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_56"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_59"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_60"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_61"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_62"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 06:51:41.809501' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_64"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_65"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_66"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_67"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_63_selection_66' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 06:51:41.837671' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_63_selection_65' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 06:51:41.840591' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_69"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_70"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_71"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_72"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_74"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_75"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_76"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_77"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:51:41.888792', "updated_at" = '2012-01-19 06:51:41.889081' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_79"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_80"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_81"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_82"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:51:41.914586', "updated_at" = '2012-01-19 06:51:41.914880' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:51:41.972639', "updated_at" = '2012-01-19 06:51:41.972941' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:51:41.973747', "updated_at" = '2012-01-19 06:51:41.974049' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Thu, 19 Jan 2012 06:51:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.046164' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.076158' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_108"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_110"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_111"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_112"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_113"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.103178' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_114"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_116"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_117"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_118"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_119"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_120_selection_121"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_122"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_120_selection_122"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_115_selection_116' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.175196' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:51:42.175992' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.200330' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.228393' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:51:42.229535' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_134"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_135"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_136"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_137"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_133_selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:51:42.255708' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:51:42.256496' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_133_selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_138"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-19 06:51:42.267430') LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_139"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-17 06:51:42.272448') LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 06:51:42 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-17 06:51:42.272448') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.2ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (33.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_160"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_160"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_159' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:51:42.408941' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_160' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:51:42.412404' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Thu, 19 Jan 2012 06:51:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:51:42.439087' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:51:42.442254' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 06:51:42.443106' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:52:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:52:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world good bye' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:52:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2_duplicate"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4_duplicate"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world good bye' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5_selection_6"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 06:52:59.257918') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:52:59.257918', "updated_at" = '2012-01-19 06:52:59.259819' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_9' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_12"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_13"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_13"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_14"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_11_selection_15"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_17"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_18"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_18"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_19"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_16_selection_20"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_21"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_22"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_23"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_24"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_24"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_25"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_22_selection_26"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_27"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_28"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_29"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_30"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_30"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_31"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_28_selection_32"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_33"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_34"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_35"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_36"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_36"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_37"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_34_selection_38"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_39"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_40"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_41"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_42"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_43"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_40_selection_44"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_45"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_46"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_47"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_48"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_49"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_46_selection_50"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_51"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_52"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_53"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_54"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_55"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_52_selection_56"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_57"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_58"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_59"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_60"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_61"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_58_selection_62"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 06:52:59.521302' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_63"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_64"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_65"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_65"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_66"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_63_selection_67"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_63_selection_66' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (30.7ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-19 06:52:59.551893' WHERE "selections_selections"."id" = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_63_selection_65' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-19 06:52:59.586512' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_68"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_69"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_70"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_70"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_71"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_68_selection_72"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_73"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_74"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_75"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_76"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_73_selection_77"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:52:59.634886', "updated_at" = '2012-01-19 06:52:59.635178' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_78"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_79"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_80"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_81"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_78_selection_82"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:52:59.659642', "updated_at" = '2012-01-19 06:52:59.659918' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:52:59.684102', "updated_at" = '2012-01-19 06:52:59.684380' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 06:52:59.685096', "updated_at" = '2012-01-19 06:52:59.685371' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.754524' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (31.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.813740' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_108"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_109"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_110"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_111"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_112"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_113"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.841610' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_109_selection_114"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_115"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_116"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_117"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_118"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_115_selection_119"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_120"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_120_selection_121"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_122"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_120_selection_122"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_115_selection_116' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.879946' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:52:59.880722' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.904864' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.931495' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:52:59.932299' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_133"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_134"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_135"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_136"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_133_selection_137"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_133_selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 06:52:59.957408' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-19 06:52:59.958209' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_133_selection_134' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_138"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-19 06:52:59.969042') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_139"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-17 06:52:59.973776') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 06:52:59 UTC +00:00], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-17 06:52:59.973776') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (31.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:52:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_159"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_160"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_160"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_159' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:53:00.096978' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_160' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:53:00.100290' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Thu, 19 Jan 2012 06:53:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:53:00.126820' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-19 06:53:00.130114' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 06:53:00.131002' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 06:53:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:53:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_1_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:53:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:54:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 06:54:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:54:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "world"], ["updated_at", Thu, 19 Jan 2012 06:54:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:57:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 06:57:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:57:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_selection_2"], ["updated_at", Thu, 19 Jan 2012 06:57:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 06:58:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Thu, 19 Jan 2012 06:58:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 06:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_hello_world"], ["updated_at", Thu, 19 Jan 2012 06:58:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'to_ary' ORDER BY position_value, name LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 06:58:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 06:58:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Thu, 19 Jan 2012 06:58:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_2_duplicate"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_4_duplicate"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Thu, 19 Jan 2012 07:02:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world good bye' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello_world_good_bye"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_5_selection_6"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_9"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_9"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_9' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_11"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_11"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-19 07:02:30.061163') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 07:02:30.061163', "updated_at" = '2012-01-19 07:02:30.062983' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_11' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13_selection_14"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_15"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13_selection_15"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13_selection_16"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_13_selection_17"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", 5], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18_selection_19"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_20"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18_selection_20"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18_selection_21"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_18_selection_22"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_23"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_24"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24_selection_25"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_26"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24_selection_26"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24_selection_27"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_28"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_24_selection_28"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_29"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_30"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_30"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_31"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30_selection_31"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_32"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30_selection_32"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_33"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30_selection_33"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_34"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_30_selection_34"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_35"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_35"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_37"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_38"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_39"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_40"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_41"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_42"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42_selection_43"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42_selection_44"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42_selection_45"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_42_selection_46"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_48"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48_selection_49"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48_selection_50"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48_selection_51"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_48_selection_52"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_54"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54_selection_55"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54_selection_56"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54_selection_57"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_54_selection_58"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_60"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60_selection_61"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60_selection_62"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60_selection_63"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_60_selection_64"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-19 07:02:30.325387' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_66"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_67"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_68"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_69"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_68' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "system_code" = 'selection_65_selection_65_selection_68', "updated_at" = '2012-01-19 07:02:30.350958' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_67' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "system_code" = 'selection_65_selection_65_selection_67', "updated_at" = '2012-01-19 07:02:30.354285' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70_selection_71"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70_selection_72"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70_selection_73"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_70_selection_74"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_75"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75_selection_76"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_77"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75_selection_77"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75_selection_78"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_75_selection_79"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 07:02:30.400322', "updated_at" = '2012-01-19 07:02:30.400604' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_80"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80_selection_81"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (30.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_82"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80_selection_82"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80_selection_83"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_80_selection_84"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 07:02:30.455770', "updated_at" = '2012-01-19 07:02:30.456045' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_85"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_85"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85_selection_86"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85_selection_87"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85_selection_88"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_85_selection_89"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 07:02:30.479373', "updated_at" = '2012-01-19 07:02:30.479646' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-19 07:02:30.480353', "updated_at" = '2012-01-19 07:02:30.480617' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_90"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_90"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90_selection_91"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90_selection_92"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90_selection_93"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_90_selection_94"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_95"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_95"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95_selection_96"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95_selection_97"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95_selection_98"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_95_selection_99"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_100"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_100"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100_selection_101"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100_selection_102"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100_selection_103"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_100_selection_104"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.548092' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_105"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_105"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105_selection_106"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105_selection_107"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105_selection_108"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105_selection_109"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.573831' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_105_selection_110"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_111"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111_selection_112"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_113"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111_selection_113"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111_selection_114"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111_selection_115"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.600217' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_111_selection_116"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_117"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_117_selection_118"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_117_selection_119"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_117_selection_120"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (32.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_117_selection_121"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_122"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_122_selection_123"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_124"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_122_selection_124"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_117_selection_118' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.671655' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "system_code" = 'selection_117_selection_117_selection_118', "updated_at" = '2012-01-19 07:02:30.672874' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_125"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_125"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125_selection_126"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125_selection_127"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125_selection_128"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_125_selection_129"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_125_selection_127' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "system_code" = 'selection_125_selection_125_selection_127', "updated_at" = '2012-01-19 07:02:30.697926' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_130"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_130"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130_selection_131"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130_selection_132"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130_selection_133"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_130_selection_134"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_130_selection_131' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.724144' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "system_code" = 'selection_130_selection_130_selection_131', "updated_at" = '2012-01-19 07:02:30.725251' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_135"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_135_selection_136"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_135_selection_137"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_135_selection_138"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_139"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_135_selection_139"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_135_selection_136' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-19 07:02:30.749621' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "system_code" = 'selection_135_selection_135_selection_136', "updated_at" = '2012-01-19 07:02:30.750679' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_135_selection_135_selection_136' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'selection_135_selection_135_selection_135_selection_136', "updated_at" = '2012-01-19 07:02:30.753682' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-19 07:02:30.762060') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_141"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" = '2012-01-17 07:02:30.766714') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Tue, 17 Jan 2012 07:02:30 UTC +00:00], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_142"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_142"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_142' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-17 07:02:30.766714') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_147"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_150"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_155"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (32.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_160"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_161"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_162"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_161' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "system_code" = 'parent_1_selection_161', "updated_at" = '2012-01-19 07:02:30.890273' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_162' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "system_code" = 'parent_1_selection_162', "updated_at" = '2012-01-19 07:02:30.893865' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_166"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_166"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_167"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_167"], ["updated_at", Thu, 19 Jan 2012 07:02:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_166' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "system_code" = 'parent_1_selection_166', "updated_at" = '2012-01-19 07:02:30.920800' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_167' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "system_code" = 'parent_1_selection_167', "updated_at" = '2012-01-19 07:02:30.924283' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-19 07:02:30.925189' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Processing by CompaniesController#new as HTML Rendered companies/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 8ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 52ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17_duplicate"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Fri, 20 Jan 2012 11:13:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19_duplicate"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20_selection_21' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20_selection_21"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "world"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'world' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "world"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_25' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "selections_selections" SET "system_code" = NULL, "updated_at" = '2012-01-20 11:13:06.064500' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'hello' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_26' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'different' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-20 11:13:06.087300') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.087300', "updated_at" = '2012-01-20 11:13:06.088859' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello!world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello$world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '_hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_37' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_37"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_38' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_38"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_39' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_39"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_40' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_40"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_42' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_42"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_43' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_43"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_44' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_44"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_45' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_45"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_46' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_46"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_48' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_48"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_49' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_49"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_50' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_50"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_51' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_51"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_52' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_52"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_54' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_54"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_55' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_55"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_56' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_56"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_57' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_57"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_58' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_58"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_60' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_60"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_61' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_61"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_62' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_62"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_63' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_63"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_64' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_64"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_66' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_66"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_67' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_67"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_68' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_68"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_69' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_69"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_70' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_72' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_72"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_73' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_73"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_74' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_74"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_75' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_75"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_76' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_78' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_78"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_79' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_79"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_80' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_80"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_81' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_81"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_82' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_84' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_85' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_86' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_87' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-20 11:13:06.403697' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_89' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_92' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.5ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-20 11:13:06.430917' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-20 11:13:06.433911' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_94' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_95' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_96' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_97' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_99' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_100' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_101' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_102' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.485441', "updated_at" = '2012-01-20 11:13:06.485724' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_104' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_105' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_106' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_107' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.511501', "updated_at" = '2012-01-20 11:13:06.511799' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_109' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_109"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_110' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_110"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_111' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_111"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_112' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (34.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_112"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.571878', "updated_at" = '2012-01-20 11:13:06.572282' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.573311', "updated_at" = '2012-01-20 11:13:06.573604' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_114' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_114"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_115' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_115"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_116' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_116"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_117' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_117"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_119' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_119"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_120' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_120"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_121' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_121"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_122' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_122"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_124' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_126' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_127' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.648522' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_130' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_131' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_132' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_133' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.675705' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_133"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_135' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_135"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_136' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_136"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_137' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_137"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_138' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_138"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_139' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.702243' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_139"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_141"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_142' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_142"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_143' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_143"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_144' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_144"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_145"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_146' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_146"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_147' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_147"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.741212' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-20 11:13:06.742136' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_148"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_149' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_149"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_150"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_151' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_151"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_152' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_152"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.803436' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_154"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_155' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_155"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_156' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_156"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_157' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_157"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.830829' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-20 11:13:06.831682' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_159"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_160' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_160"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_161' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_161"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_162' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_162"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.858629' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-20 11:13:06.859477' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_163' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_163"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."archived_at" = '2012-01-20 11:13:06.870671') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."archived_at" = '2012-01-18 11:13:06.875653') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Wed, 18 Jan 2012 11:13:06 UTC +00:00], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-18 11:13:06.875653') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_166"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_167' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_167"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_168"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_169' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_169"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_170' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_170"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_170"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" = '2012-01-20 11:13:06.902261') LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:06.902261', "is_default" = 'f', "updated_at" = '2012-01-20 11:13:06.904375' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_171"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_174"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_175"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_176"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_177"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_179"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_182"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_183"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_184"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_185"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_187"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_189"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_190"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_190"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-20 11:13:07.031756' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-20 11:13:07.035267' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_191"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_192"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_193"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_194"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_195"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_195"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-20 11:13:07.061755' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-20 11:13:07.065132' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-20 11:13:07.066064' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_197' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_197' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_197"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_197"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_198' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_198' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_198"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_198"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_199' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_199' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_199"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_199"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_200' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_200' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_200"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_200"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_201' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_201"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_202' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_202' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_202"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_202"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_203' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_203' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_203"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_203"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_3"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (4.6ms)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_204' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_204"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_205' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_205' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_205"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_205"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_206' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_206' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_206"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_206"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_207' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_207' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_207"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_207"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_208' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_208' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_208"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_208"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_209' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_209"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_210' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_210' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_210"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_210"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_211' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_211' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_211"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_211"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_4"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_212' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_212"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_213' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_213' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_213"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_213"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_214' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_214' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_214"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_214"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_215' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_215' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_215"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_215"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_216' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_216' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_216"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_216"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_217' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_217"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_218' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_218' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_218"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_218"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_219' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_219' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_219"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_219"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_5"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-20 11:13:07.254827' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_220' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_220"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_221' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_221' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_221"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_221"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_222' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_222' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_222"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_222"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_223' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_223' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_223"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_223"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_224' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_224' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_224"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_224"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_225' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_225"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_226' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_226' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_226"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_226"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_227' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_227' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_227"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_227"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_6"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:07.304047', "updated_at" = '2012-01-20 11:13:07.304336' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_228' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_228"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_229' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_229' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_229"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_229"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_230' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_230' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_230"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_230"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_231' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_231' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_231"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_231"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_232' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_232' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_232"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_232"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_233' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_233"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_234' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_234' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_234"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_234"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_235' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_235' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_235"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_235"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_7"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:07.386470', "updated_at" = '2012-01-20 11:13:07.386755' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_236' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_236"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_237' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_237' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_237"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_237"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_238' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_238' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_238"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_238"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_239' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_239' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_239"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_239"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_240' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_240' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_240"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_240"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_241' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_241"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_242' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_242' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_242"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_242"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_243' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_243' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_243"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_243"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_8"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_244' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_244"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_245' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_245' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_245"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_245"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_246' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_246' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_246"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_246"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_247' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_247' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_247"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_247"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_248' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_248' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_248"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_248"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_249' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_249"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_250' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_250' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_250"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_250"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_251' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_251' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_251"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_251"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_9"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-20 11:13:07.480685' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_252' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_252"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_253' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_253' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_253"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_253"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_254' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_254' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_254"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_254"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_255' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_255' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_255"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_255"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_256' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_256' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_256"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_256"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_257' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (38.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_257"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_258' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_258' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_258"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_258"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_259' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_259' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_259"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_259"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["genre_id", nil], ["name", "selection_10"], ["state_id", 5], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "genre_id" = 5, "updated_at" = '2012-01-20 11:13:07.568473' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_260' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_260"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_261' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_261' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_261"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_261"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_262' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_262' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_262"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_262"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_263' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_263' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_263"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_263"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_264' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_264' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_264"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_264"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_265' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_265"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_266' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_266' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_266"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_266"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_267' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_267' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_267"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_267"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (3.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_268' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_268"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_269' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_269' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_269"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_269"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_270' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_270' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_270"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_270"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_271' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_271' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_271"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_271"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_272' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_272' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_272"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_272"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_273' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_273"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_274' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_274' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_274"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_274"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_275' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_275' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_275"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_275"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_276' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_276"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_277' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_277' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_277"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_277"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_278' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_278' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_278"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_278"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_279' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_279' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_279"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_279"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_280' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_280' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_280"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_280"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_281' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_281"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_282' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_282' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_282"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_282"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_283' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_283' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_283"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_283"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:07.699629' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_284' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_284"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_285' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_285' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_285"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_285"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_286' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_286' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_286"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_286"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_287' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_287' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_287"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_287"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_288' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_288' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_288"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_288"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_289' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_289"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_290' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_290' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_290"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_290"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_291' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_291' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_291"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_291"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:07.788007', "updated_at" = '2012-01-20 11:13:07.788301' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.8ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_292' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_292"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_293' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_293' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_293"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_293"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_294' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_294' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_294"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_294"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_295' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_295' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_295"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_295"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_296' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_296' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_296"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_296"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_297' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_297"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_298' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_298' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_298"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_298"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_299' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_299' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_299"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_299"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-20 11:13:07.834956', "updated_at" = '2012-01-20 11:13:07.835242' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_300' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_300"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_301' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_301' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_301"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_301"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_302' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_302' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_302"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_302"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_303' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_303' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_303"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_303"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_304' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_304' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_304"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_304"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_305' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_305"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_306' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_306' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_306"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_306"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_307' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_307' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_307"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_307"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.9ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_308' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_308"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_309' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_309' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_309"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_309"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_310' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_310' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_310"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_310"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_311' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_311' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_311"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_311"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_312' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_312' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_312"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_312"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_313' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_313"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_314' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_314' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_314"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_314"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_315' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_315' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_315"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_315"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-20 11:13:07.931590' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_316' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_316"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_317' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_317' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_317"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_317"], ["updated_at", Fri, 20 Jan 2012 11:13:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_318' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_318' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_318"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_318"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_319' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_319' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_319"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_319"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_320' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_320' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_320"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_320"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_321' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_321"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_322' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_322' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_322"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_322"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_323' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_323' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_323"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_323"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_324' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_324"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_325' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_325' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_325"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_325"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_326' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_326' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_326"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_326"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_327' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_327' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_327"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_327"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_328' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_328' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_328"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_328"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_329' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_329"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_330' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_330' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_330"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_330"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_331' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_331' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_331"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_331"], ["updated_at", Fri, 20 Jan 2012 11:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.3ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:18:17 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:18:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.5ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:18:29 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:18:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:19:23 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:19:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (24.9ms) Completed 200 OK in 37ms (Views: 35.9ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:12 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:22:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Parameters: {"use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 32ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"these"=>"params"}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 24ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 4ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:34:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:34:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (23.9ms) Completed 200 OK in 36ms (Views: 34.6ms | ActiveRecord: 0.2ms) Processing by CompaniesController#new as HTML Parameters: {"use_route"=>"selections"} Rendered companies/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:24 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:35:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:39 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:35:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (23.9ms) Completed 200 OK in 36ms (Views: 35.0ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (23.9ms) Completed 200 OK in 37ms (Views: 35.6ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 47ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:35:49 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:35:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (23.6ms) Completed 200 OK in 35ms (Views: 34.1ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 47ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:36:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms Processing by CompaniesController#new as HTML Rendered companies/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 34ms (Views: 1.2ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.4ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 19ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 2ms  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (30.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Sun, 22 Jan 2012 03:36:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20_selection_21' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20_selection_21"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "world"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'world' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "world"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_25' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "selections_selections" SET "system_code" = NULL, "updated_at" = '2012-01-22 03:37:00.069662' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'hello' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_26' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'different' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-22 03:37:00.090905') LIMIT 1  (0.3ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.090905', "updated_at" = '2012-01-22 03:37:00.092389' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello!world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello$world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '_hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_37' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_37"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_38' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_38"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_39' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_39"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_40' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_40"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_42' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_42"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_43' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_43"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_44' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_44"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_45' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_45"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_46' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_46"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_48' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_48"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_49' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_49"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_50' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_50"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_51' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_51"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_52' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_52"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_54' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_54"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_55' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_55"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_56' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_56"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_57' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_57"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_58' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_58"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_60' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_60"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_61' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_61"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_62' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_62"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_63' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_63"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_64' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_64"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_66' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_66"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_67' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_67"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_68' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_68"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_69' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_69"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_70' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_72' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_72"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_73' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_73"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_74' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_74"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_75' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_75"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_76' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_78' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_78"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_79' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_79"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_80' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_80"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_81' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_81"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_82' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_84' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_85' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_86' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_87' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-22 03:37:00.357030' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_89' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_92' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-22 03:37:00.382015' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-22 03:37:00.384926' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_94' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_95' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_96' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_97' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_99' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_100' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_101' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_102' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.466562', "updated_at" = '2012-01-22 03:37:00.466837' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_104' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_105' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_106' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_107' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.490022', "updated_at" = '2012-01-22 03:37:00.490282' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_109' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_109"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_110' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_110"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_111' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_111"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_112' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_112"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.514094', "updated_at" = '2012-01-22 03:37:00.514365' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.515099', "updated_at" = '2012-01-22 03:37:00.515366' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_114' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_114"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_115' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_115"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_116' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_116"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_117' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_117"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_119' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_119"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_120' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_120"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_121' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_121"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_122' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_122"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_124' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_126' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.5ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_127' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.580913' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_130' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_131' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_132' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_133' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.606849' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_133"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_135' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_135"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_136' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_136"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_137' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_137"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_138' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_138"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_139' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.670323' WHERE "selections_selections"."id" = 3 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_139"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_141"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_142' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_142"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_143' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_143"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_144' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_144"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_145"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_146' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_146"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_147' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_147"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.707537' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:37:00.708336' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_148"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_149' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_149"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_150"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_151' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_151"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_152' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_152"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.732001' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_154"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_155' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_155"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_156' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_156"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_157' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_157"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.757635' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:37:00.758405' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_159"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_160' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_160"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_161' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_161"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_162' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_162"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.782821' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:37:00.783581' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_163' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_163"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."archived_at" = '2012-01-22 03:37:00.793428') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."archived_at" = '2012-01-20 03:37:00.798128') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Fri, 20 Jan 2012 03:37:00 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-20 03:37:00.798128') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_166"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_167' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_167"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_168"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_169' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_169"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_170' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_170"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_170"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" = '2012-01-22 03:37:00.824310') LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:00.824310', "is_default" = 'f', "updated_at" = '2012-01-22 03:37:00.826553' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_171"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_174"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (36.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_175"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_176"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_177"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_179"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_182"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_183"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_184"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_185"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_187"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_189"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_190"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_190"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:37:00.948666' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:37:00.951902' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_191"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_192"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_193"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_194"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_195"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_195"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:37:00.977004' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:37:00.980202' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-22 03:37:00.981062' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_197' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_197' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_197"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_197"], ["updated_at", Sun, 22 Jan 2012 03:37:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_198' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_198' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_198"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_198"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_199' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_199' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_199"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_199"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_200' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_200' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_200"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_200"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_201' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_201"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_202' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_202' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_202"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_202"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_203' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_203' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_203"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_203"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_3"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (4.5ms)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_204' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_204"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_205' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_205' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_205"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_205"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_206' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_206' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_206"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_206"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_207' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_207' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_207"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_207"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_208' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_208' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_208"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_208"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_209' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_209"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_210' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_210' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_210"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_210"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_211' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_211' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_211"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_211"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_4"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_212' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_212"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_213' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_213' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_213"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_213"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_214' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_214' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_214"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_214"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_215' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_215' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_215"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_215"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_216' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_216' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_216"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_216"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_217' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_217"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_218' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_218' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_218"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_218"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_219' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_219' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_219"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_219"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_5"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:37:01.167915' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_220' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_220"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_221' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_221' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_221"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_221"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_222' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_222' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_222"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_222"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_223' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_223' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_223"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_223"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_224' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_224' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_224"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_224"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_225' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_225"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_226' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_226' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_226"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_226"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_227' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_227' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_227"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_227"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_6"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:01.250014', "updated_at" = '2012-01-22 03:37:01.250299' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_228' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_228"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_229' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_229' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_229"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_229"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_230' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_230' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_230"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_230"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_231' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_231' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_231"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_231"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_232' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_232' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_232"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_232"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_233' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_233"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_234' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_234' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_234"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_234"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_235' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_235' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_235"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_235"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_7"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:01.295217', "updated_at" = '2012-01-22 03:37:01.295495' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_236' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_236"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_237' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_237' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_237"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_237"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_238' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_238' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_238"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_238"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_239' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_239' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_239"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_239"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_240' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_240' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_240"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_240"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_241' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_241"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_242' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_242' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_242"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_242"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_243' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_243' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_243"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_243"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_8"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_244' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_244"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_245' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_245' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_245"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_245"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_246' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_246' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_246"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_246"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_247' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_247' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_247"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_247"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_248' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_248' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_248"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_248"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_249' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_249"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_250' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_250' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (39.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_250"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_250"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_251' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_251' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_251"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_251"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_9"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:37:01.492174' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_252' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_252"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_253' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_253' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_253"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_253"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_254' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_254' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_254"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_254"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_255' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_255' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_255"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_255"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_256' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_256' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_256"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_256"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_257' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_257"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_258' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_258' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_258"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_258"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_259' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_259' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_259"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_259"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["genre_id", nil], ["name", "selection_10"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "genre_id" = 5, "updated_at" = '2012-01-22 03:37:01.607807' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_260' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_260"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_261' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_261' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_261"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_261"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_262' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_262' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_262"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_262"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_263' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_263' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_263"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_263"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_264' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_264' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_264"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_264"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_265' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_265"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_266' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_266' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_266"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_266"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_267' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_267' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_267"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_267"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (3.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_268' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_268"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_269' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_269' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_269"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_269"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_270' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_270' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_270"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_270"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_271' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_271' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_271"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_271"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_272' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_272' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_272"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_272"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_273' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_273"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_274' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_274' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_274"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_274"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_275' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_275' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_275"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_275"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_276' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_276"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_277' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_277' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_277"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_277"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_278' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_278' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_278"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_278"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_279' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_279' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_279"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_279"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_280' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_280' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_280"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_280"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_281' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_281"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_282' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_282' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_282"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_282"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_283' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_283' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_283"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_283"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:01.775127' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_284' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_284"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_285' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_285' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_285"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_285"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_286' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_286' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_286"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_286"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_287' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_287' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_287"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_287"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_288' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_288' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_288"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_288"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_289' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_289"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_290' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_290' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_290"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_290"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_291' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_291' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_291"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_291"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:01.823909', "updated_at" = '2012-01-22 03:37:01.824196' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_292' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_292"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_293' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_293' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_293"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_293"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_294' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_294' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_294"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_294"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_295' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_295' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_295"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_295"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_296' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_296' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_296"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_296"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_297' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_297"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_298' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_298' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_298"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_298"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_299' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_299' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_299"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_299"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:37:01.869231', "updated_at" = '2012-01-22 03:37:01.869515' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_300' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_300"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_301' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_301' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_301"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_301"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_302' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_302' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_302"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_302"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_303' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_303' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_303"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_303"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_304' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_304' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_304"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_304"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_305' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_305"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_306' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_306' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_306"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_306"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_307' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_307' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_307"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_307"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_308' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (42.1ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_308"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_309' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_309' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_309"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_309"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_310' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_310' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_310"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_310"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_311' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_311' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_311"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_311"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_312' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_312' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_312"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_312"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_313' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_313"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_314' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_314' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_314"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_314"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_315' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_315' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_315"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_315"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:37:02.005948' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_316' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_316"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_317' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_317' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (1.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_317"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_317"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_318' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_318' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_318"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_318"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_319' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_319' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_319"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_319"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_320' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_320' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_320"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_320"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_321' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_321"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_322' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_322' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_322"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_322"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_323' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_323' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_323"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_323"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_324' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_324"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_325' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_325' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_325"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_325"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_326' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_326' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_326"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_326"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_327' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_327' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_327"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_327"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_328' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_328' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_328"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_328"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_329' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_329"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_330' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_330' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_330"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_330"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_331' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_331' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_331"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_331"], ["updated_at", Sun, 22 Jan 2012 03:37:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.1ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.0ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 7ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}} Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"these"=>"params"}, "id"=>"1"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 32ms (Views: 1.2ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"selection"=>{}, "id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 21ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:37:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/selections Completed 302 Found in 3ms WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:47:16 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:47:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:47:43 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:47:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:47:54 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:47:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.2ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.2ms) Processing by CompaniesController#new as HTML Parameters: {"use_route"=>"selections"} Rendered companies/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.0ms) Processing by CompaniesController#new as HTML Rendered companies/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 34ms (Views: 33.7ms | ActiveRecord: 0.0ms) Processing by CompaniesController#new as HTML Parameters: {"use_route"=>"selections"} Rendered companies/new.html.erb within layouts/application (25.0ms) Completed 200 OK in 36ms (Views: 35.2ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Parameters: {"use_route"=>"selections"} Completed 200 OK in 21ms (Views: 21.1ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"these"=>"params"}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 50ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 3ms  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20_selection_21' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20_selection_21"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "world"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'world' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "world"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_25' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "selections_selections" SET "system_code" = NULL, "updated_at" = '2012-01-22 03:52:07.760307' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'hello' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_26' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'different' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-22 03:52:07.814634') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:07.814634', "updated_at" = '2012-01-22 03:52:07.816199' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello!world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello$world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '_hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_37' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_37"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_38' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_38"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_39' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_39"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_40' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_40"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_42' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_42"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_43' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_43"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_44' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_44"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_45' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_45"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_46' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_46"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_48' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_48"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_49' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_49"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_50' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_50"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_51' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_51"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_52' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_52"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_54' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_54"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_55' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_55"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_56' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_56"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_57' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_57"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_58' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_58"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_60' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_60"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_61' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_61"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_62' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_62"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_63' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_63"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_64' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_64"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_66' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_66"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_67' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_67"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_68' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_68"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_69' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_69"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_70' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_72' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (34.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_72"], ["updated_at", Sun, 22 Jan 2012 03:52:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_73' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_73"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_74' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_74"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_75' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_75"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_76' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_78' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_78"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_79' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_79"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_80' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_80"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_81' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_81"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_82' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_84' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_85' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_86' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_87' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-22 03:52:08.091598' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_89' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_92' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-22 03:52:08.116944' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-22 03:52:08.119960' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_94' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_95' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_96' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_97' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_99' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_100' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_101' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_102' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:08.168851', "updated_at" = '2012-01-22 03:52:08.169145' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_104' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_105' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_106' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_107' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:08.193413', "updated_at" = '2012-01-22 03:52:08.193699' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_109' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_109"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_110' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_110"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_111' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_111"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_112' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_112"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:08.254316', "updated_at" = '2012-01-22 03:52:08.254641' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:08.255417', "updated_at" = '2012-01-22 03:52:08.255729' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_114' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_114"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_115' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_115"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_116' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_116"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_117' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_117"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_119' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_119"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_120' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_120"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_121' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_121"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_122' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_122"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_124' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_126' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_127' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.325367' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_130' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_131' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_132' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_133' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.351837' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_133"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_135' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_135"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_136' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_136"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_137' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_137"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_138' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_138"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_139' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.378757' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_139"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_141"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_142' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_142"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_143' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_143"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_144' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_144"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_145"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_146' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_146"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_147' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_147"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.416202' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:08.417022' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_148"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_149' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (34.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_149"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_150"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_151' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_151"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_152' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_152"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.476595' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_154"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_155' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_155"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_156' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_156"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_157' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_157"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.503528' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:08.504311' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_159"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_160' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_160"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_161' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_161"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_162' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_162"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.529500' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:08.530281' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_163' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_163"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."archived_at" = '2012-01-22 03:52:08.541244') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."archived_at" = '2012-01-20 03:52:08.546067') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Fri, 20 Jan 2012 03:52:08 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-20 03:52:08.546067') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_166"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_167' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_167"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_168"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_169' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_169"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_170' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_170"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_170"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" = '2012-01-22 03:52:08.573286') LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:08.573286', "is_default" = 'f', "updated_at" = '2012-01-22 03:52:08.575481' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_171"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_174"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_175"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_176"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_177"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_179"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_182"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_183"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_184"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_185"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_187"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_189"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_190"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_190"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:08.700098' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:08.703524' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_191"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_192"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_193"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_194"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_195"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_195"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:08.729605' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:08.732817' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-22 03:52:08.733681' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_197' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_197' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_197"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_197"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_198' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_198' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_198"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_198"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_199' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_199' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_199"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_199"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_200' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_200' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_200"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_200"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_201' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_201"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_202' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_202' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_202"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_202"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_203' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_203' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_203"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_203"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["genre_id", nil], ["name", "selection_3"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (4.1ms)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_204' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_204"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_205' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_205' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_205"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_205"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_206' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_206' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_206"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_206"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_207' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_207' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_207"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_207"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_208' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_208' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_208"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_208"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_209' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_209"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_210' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_210' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_210"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_210"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_211' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_211' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_211"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_211"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["genre_id", nil], ["name", "selection_4"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_212' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_212"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_213' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_213' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_213"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_213"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_214' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_214' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_214"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_214"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_215' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_215' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_215"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_215"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_216' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_216' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_216"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_216"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_217' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_217"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_218' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_218' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_218"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_218"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_219' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_219' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_219"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_219"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["genre_id", nil], ["name", "selection_5"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:52:08.928656' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.3ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_220' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_220"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_221' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_221' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_221"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_221"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_222' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_222' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_222"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_222"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_223' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_223' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_223"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_223"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_224' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_224' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_224"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_224"], ["updated_at", Sun, 22 Jan 2012 03:52:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_225' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_225"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_226' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_226' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_226"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_226"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_227' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_227' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_227"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_227"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["genre_id", nil], ["name", "selection_6"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:09.010088', "updated_at" = '2012-01-22 03:52:09.010397' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_228' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_228"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_229' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_229' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_229"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_229"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_230' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_230' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_230"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_230"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_231' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_231' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_231"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_231"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_232' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_232' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_232"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_232"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_233' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_233"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_234' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_234' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_234"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_234"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_235' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_235' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_235"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_235"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["genre_id", nil], ["name", "selection_7"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:09.055789', "updated_at" = '2012-01-22 03:52:09.056068' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_236' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_236"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_237' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_237' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_237"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_237"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_238' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_238' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_238"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_238"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_239' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_239' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_239"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_239"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_240' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_240' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_240"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_240"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_241' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_241"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_242' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_242' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_242"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_242"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_243' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_243' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_243"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_243"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["genre_id", nil], ["name", "selection_8"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_244' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_244"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_245' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_245' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_245"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_245"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_246' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_246' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_246"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_246"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_247' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_247' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_247"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_247"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_248' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_248' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_248"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_248"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_249' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_249"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_250' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_250' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_250"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_250"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_251' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_251' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_251"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_251"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["genre_id", nil], ["name", "selection_9"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:52:09.150367' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_252' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_252"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_253' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_253' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_253"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_253"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_254' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_254' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_254"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_254"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_255' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_255' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_255"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_255"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_256' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_256' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_256"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_256"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_257' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_257"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_258' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_258' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_258"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_258"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_259' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_259' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_259"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_259"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["genre_id", nil], ["name", "selection_10"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "genre_id" = 5, "updated_at" = '2012-01-22 03:52:09.237364' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_260' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_260"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_261' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_261' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_261"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_261"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_262' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_262' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_262"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_262"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_263' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_263' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_263"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_263"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_264' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_264' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_264"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_264"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_265' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_265"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_266' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_266' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_266"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_266"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_267' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_267' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_267"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_267"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (3.4ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_268' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_268"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_269' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_269' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_269"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_269"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_270' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_270' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_270"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_270"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_271' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_271' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_271"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_271"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_272' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_272' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_272"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_272"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_273' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_273"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_274' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_274' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_274"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_274"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_275' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_275' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_275"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_275"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_276' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_276"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_277' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_277' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_277"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_277"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_278' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_278' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_278"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_278"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_279' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_279' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_279"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_279"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_280' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_280' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_280"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_280"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_281' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_281"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_282' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_282' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_282"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_282"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_283' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_283' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_283"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_283"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:09.366158' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (44.2ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_284' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_284"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_285' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_285' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_285"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_285"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_286' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_286' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_286"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_286"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_287' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_287' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_287"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_287"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_288' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_288' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.4ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_288"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_288"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_289' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_289"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_290' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_290' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_290"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_290"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_291' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_291' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_291"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_291"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:09.453452', "updated_at" = '2012-01-22 03:52:09.453750' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_292' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_292"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_293' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_293' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_293"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_293"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_294' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_294' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_294"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_294"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_295' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_295' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_295"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_295"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_296' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_296' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_296"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_296"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_297' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_297"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_298' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_298' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_298"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_298"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_299' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_299' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_299"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_299"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:09.499798', "updated_at" = '2012-01-22 03:52:09.500090' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_300' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_300"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_301' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_301' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_301"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_301"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_302' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_302' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_302"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_302"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_303' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_303' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_303"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_303"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_304' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_304' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_304"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_304"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_305' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_305"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_306' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_306' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_306"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_306"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_307' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_307' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_307"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_307"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_308' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_308"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_309' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_309' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_309"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_309"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_310' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_310' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_310"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_310"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_311' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_311' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_311"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_311"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_312' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_312' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_312"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_312"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_313' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_313"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_314' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_314' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_314"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_314"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_315' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_315' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_315"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_315"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:09.637277' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_316' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_316"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_317' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_317' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_317"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_317"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_318' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_318' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_318"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_318"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_319' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_319' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_319"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_319"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_320' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_320' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_320"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_320"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_321' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_321"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_322' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_322' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_322"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_322"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_323' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_323' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_323"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_323"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_324' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_324"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_325' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_325' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_325"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_325"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_326' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_326' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_326"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_326"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_327' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_327' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_327"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_327"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_328' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_328' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_328"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_328"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_329' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_329"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_330' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_330' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_330"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_330"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_331' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_331' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_331"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_331"], ["updated_at", Sun, 22 Jan 2012 03:52:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:31 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:52:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 36ms (Views: 34.7ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.1ms) Completed 200 OK in 35ms (Views: 34.3ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Parameters: {"use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 7ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"these"=>"params"}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 5ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 48ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:52:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 3ms Processing by CompaniesController#new as HTML Parameters: {"use_route"=>"selections"} Rendered companies/new.html.erb within layouts/application (24.8ms) Completed 200 OK in 36ms (Views: 34.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (1.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_2' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_2"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_2"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#show as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms) Processing by Selections::SelectionsController#new as HTML Parameters: {"use_route"=>"selections"} Completed 200 OK in 21ms (Views: 20.9ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_3' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_3"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_3"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#edit as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_4", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_4' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_4' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_4"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_4"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 7ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_5", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_5' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_5' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_5"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_5"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{"id"=>nil, "name"=>"selection_6", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_6' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_6' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_6"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_6"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value DESC, name DESC LIMIT 1 Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Processing by Selections::SelectionsController#create as HTML Parameters: {"selection"=>{}, "use_route"=>"selections"} Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_7' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_7' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_7"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_7"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"these"=>"params"}, "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_8' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_8' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_8"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_8"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_9", "parent_id"=>nil, "system_code"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_9' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.3ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_10' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_10"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_10"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{"id"=>nil, "name"=>"selection_11", "parent_id"=>nil, "position_value"=>"999888777", "is_default"=>false, "is_system"=>nil, "archived_at"=>nil, "created_at"=>nil, "updated_at"=>nil}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 WARNING: Can't mass-assign protected attributes: id  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_11' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_10' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "name" = 'selection_11', "created_at" = NULL, "updated_at" = NULL WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections/1 Completed 302 Found in 6ms WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_12' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_12' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_12"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_12"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_13' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_13' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_13"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_13"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#update as HTML Parameters: {"id"=>"1", "selection"=>{}, "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.1ms) WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_14' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_14' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_14"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_14"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.3ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.5ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 50ms  (0.1ms) SELECT COUNT(*) FROM "selections_selections"  WARNING: Can't mass-assign protected attributes: id  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_15' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_15' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_15"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_15"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#destroy as HTML Parameters: {"id"=>"1", "use_route"=>"selections"} Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? ORDER BY position_value, name LIMIT 1 [["id", "1"]]  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name SQL (0.3ms) DELETE FROM "selections_selections" WHERE "selections_selections"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/selections Completed 302 Found in 3ms  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["genre_id", nil], ["name", "selection_1"], ["state_id", nil], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_16"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_16"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_16' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = '' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_17' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_17"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_17"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_17_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_17_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_18' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_18"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_18"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 3 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 3) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_18_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 3 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_19' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_19"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_19"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "duplicate"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_19_duplicate"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'duplicate' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_19_duplicate' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'something_else' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "something_else"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'Priorities' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "Priorities"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'telephone prefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "telephone prefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'TelephonePrefixes' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'telephone_prefix' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "TelephonePrefixes"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "telephone_prefix"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_20' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_20"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_20"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_21' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_20_selection_21' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_21"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_20_selection_21"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_22' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_22"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_23' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_23"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "world"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_24' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_24"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "hello"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'world' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "world"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "hello_world"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_25' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_25' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_25"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_25"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "selections_selections" SET "system_code" = NULL, "updated_at" = '2012-01-22 03:52:46.763989' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'hello' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_26' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_26"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_26"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_26' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'different' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_27' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_27"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_27"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_28' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (30.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_27' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_29"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_29"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-22 03:52:46.818305') LIMIT 1  (0.4ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:46.818305', "updated_at" = '2012-01-22 03:52:46.819868' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_30' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_29' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_31' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello!world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_32' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello$world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_33' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = '_hello' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_34' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello_world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_35' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'hello world' AND "selections_selections"."archived_at" IS NULL) LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_36' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_36"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_36"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_37' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_37' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_37"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_37"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_38' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_38' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_38"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_38"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_39' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_39' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_39"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_39"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_40' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_36_selection_40' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_40"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_36_selection_40"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["genre_id", nil], ["name", "selection_2"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 5 ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_41' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_41"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_41"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_42' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_42' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_42"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_42"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_43' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_43' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_43"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_43"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_44' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_44' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_44"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_44"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_45' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_41_selection_45' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_45"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_41_selection_45"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_46' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_46' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_46"], ["parent_id", nil], ["position_value", 10], ["system_code", "selection_46"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_47' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_47"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_47"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_48' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_48' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_48"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_48"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_49' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_49' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_49"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_49"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_50' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_50' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_50"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_50"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_51' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_47_selection_51' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_51"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_47_selection_51"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_52' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_52' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_52"], ["parent_id", nil], ["position_value", -20], ["system_code", "selection_52"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_53' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_53"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_53"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_54' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_54' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_54"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_54"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_55' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_55' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_55"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_55"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_56' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_56' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_56"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_56"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_57' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_53_selection_57' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_57"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_53_selection_57"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_58' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_58' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_58"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_58"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_59' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_59"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_59"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_60' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_60' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_60"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_60"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_61' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_61' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_61"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_61"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_62' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_62' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_62"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_62"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_63' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_59_selection_63' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_63"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_59_selection_63"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_64' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_64' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_64"], ["parent_id", nil], ["position_value", 0], ["system_code", "selection_64"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_65' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_65"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_65"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_66' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_66' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_66"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_66"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_67' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_67' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_67"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_67"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_68' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_68' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_68"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_68"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_69' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_65_selection_69' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_69"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_65_selection_69"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_70' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_70' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_70"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_70"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_71' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_71"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_71"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_72' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_72' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (33.0ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_72"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_72"], ["updated_at", Sun, 22 Jan 2012 03:52:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_73' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_73' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_73"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_73"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_74' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_74' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_74"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_74"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_75' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_71_selection_75' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_75"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_71_selection_75"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_76' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_76' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_76"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_76"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_77' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_77"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_77"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_78' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_78' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_78"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_78"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_79' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_79' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_79"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_79"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_80' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_80' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_80"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_80"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_81' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_77_selection_81' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_81"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_77_selection_81"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_82' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_82' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_82"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_82"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_83' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_83"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_83"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_84' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_84' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_84"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_84"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_85' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_85' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_85"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_85"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_86' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_86' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_86"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_86"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_87' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_83_selection_87' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_87"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_83_selection_87"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "name" = 'abc', "updated_at" = '2012-01-22 03:52:47.088736' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_88' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_88"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_88"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_89' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_89' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_89"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_89"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_90"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_90"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_91"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_91"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_92' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_92' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_92"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_88_selection_92"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_91' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 10, "updated_at" = '2012-01-22 03:52:47.114288' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_88_selection_90' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "position_value" = 20, "updated_at" = '2012-01-22 03:52:47.117273' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 1]] Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_93' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_93"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_93"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_94' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_94' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_94"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_94"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_95' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_95' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_95"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_95"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_96' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_96' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_96"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_96"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_97' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_93_selection_97' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_97"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_93_selection_97"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_98' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_98"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_98"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_99' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_99' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_99"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_99"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_100' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_100' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_100"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_100"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_101' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_101' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_101"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_101"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_102' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_98_selection_102' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_102"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_98_selection_102"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.164341', "updated_at" = '2012-01-22 03:52:47.164627' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 2) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_103' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_103"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_103"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_104' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_104' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_104"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_104"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_105' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_105' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_105"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_105"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_106' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_106' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_106"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_106"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_107' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_103_selection_107' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_107"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_103_selection_107"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.188512', "updated_at" = '2012-01-22 03:52:47.188790' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_108' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_108"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_108"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_109' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_109' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_109"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_109"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_110' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_110' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_110"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_110"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_111' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_111' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_111"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_111"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_112' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_108_selection_112' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_112"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_108_selection_112"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.248664', "updated_at" = '2012-01-22 03:52:47.248948' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.249730', "updated_at" = '2012-01-22 03:52:47.250018' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 4) ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_113' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_113"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_113"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_114' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_114' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_114"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_114"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_115' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_115' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_115"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_115"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_116' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_116' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_116"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_116"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_117' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_113_selection_117' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_117"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_113_selection_117"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_118' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_118"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_118"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_119' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_119' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_119"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_119"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_120' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_120' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_120"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_120"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_121' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_121' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_121"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_121"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_122' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_118_selection_122' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_122"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_118_selection_122"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_123' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_123"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_123"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_124' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_124' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_124"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_124"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_125' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_125' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_125"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_125"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_126' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_126' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_126"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_126"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_127' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_123_selection_127' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_127"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_123_selection_127"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.318001' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_128' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_128"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_128"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_129' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_129' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_129"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_129"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_130' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_130' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_130"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_130"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_131' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_131' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_131"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_131"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_132' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_132' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_132"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_132"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_133' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_128_selection_133' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.344244' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_133"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_128_selection_133"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_134' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_134"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_134"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_135' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_135' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_135"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_135"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_136' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_136' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_136"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_136"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_137' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_137' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_137"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_137"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_138' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_138' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_138"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_138"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_139' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_134_selection_139' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.370609' WHERE "selections_selections"."id" = 3 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_139"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_134_selection_139"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_140' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_140"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_140"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_141"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_141"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_142' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_142' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_142"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_142"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_143' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_143' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_143"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_143"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_144' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_144' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_144"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_140_selection_144"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_145' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_145"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_145"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_146' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_146' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_146"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_146"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_147' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_145_selection_147' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_147"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "selection_145_selection_147"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_140_selection_141' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.407381' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:47.408165' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_148' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_148"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_148"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_149' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_149' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (33.5ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.9ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_149"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_149"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_150"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_150"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_151' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_151' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_151"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_151"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_152' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_152' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_152"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_148_selection_152"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_148_selection_150' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.467149' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_153' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_153"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_153"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_154"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_154"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_155' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_155' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_155"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_155"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_156' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_156' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_156"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_156"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_157' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_157' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_157"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_153_selection_157"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_153_selection_154' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.494068' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:47.494866' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_158' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_158"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_158"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_159"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_159"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_160' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_160' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_160"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_160"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_161' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_161' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_161"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_161"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_162' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_162' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_162"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "selection_158_selection_162"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.519453' WHERE "selections_selections"."id" = 3  (0.1ms) UPDATE "selections_selections" SET "is_default" = 't', "updated_at" = '2012-01-22 03:52:47.520237' WHERE "selections_selections"."id" = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_158_selection_159' AND "selections_selections"."id" != 2 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 2) ORDER BY position_value, name LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_163' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_163' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_163"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_163"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_164' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_164' AND "selections_selections"."archived_at" = '2012-01-22 03:52:47.531011') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_164"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_164"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."archived_at" = '2012-01-20 03:52:47.535709') LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", Fri, 20 Jan 2012 03:52:47 UTC +00:00], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_165"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_165"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_165' AND "selections_selections"."id" != 1 AND "selections_selections"."archived_at" = '2012-01-20 03:52:47.535709') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_166' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_166"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_167' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_167' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_167"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_167"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_168"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_168"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_169' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_169' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_169"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_169"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_170' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_170' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_170"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_170"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_168' AND "selections_selections"."id" != 3 AND "selections_selections"."archived_at" = '2012-01-22 03:52:47.562234') LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 3) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.562234', "is_default" = 'f', "updated_at" = '2012-01-22 03:52:47.564377' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.0ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_171' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_171"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_172' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_172"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_173' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_173"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_174' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_174"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_175' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_175"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_176' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_176"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_2' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_177' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_177"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_178' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_178"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_179' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_179"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_10' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_180' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_180"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_181' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_181"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_182' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_182"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_183' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_183"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_184' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_184"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_185' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_185"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_186' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_186"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_187' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_187"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_188' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_188"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_189"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_189"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_190"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_190"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_189' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:47.685667' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_190' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:47.689070' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1s' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'parent_1' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_191' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_191"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_1"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_192' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_2' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_192"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_2"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_193' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'parent_3' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_193"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "parent_3"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_194"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_194"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_195"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_195"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_194' AND "selections_selections"."id" != 4 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 4) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:47.714364' WHERE "selections_selections"."id" = 4  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_195' AND "selections_selections"."id" != 5 AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."id" = 1 ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 5) ORDER BY position_value, name LIMIT 1  (0.1ms) UPDATE "selections_selections" SET "parent_id" = 1, "updated_at" = '2012-01-22 03:52:47.717691' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "system_code" = 'status', "updated_at" = '2012-01-22 03:52:47.718578' WHERE "selections_selections"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'statuses' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'status' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_196' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.8ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_196"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_197' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_197' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_197"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_197"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_198' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_198' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_198"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_198"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_199' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_199' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_199"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_199"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_200' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_200' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_200"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_200"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_201' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_201"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_202' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_202' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_202"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_202"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_203' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_203' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_203"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_203"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["genre_id", nil], ["name", "selection_3"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (4.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_204' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_204"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_205' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_205' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_205"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_205"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_206' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_206' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_206"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_206"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_207' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_207' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_207"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_207"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_208' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_208' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_208"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_208"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_209' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_209"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_210' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_210' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_210"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_210"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_211' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_211' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_211"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_211"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["genre_id", nil], ["name", "selection_4"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.7ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_212' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_212"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_213' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_213' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_213"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_213"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_214' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_214' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_214"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_214"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_215' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_215' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_215"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_215"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_216' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_216' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_216"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_216"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_217' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_217"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_218' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_218' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_218"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_218"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_219' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_219' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_219"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_219"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["genre_id", nil], ["name", "selection_5"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:52:47.914981' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_220' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_220"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_221' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_221' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_221"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_221"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_222' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_222' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_222"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_222"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_223' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_223' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_223"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_223"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_224' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_224' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_224"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_224"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_225' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_225"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_226' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_226' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_226"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_226"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_227' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_227' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_227"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_227"], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00], ["genre_id", nil], ["name", "selection_6"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:47.998510', "updated_at" = '2012-01-22 03:52:47.998831' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.8ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_228' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_228"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_229' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_229' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_229"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_229"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_230' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_230' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_230"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_230"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_231' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_231' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_231"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_231"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_232' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_232' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_232"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_232"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_233' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_233"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_234' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_234' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_234"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_234"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_235' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_235' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_235"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_235"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["genre_id", nil], ["name", "selection_7"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:48.045775', "updated_at" = '2012-01-22 03:52:48.046082' WHERE "selections_selections"."id" = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_236' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_236"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_237' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_237' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_237"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_237"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_238' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_238' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_238"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_238"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_239' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_239' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_239"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_239"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_240' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_240' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_240"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_240"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_241' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_241"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_242' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_242' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_242"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_242"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_243' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_243' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_243"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_243"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["genre_id", nil], ["name", "selection_8"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_244' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_244"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_245' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_245' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_245"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_245"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_246' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_246' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_246"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_246"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_247' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_247' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_247"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_247"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_248' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_248' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_248"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_248"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_249' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_249"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_250' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_250' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_250"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_250"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_251' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_251' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_251"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_251"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["genre_id", nil], ["name", "selection_9"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "state_id" = NULL, "updated_at" = '2012-01-22 03:52:48.141655' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (4.4ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_252' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_252"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_253' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_253' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_253"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_253"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_254' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_254' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_254"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_254"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_255' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_255' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_255"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_255"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_256' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_256' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_256"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_256"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_257' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_257"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_258' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_258' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_258"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_258"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_259' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_259' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_259"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_259"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("created_at", "genre_id", "name", "state_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["genre_id", nil], ["name", "selection_10"], ["state_id", 5], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "companies" SET "genre_id" = 5, "updated_at" = '2012-01-22 03:52:48.227495' WHERE "companies"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_260' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_260"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_261' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_261' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_261"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_261"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_262' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_262' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_262"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_262"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_263' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_263' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_263"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_263"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_264' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_264' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_264"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_264"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_265' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_265"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_266' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_266' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_266"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_266"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_267' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_267' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_267"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_267"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'not_match' ORDER BY position_value, name LIMIT 1 Rendered companies/_form.html.erb (3.2ms)  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_268' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_268"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_269' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_269' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_269"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_269"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_270' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_270' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_270"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_270"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_271' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_271' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_271"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_271"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_272' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_272' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_272"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_272"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_273' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_273"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_274' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_274' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_274"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_274"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_275' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_275' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_275"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_275"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_276' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_276"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_277' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_277' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_277"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_277"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_278' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_278' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_278"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_278"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_279' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_279' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_279"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_279"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_280' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_280' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_280"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_280"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_281' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_281"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_282' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_282' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_282"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_282"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_283' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_283' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_283"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_283"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:48.355621' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (43.3ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_284' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_284"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_285' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_285' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_285"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_285"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_286' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_286' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_286"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_286"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_287' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_287' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_287"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_287"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_288' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_288' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_288"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_288"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_289' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_289"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_290' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_290' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_290"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_290"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_291' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_291' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_291"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_291"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:48.442338', "updated_at" = '2012-01-22 03:52:48.442636' WHERE "selections_selections"."id" = 4  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_292' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_292"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_293' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_293' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_293"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_293"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_294' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_294' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_294"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_294"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_295' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_295' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_295"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_295"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_296' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_296' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_296"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_296"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_297' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_297"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_298' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_298' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_298"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_298"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_299' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_299' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_299"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_299"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "archived_at" = '2012-01-22 03:52:48.488994', "updated_at" = '2012-01-22 03:52:48.489284' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_300' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_300"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_301' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_301' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_301"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_301"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_302' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_302' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_302"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_302"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_303' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_303' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_303"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_303"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_304' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_304' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_304"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_304"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_305' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_305"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_306' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_306' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_306"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_306"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_307' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_307' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_307"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_307"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_308' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_308"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_309' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_309' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.6ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_309"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_309"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_310' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_310' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_310"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_310"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_311' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_311' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_311"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_311"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_312' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_312' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_312"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_312"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_313' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_313"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_314' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_314' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_314"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_314"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_315' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_315' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_315"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_315"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE "selections_selections" SET "is_default" = 'f', "updated_at" = '2012-01-22 03:52:48.623920' WHERE "selections_selections"."id" = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = NULL) ORDER BY position_value, name Rendered companies/_form.html.erb (6.5ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_316' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_316"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_317' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_317' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_317"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_317"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_318' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_318' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_318"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_318"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_319' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_319' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_319"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_319"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_320' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_320' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_320"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_320"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_321' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_321"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_322' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_322' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_322"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_322"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_323' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_323' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_323"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_323"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."system_code" = 'find_by_is_default' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 3) ORDER BY position_value, name Rendered companies/_form.html.erb (6.6ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_324' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_324"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "state"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_325' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_325' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.7ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_325"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_325"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_326' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_326' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_326"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_326"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_327' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_327' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_327"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_327"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_328' AND "selections_selections"."parent_id" = 1) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'state_selection_328' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.3ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_328"], ["parent_id", 1], ["position_value", 999888777], ["system_code", "state_selection_328"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_329' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_329"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "priority"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_330' AND "selections_selections"."parent_id" = 6) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'priority_selection_330' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 Selections::Selection Load (0.1ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 6 AND "selections_selections"."is_default" = 't' AND (id != 0) ORDER BY position_value, name LIMIT 1 SQL (0.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", true], ["is_system", nil], ["name", "selection_330"], ["parent_id", 6], ["position_value", 999888777], ["system_code", "priority_selection_330"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_331' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_331' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_331"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_331"], ["updated_at", Sun, 22 Jan 2012 03:52:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE "selections_selections"."system_code" = 'find_by_system_code' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."system_code" = 'state' ORDER BY position_value, name LIMIT 1 Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 AND (archived_at is NULL or id = 5) ORDER BY position_value, name Rendered companies/_form.html.erb (4.2ms) Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" WHERE "selections_selections"."parent_id" = 1 ORDER BY position_value, name WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."name" = 'selection_1' AND "selections_selections"."parent_id" IS NULL) LIMIT 1  (0.1ms) SELECT 1 FROM "selections_selections" WHERE ("selections_selections"."system_code" = 'selection_1' AND "selections_selections"."archived_at" IS NULL) LIMIT 1 SQL (2.4ms) INSERT INTO "selections_selections" ("archived_at", "created_at", "is_default", "is_system", "name", "parent_id", "position_value", "system_code", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["archived_at", nil], ["created_at", Sun, 22 Jan 2012 08:57:20 UTC +00:00], ["is_default", false], ["is_system", nil], ["name", "selection_1"], ["parent_id", nil], ["position_value", 999888777], ["system_code", "selection_1"], ["updated_at", Sun, 22 Jan 2012 08:57:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Selections::SelectionsController#index as HTML Parameters: {"use_route"=>"selections"} Selections::Selection Load (0.2ms) SELECT "selections_selections".* FROM "selections_selections" ORDER BY position_value, name Rendered /Users/nigelr/Rails/selections/app/views/selections/selections/index.html.erb within layouts/selections/application (2.4ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.2ms)