(5.3ms)  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
   (0.1ms)  select sqlite_version(*)
   (3.4ms)  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  ActiveRecord::SchemaMigration Load (0.2ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateCorrectorBases (20141018085223)
   (0.1ms)  begin transaction
   (0.8ms)  CREATE TABLE "corrector_bases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(6), "from" varchar(255) NOT NULL, "to" varchar(255) NOT NULL, "scope" varchar(255)) 
   (0.3ms)  CREATE UNIQUE INDEX "index_corrector_bases_on_scope_and_from" ON "corrector_bases" ("scope", "from")
   (0.2ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.3ms)  CREATE  INDEX "index_corrector_bases_on_type" ON "corrector_bases" ("type")
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141018085223"]]
   (3.3ms)  commit transaction
Migrating to CreateUuidsUuids (20141018085226)
   (0.1ms)  begin transaction
   (0.7ms)  CREATE TABLE "uuids_uuids" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar(36) NOT NULL, "record_id" integer NOT NULL, "record_type" varchar(255) NOT NULL) 
   (0.2ms)  CREATE  INDEX "index_uuids_uuids_on_record_id_and_record_type" ON "uuids_uuids" ("record_id", "record_type")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

   (0.2ms)  CREATE UNIQUE INDEX "index_uuids_uuids_on_value" ON "uuids_uuids" ("value")
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141018085226"]]
   (3.0ms)  commit transaction
Migrating to CreateOkeiUnits (20141019072900)
   (0.1ms)  begin transaction
   (0.5ms)  CREATE TABLE "okei_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "code" varchar(255) NOT NULL, "num" varchar(3), "int_code" varchar(4), "base" varchar(255) NOT NULL, "measure" varchar(255) NOT NULL, "factor" float NOT NULL) 
   (0.2ms)  CREATE UNIQUE INDEX "index_okei_units_on_code" ON "okei_units" ("code")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.2ms)  CREATE  INDEX "index_okei_units_on_base" ON "okei_units" ("base")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.2ms)  CREATE  INDEX "index_okei_units_on_measure" ON "okei_units" ("measure")
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072900"]]
   (4.1ms)  commit transaction
Migrating to PopulateOkeiUnits (20141019072901)
   (0.1ms)  begin transaction
  SQL (0.7ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072901"]]
   (3.3ms)  commit transaction
Migrating to PopulateOkeiCorrectors (20141019072902)
   (0.1ms)  begin transaction
  SQL (0.4ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072902"]]
   (2.3ms)  commit transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_type' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_measure' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_measure' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (5.4ms)  DELETE FROM "corrector_bases";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'corrector_bases';
   (3.3ms)  DELETE FROM "uuids_uuids";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.2ms)  DELETE FROM sqlite_sequence where name = 'uuids_uuids';
   (3.1ms)  DELETE FROM "okei_units";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.2ms)  DELETE FROM sqlite_sequence where name = 'okei_units';
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 7ms
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::Responder#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as JSON
Completed 404 Not Found in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.8ms)  begin transaction
   (0.1ms)  commit transaction
   (0.2ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as JSON
Completed 404 Not Found in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as JSON
Completed 404 Not Found in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 1' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 1' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 1' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 2' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 3' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 4' LIMIT 1
  SQL (2.2ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 3"], ["factor", 856.7], ["int_code", "EEE"], ["measure", "Длина"], ["name", "Единица 4"], ["num", "005"]]
  Okei::Unit Load (0.2ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "d13bd410-0788-4d60-a043-517d2263e3a5"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 3' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 4' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 5' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 7' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 7' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 7' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 8' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 8' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 9' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 8"], ["factor", 438.32], ["int_code", "III"], ["measure", "Длина"], ["name", "Единица 9"], ["num", "010"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "faad80e8-b5fb-402f-b960-5a72c72577e2"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 7' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 8' LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 9' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 10' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 10"], ["factor", 939.51], ["int_code", "KKK"], ["measure", "Длина"], ["name", "Единица 10"], ["num", "012"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "8aa45c4a-f66a-44ff-a3b1-050f4a7ba887"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 9' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 14' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 14' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 14"], ["factor", 681.05], ["int_code", "OOO"], ["measure", "Длина"], ["name", "Единица 14"], ["num", "015"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "ff2e9e63-9a7e-49df-ba7e-523cf2ac1973"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 17' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 357.28], ["int_code", "RRR"], ["measure", "Длина"], ["name", "Единица 17"], ["num", "018"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "08753b8c-5553-4e47-a046-f99018285817"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.2ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.4ms)
Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.3ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 18' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 811.69], ["int_code", "SSS"], ["measure", "Длина"], ["name", "Единица 18"], ["num", "019"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a1a80c64-87d6-46e4-b051-be3c7848d411"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.1ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 184.2], ["int_code", "TTT"], ["measure", "Длина"], ["name", "Единица 19"], ["num", "020"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "380e0229-97dc-4747-95cd-8c8d80e6a0cf"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 20' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 614.91], ["int_code", "UUU"], ["measure", "Длина"], ["name", "Единица 20"], ["num", "021"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "0cf70137-bdba-49e6-aea7-4681e4104c7a"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 21' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 460.23], ["int_code", "VVV"], ["measure", "Длина"], ["name", "Единица 21"], ["num", "022"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1cfd00a4-b5c8-4ffe-92de-3875cfa1dbdd"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 17' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 22' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 17"], ["factor", 799.21], ["int_code", "WWW"], ["measure", "Длина"], ["name", "Единица 22"], ["num", "023"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "97d6c3c8-1cba-4cbc-824d-ef4554729fd1"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '97d6c3c8-1cba-4cbc-824d-ef4554729fd1'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 18' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 23' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 18"], ["factor", 577.24], ["int_code", "XXA"], ["measure", "Длина"], ["name", "Единица 23"], ["num", "024"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "c5ebe6c6-bf30-4c85-a7d3-f7584fdbc695"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'c5ebe6c6-bf30-4c85-a7d3-f7584fdbc695'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 19"], ["factor", 959.22], ["int_code", "YAB"], ["measure", "Длина"], ["name", "Единица 24"], ["num", "025"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "60fc5905-a169-4555-84e8-ff71faadcc93"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 20' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 25' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 20"], ["factor", 457.71], ["int_code", "ABC"], ["measure", "Длина"], ["name", "Единица 25"], ["num", "026"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "5cc4ca12-a568-4bf6-b9bb-b1b490ba9adc"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 26' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 21"], ["factor", 317.96], ["int_code", "BCD"], ["measure", "ДЛИНА"], ["name", "Единица 26"], ["num", "027"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "2af01389-aab1-43e6-9f82-aa6287a58d47"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 27' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 22"], ["factor", 963.05], ["int_code", "CDE"], ["measure", "ПРОЧИЕ"], ["name", "Единица 27"], ["num", "028"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "478c2f3e-a041-425d-a519-55dd6d573c26"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 23' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 28' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 23"], ["factor", 721.96], ["int_code", "DEF"], ["measure", "ДЛИНА"], ["name", "Единица 28"], ["num", "029"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "8c158f14-7419-40c7-9cb8-e498b4aacbb2"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 24"], ["factor", 941.59], ["int_code", "EFG"], ["measure", "ПРОЧИЕ"], ["name", "Единица 29"], ["num", "030"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "63ee713e-aa11-44bf-8464-84071ce90f98"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 30' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 25"], ["factor", 299.16], ["int_code", "FGH"], ["measure", "ДЛИНА"], ["name", "Единица 30"], ["num", "031"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "c04e6093-9e0e-4be7-8e11-31b4faa0d50c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 26"], ["factor", 643.51], ["int_code", "GHI"], ["measure", "ПРОЧИЕ"], ["name", "Единица 31"], ["num", "032"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "52172ad5-36bf-4e1b-b242-db4cf4770b83"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 27"], ["factor", 671.06], ["int_code", "HIJ"], ["measure", "ДЛИНА"], ["name", "Единица 32"], ["num", "033"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b2787d8c-b56b-4885-bcc6-e8cda600c78b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 33' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 28"], ["factor", 484.03], ["int_code", "IJK"], ["measure", "ПРОЧИЕ"], ["name", "Единица 33"], ["num", "034"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "3e45456a-7e3c-448e-8776-4674af685d4f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 206.02], ["int_code", "JKL"], ["measure", "ДЛИНА"], ["name", "Единица 34"], ["num", "035"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "0c9bbca5-b3f8-42c2-97e8-b3bd5556c75c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 568.11], ["int_code", "KLM"], ["measure", "ПРОЧИЕ"], ["name", "Единица 35"], ["num", "036"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "c8ff352b-30c5-4df8-a5e8-a7abecfa7eff"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.9ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 592.49], ["int_code", "LMN"], ["measure", "ДЛИНА"], ["name", "Единица 36"], ["num", "037"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "5eca23f0-3030-4979-82b1-cac12bdcf49b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 511.98], ["int_code", "MNO"], ["measure", "ПРОЧИЕ"], ["name", "Единица 37"], ["num", "038"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6d116bfc-8e04-43f3-975a-719967226725"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 38' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 426.81], ["int_code", "NOP"], ["measure", "ДЛИНА"], ["name", "Единица 38"], ["num", "039"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "535224a4-dadb-4b32-a2a7-cab293b42057"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 528.17], ["int_code", "OPQ"], ["measure", "ПРОЧИЕ"], ["name", "Единица 39"], ["num", "040"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "532e0f3b-d76f-40a5-8fd8-7e8e79ecfea8"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 700.69], ["int_code", "PQR"], ["measure", "ДЛИНА"], ["name", "Единица 40"], ["num", "041"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "3d875757-dd32-4a54-93bb-86f436d59851"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 925.44], ["int_code", "QRS"], ["measure", "ПРОЧИЕ"], ["name", "Единица 41"], ["num", "042"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "af270ad7-fc38-4a84-bef4-35af10f81305"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 42' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 173.21], ["int_code", "RST"], ["measure", "ДЛИНА"], ["name", "Единица 42"], ["num", "043"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1b91b554-be25-4fe2-96a3-f666af4fc6d7"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 222.5], ["int_code", "STU"], ["measure", "ПРОЧИЕ"], ["name", "Единица 43"], ["num", "044"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "65507e60-a935-4cbe-9aef-fd733d58260c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.1ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.9ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 156.3], ["int_code", "TUV"], ["measure", "ДЛИНА"], ["name", "Единица 44"], ["num", "045"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "402fd13f-0400-4b02-83f1-b85a4f4a6bcc"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 45' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 470.55], ["int_code", "UVW"], ["measure", "ПРОЧИЕ"], ["name", "Единица 45"], ["num", "046"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "1b461638-c80a-45e7-8482-825ff6a76ce1"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 46' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 29"], ["factor", 298.3], ["int_code", "VWA"], ["measure", "Длина"], ["name", "Единица 46"], ["num", "047"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a0c7929f-438a-4eb5-ab0b-d31366a3cc3c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/a0c7929f-438a-4eb5-ab0b-d31366a3cc3c" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"a0c7929f-438a-4eb5-ab0b-d31366a3cc3c"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'a0c7929f-438a-4eb5-ab0b-d31366a3cc3c'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 47' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 30"], ["factor", 228.23], ["int_code", "WXB"], ["measure", "Длина"], ["name", "Единица 47"], ["num", "048"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "50db90c9-a4cb-4b8e-83c3-d03e509976f5"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/50db90c9-a4cb-4b8e-83c3-d03e509976f5" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"50db90c9-a4cb-4b8e-83c3-d03e509976f5"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '50db90c9-a4cb-4b8e-83c3-d03e509976f5'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 31' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 48' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 31"], ["factor", 692.93], ["int_code", "XAC"], ["measure", "Длина"], ["name", "Единица 48"], ["num", "049"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "0ceffd5e-9028-4d6c-93c3-d5494d95432e"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/0ceffd5e-9028-4d6c-93c3-d5494d95432e" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"0ceffd5e-9028-4d6c-93c3-d5494d95432e"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '0ceffd5e-9028-4d6c-93c3-d5494d95432e'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 49' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 32"], ["factor", 206.3], ["int_code", "YBD"], ["measure", "Длина"], ["name", "Единица 49"], ["num", "050"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "d2538d85-5332-4697-bd2b-2c86abe9e0a0"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 33' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 50' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 33"], ["factor", 292.44], ["int_code", "ACE"], ["measure", "Длина"], ["name", "Единица 50"], ["num", "051"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "8b8e3814-d641-4b00-9fc6-a4b5f8a1758c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-23 10:21:14 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 51' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 34"], ["factor", 45.37], ["int_code", "BDF"], ["measure", "Длина"], ["name", "Единица 51"], ["num", "052"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "4db7aa0f-78a2-4bab-a0ca-f6117bbf4e7b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (7.9ms)
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (3.5ms)
   (0.2ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 52' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 809.13], ["int_code", "CEG"], ["measure", "Длина"], ["name", "Единица 52"], ["num", "053"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "137e685f-12b1-4ecc-8991-d0609ffcb283"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 53' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 272.69], ["int_code", "DFH"], ["measure", "Длина"], ["name", "Единица 53"], ["num", "054"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "43d54c3d-ac27-4f38-bd4f-116cccd1e69f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 54' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 266.01], ["int_code", "EGI"], ["measure", "Длина"], ["name", "Единица 54"], ["num", "055"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7d599dcb-fcf0-40ac-8e30-d089ec2f2396"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 55' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 371.56], ["int_code", "FHJ"], ["measure", "Длина"], ["name", "Единица 55"], ["num", "056"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a27653d2-e17d-4fce-8636-477a006d6b9f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 56' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 649.43], ["int_code", "GIK"], ["measure", "Длина"], ["name", "Единица 56"], ["num", "057"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7046bd65-410e-4e8f-97ed-41ac4ba66479"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_type' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_measure' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_measure' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_type' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_measure' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_measure' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (4.8ms)  DELETE FROM "corrector_bases";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'corrector_bases';
   (3.5ms)  DELETE FROM "uuids_uuids";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'uuids_uuids';
   (3.5ms)  DELETE FROM "okei_units";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'okei_units';
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 1' LIMIT 1
  SQL (0.5ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 821.11], ["int_code", "BBB"], ["measure", "Длина"], ["name", "Единица 1"], ["num", "002"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "9678ca2a-9e10-4bee-ab44-29de320b5df0"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.6ms)  begin transaction
   (0.7ms)  commit transaction
   (0.5ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.2ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 2' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 273.32], ["int_code", "CCC"], ["measure", "Длина"], ["name", "Единица 2"], ["num", "003"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a255e5da-9d3f-4061-93f7-5661342cd1e4"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 3' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 654.15], ["int_code", "DDD"], ["measure", "Длина"], ["name", "Единица 3"], ["num", "004"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "72462688-00b3-41e6-ab33-898ede008c75"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 4' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 519.83], ["int_code", "EEE"], ["measure", "Длина"], ["name", "Единица 4"], ["num", "005"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "5eb781b2-0b87-4801-90ac-74f307a0f951"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 5' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 634.12], ["int_code", "FFF"], ["measure", "Длина"], ["name", "Единица 5"], ["num", "006"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "8cacc742-aa71-4eb8-8009-6beb17304d38"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.2ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 1' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 1"], ["factor", 67.98], ["int_code", "GGG"], ["measure", "Длина"], ["name", "Единица 6"], ["num", "007"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "dfe940e9-a723-4d7f-ac00-b8263f02a652"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 7' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 2"], ["factor", 294.11], ["int_code", "HHH"], ["measure", "Длина"], ["name", "Единица 7"], ["num", "008"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "4686863d-7251-49a8-9b88-6e98313e21fe"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 8' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 3"], ["factor", 206.12], ["int_code", "III"], ["measure", "Длина"], ["name", "Единица 8"], ["num", "009"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "775c9402-6f54-4926-95b2-4f5bcc2fe12a"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '775c9402-6f54-4926-95b2-4f5bcc2fe12a'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 4' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 9' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 4"], ["factor", 68.99], ["int_code", "JJJ"], ["measure", "Длина"], ["name", "Единица 9"], ["num", "010"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a4050d02-5db6-4565-be3b-dce8167e0f87"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'a4050d02-5db6-4565-be3b-dce8167e0f87'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 7' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 8' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 9' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 14' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 9"], ["factor", 89.96], ["int_code", "NNN"], ["measure", "Длина"], ["name", "Единица 14"], ["num", "015"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "227a895e-c8c8-49cf-9b18-d24871df7fee"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 8' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 10' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 10' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 17' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 18' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 12"], ["factor", 624.99], ["int_code", "RRR"], ["measure", "Длина"], ["name", "Единица 18"], ["num", "019"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "823cb6cc-f3a2-4746-97f6-caf355da2c6d"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 17' LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 14' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 14"], ["factor", 931.49], ["int_code", "TTT"], ["measure", "Длина"], ["name", "Единица 19"], ["num", "021"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "c9dd6b9c-d68d-4c0b-b13a-35f932bdb6b4"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 20' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 20' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 21' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 17' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 22' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 18' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 23' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 18"], ["factor", 530.65], ["int_code", "XXA"], ["measure", "Длина"], ["name", "Единица 23"], ["num", "024"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "c43dfdf3-0161-46f3-9207-ca219b0244b8"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 17' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 22' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 20' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 25' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 20' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 25' LIMIT 1
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 26' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 21"], ["factor", 716.03], ["int_code", "BCD"], ["measure", "ДЛИНА"], ["name", "Единица 26"], ["num", "027"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "62386d89-4d8f-4e05-b135-71a61bd44453"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 27' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 22"], ["factor", 802.11], ["int_code", "CDE"], ["measure", "ПРОЧИЕ"], ["name", "Единица 27"], ["num", "028"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "9490da06-3cf3-4bea-a440-197c53ae84b7"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 23' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 28' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 23"], ["factor", 41.0], ["int_code", "DEF"], ["measure", "ДЛИНА"], ["name", "Единица 28"], ["num", "029"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "2909afa2-ac29-4dce-9b66-339ac903f345"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 24"], ["factor", 106.25], ["int_code", "EFG"], ["measure", "ПРОЧИЕ"], ["name", "Единица 29"], ["num", "030"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "ef3fc73a-07e8-453d-a28f-4a494b4185b8"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 30' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 25"], ["factor", 131.77], ["int_code", "FGH"], ["measure", "ДЛИНА"], ["name", "Единица 30"], ["num", "031"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "2ab5d860-606a-43c9-a23c-b78f4a63f9cf"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 26"], ["factor", 29.6], ["int_code", "GHI"], ["measure", "ПРОЧИЕ"], ["name", "Единица 31"], ["num", "032"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "80f65465-7302-40ef-af18-7d3d7db7d004"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 27"], ["factor", 189.71], ["int_code", "HIJ"], ["measure", "ДЛИНА"], ["name", "Единица 32"], ["num", "033"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "6396f2bd-af23-4f92-8a65-ca152ebb97e4"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 33' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 28"], ["factor", 66.74], ["int_code", "IJK"], ["measure", "ПРОЧИЕ"], ["name", "Единица 33"], ["num", "034"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "dda3af2f-e810-41c8-8ecd-078a50659c2f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 730.21], ["int_code", "JKL"], ["measure", "Длина"], ["name", "Единица 34"], ["num", "035"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "6624be29-8748-4f7d-8e9f-e32e26fa3d4e"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/errors.json.jbuilder (0.6ms)
Completed 404 Not Found in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 196.94], ["int_code", "KLM"], ["measure", "Длина"], ["name", "Единица 35"], ["num", "036"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1270b038-22ab-415d-8354-6b521d51ac65"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 900.55], ["int_code", "LMN"], ["measure", "Длина"], ["name", "Единица 36"], ["num", "037"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "2dfb4b07-641d-40fe-ba6f-dde011c94609"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.1ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.3ms)
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 45.06], ["int_code", "MNO"], ["measure", "Длина"], ["name", "Единица 37"], ["num", "038"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1a3396c8-c8df-4552-8261-c170bd55ef45"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 38' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 479.99], ["int_code", "NOP"], ["measure", "Длина"], ["name", "Единица 38"], ["num", "039"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "dae19e5e-a2ce-42b3-ae06-b5a7070c9e24"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.2ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 29"], ["factor", 35.22], ["int_code", "OPQ"], ["measure", "Длина"], ["name", "Единица 39"], ["num", "040"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "c7fc7385-4dca-4975-90f8-585e2f373fd8"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (5.9ms)
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (3.3ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 3ms
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 701.31], ["int_code", "PQR"], ["measure", "ДЛИНА"], ["name", "Единица 40"], ["num", "041"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "ebd3ea63-871c-4dc4-a57f-7260cbaebd5f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 484.8], ["int_code", "QRS"], ["measure", "ПРОЧИЕ"], ["name", "Единица 41"], ["num", "042"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6fa74e79-bf4d-47e0-8a90-68c0c71f7215"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.0ms)
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.2ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 42' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 905.79], ["int_code", "RST"], ["measure", "ДЛИНА"], ["name", "Единица 42"], ["num", "043"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "76d8188a-cb97-40d3-8211-d83050ec5119"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 98.02], ["int_code", "STU"], ["measure", "ПРОЧИЕ"], ["name", "Единица 43"], ["num", "044"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "7db16841-f3cb-44a6-a7ac-f7546e393576"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 715.49], ["int_code", "TUV"], ["measure", "ДЛИНА"], ["name", "Единица 44"], ["num", "045"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "4274ad59-f9a6-42b6-9341-0ba505b45953"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 45' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 819.53], ["int_code", "UVW"], ["measure", "ПРОЧИЕ"], ["name", "Единица 45"], ["num", "046"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "3915783e-538e-4d50-99ba-7952066b248e"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.9ms)
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 46' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 666.03], ["int_code", "VWA"], ["measure", "ДЛИНА"], ["name", "Единица 46"], ["num", "047"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "13b5dfc1-c18a-4f7b-84f4-75216b92fe0b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 47' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 389.26], ["int_code", "WXB"], ["measure", "ПРОЧИЕ"], ["name", "Единица 47"], ["num", "048"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "0db79c3b-ba3e-418c-b6ce-5638b66694ac"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.1ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 48' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 568.39], ["int_code", "XAC"], ["measure", "ДЛИНА"], ["name", "Единица 48"], ["num", "049"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "d918f8a2-6b3b-4c2b-8920-0fd6a028889b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 49' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 959.75], ["int_code", "YBD"], ["measure", "ПРОЧИЕ"], ["name", "Единица 49"], ["num", "050"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "57688161-4344-464b-b295-9077f6032280"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 50' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 765.12], ["int_code", "ACE"], ["measure", "ДЛИНА"], ["name", "Единица 50"], ["num", "051"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "03ee81c1-f6f0-45dc-a2cb-83ffbec477a4"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 51' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 214.61], ["int_code", "BDF"], ["measure", "ПРОЧИЕ"], ["name", "Единица 51"], ["num", "052"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "1dfe7cf4-44ac-46c4-a360-8097f88f182d"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 52' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 30"], ["factor", 931.3], ["int_code", "CEG"], ["measure", "Длина"], ["name", "Единица 52"], ["num", "053"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "6dee4c74-b8be-4dbb-b556-f843b8e9f923"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 31' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 53' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 31"], ["factor", 993.87], ["int_code", "DFH"], ["measure", "Длина"], ["name", "Единица 53"], ["num", "054"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "ea2ef439-faa5-4da7-bb78-f710ebeb95a3"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 54' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 32"], ["factor", 850.43], ["int_code", "EGI"], ["measure", "Длина"], ["name", "Единица 54"], ["num", "055"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "08764958-d635-4b3b-a8e4-283c2bc5d17b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/08764958-d635-4b3b-a8e4-283c2bc5d17b" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"08764958-d635-4b3b-a8e4-283c2bc5d17b"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '08764958-d635-4b3b-a8e4-283c2bc5d17b'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 33' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 55' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 33"], ["factor", 37.35], ["int_code", "FHJ"], ["measure", "Длина"], ["name", "Единица 55"], ["num", "056"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "9d8bb92e-eb47-4136-aea4-7cec02d54822"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/9d8bb92e-eb47-4136-aea4-7cec02d54822" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"9d8bb92e-eb47-4136-aea4-7cec02d54822"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '9d8bb92e-eb47-4136-aea4-7cec02d54822'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 56' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 34"], ["factor", 403.05], ["int_code", "GIK"], ["measure", "Длина"], ["name", "Единица 56"], ["num", "057"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "d2491650-5377-4403-a420-a73058e9ebaf"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/d2491650-5377-4403-a420-a73058e9ebaf" for 127.0.0.1 at 2014-10-23 11:18:13 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"d2491650-5377-4403-a420-a73058e9ebaf"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'd2491650-5377-4403-a420-a73058e9ebaf'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT  "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  ORDER BY "uuids_uuids"."id" ASC LIMIT 1  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (4.5ms)  DELETE FROM "corrector_bases";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'corrector_bases';
   (3.3ms)  DELETE FROM "uuids_uuids";
   (0.4ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.2ms)  DELETE FROM sqlite_sequence where name = 'uuids_uuids';
   (3.2ms)  DELETE FROM "okei_units";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'okei_units';
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
  Rendered okei/api/v1/responder/errors.json (0.2ms)
Completed 404 Not Found in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 3ms
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 2ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 500 Internal Server Error in 1ms
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (5.5ms)  DELETE FROM "corrector_bases";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'corrector_bases';
   (3.0ms)  DELETE FROM "uuids_uuids";
   (0.4ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'uuids_uuids';
   (2.8ms)  DELETE FROM "okei_units";
   (0.2ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'okei_units';
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
  Rendered okei/api/v1/responder/errors.json (0.2ms)
Completed 404 Not Found in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (2.7ms)  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
   (0.1ms)  select sqlite_version(*)
   (2.5ms)  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateCorrectorBases (20141018085223)
   (0.0ms)  begin transaction
   (0.3ms)  CREATE TABLE "corrector_bases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(6), "from" varchar(255) NOT NULL, "to" varchar(255) NOT NULL, "scope" varchar(255)) 
   (0.2ms)  CREATE UNIQUE INDEX "index_corrector_bases_on_scope_and_from" ON "corrector_bases" ("scope", "from")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.1ms)  CREATE  INDEX "index_corrector_bases_on_type" ON "corrector_bases" ("type")
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141018085223"]]
   (2.8ms)  commit transaction
Migrating to CreateUuidsUuids (20141018085226)
   (0.0ms)  begin transaction
   (0.3ms)  CREATE TABLE "uuids_uuids" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar(36) NOT NULL, "record_id" integer NOT NULL, "record_type" varchar(255) NOT NULL) 
   (0.1ms)  CREATE  INDEX "index_uuids_uuids_on_record_id_and_record_type" ON "uuids_uuids" ("record_id", "record_type")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

   (0.2ms)  CREATE UNIQUE INDEX "index_uuids_uuids_on_value" ON "uuids_uuids" ("value")
  SQL (0.1ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141018085226"]]
   (2.3ms)  commit transaction
Migrating to CreateOkeiUnits (20141019072900)
   (0.0ms)  begin transaction
   (0.4ms)  CREATE TABLE "okei_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "code" varchar(255) NOT NULL, "num" varchar(3), "int_code" varchar(4), "base" varchar(255) NOT NULL, "measure" varchar(255) NOT NULL, "factor" float NOT NULL) 
   (0.2ms)  CREATE UNIQUE INDEX "index_okei_units_on_code" ON "okei_units" ("code")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)  CREATE  INDEX "index_okei_units_on_base" ON "okei_units" ("base")
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)  CREATE  INDEX "index_okei_units_on_measure" ON "okei_units" ("measure")
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072900"]]
   (2.2ms)  commit transaction
Migrating to PopulateOkeiUnits (20141019072901)
   (0.0ms)  begin transaction
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072901"]]
   (1.7ms)  commit transaction
Migrating to PopulateOkeiCorrectors (20141019072902)
   (0.1ms)  begin transaction
  SQL (0.3ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20141019072902"]]
   (2.2ms)  commit transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_type' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_measure' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_measure' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_base' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_base' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_okei_units_on_code' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_okei_units_on_code' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_value' AND type='index'

   (0.1ms)              SELECT sql
            FROM sqlite_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
            UNION ALL
            SELECT sql
            FROM sqlite_temp_master
            WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'

  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (5.6ms)  DELETE FROM "corrector_bases";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'corrector_bases';
   (3.0ms)  DELETE FROM "uuids_uuids";
   (0.3ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'uuids_uuids';
   (2.5ms)  DELETE FROM "okei_units";
   (0.1ms)  SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
   (0.1ms)  DELETE FROM sqlite_sequence where name = 'okei_units';
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 1' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 1' LIMIT 1
  SQL (0.5ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 1"], ["factor", 179.64], ["int_code", "BBB"], ["measure", "Длина"], ["name", "Единица 1"], ["num", "002"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "dbb334f0-db12-4846-9ddb-7fdb969d72a5"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (6.4ms)
  Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (3.4ms)
   (0.2ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 2' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 113.3], ["int_code", "CCC"], ["measure", "Длина"], ["name", "Единица 2"], ["num", "003"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cc63ae7f-16f1-4709-bf29-10da570a692e"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 3' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 460.85], ["int_code", "DDD"], ["measure", "Длина"], ["name", "Единица 3"], ["num", "004"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "76da8b00-538b-4bd4-8fc0-15fb3eb2a514"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 4' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 701.01], ["int_code", "EEE"], ["measure", "Длина"], ["name", "Единица 4"], ["num", "005"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1bad496d-26ee-4855-876a-6c2389a9ac65"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 5' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 235.15], ["int_code", "FFF"], ["measure", "Длина"], ["name", "Единица 5"], ["num", "006"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "498677b0-c89b-42b8-ab32-6ac6a2e72f76"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 159.3], ["int_code", "GGG"], ["measure", "Длина"], ["name", "Единица 6"], ["num", "007"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b079a386-12ab-4f08-a975-afec99ca10c6"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'тысяч км в сек'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 7' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 2"], ["factor", 389.51], ["int_code", "HHH"], ["measure", "Длина"], ["name", "Единица 7"], ["num", "008"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "f48b99d8-8563-4187-a825-b911ff7e6268"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'f48b99d8-8563-4187-a825-b911ff7e6268'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 8' LIMIT 1
  SQL (0.5ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 3"], ["factor", 152.81], ["int_code", "III"], ["measure", "Длина"], ["name", "Единица 8"], ["num", "009"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b2cd3064-2566-4749-ac25-499bc0adafb5"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'b2cd3064-2566-4749-ac25-499bc0adafb5'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 4' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 9' LIMIT 1
  SQL (0.6ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 4"], ["factor", 710.98], ["int_code", "JJJ"], ["measure", "Длина"], ["name", "Единица 9"], ["num", "010"]]
  Okei::Unit Load (0.2ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.3ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a9a84c8b-bf7a-4ef2-b593-fa5e979d608d"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.3ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 5"], ["factor", 630.91], ["int_code", "KKK"], ["measure", "Длина"], ["name", "Единица 10"], ["num", "011"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7b46361b-346e-4a6c-ab98-35de0d7acc3c"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong'  ORDER BY "okei_units"."id" ASC LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 6"], ["factor", 475.57], ["int_code", "LLL"], ["measure", "Длина"], ["name", "Единица 11"], ["num", "012"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.1ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.2ms)
Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 7' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 7"], ["factor", 409.91], ["int_code", "MMM"], ["measure", "Длина"], ["name", "Единица 12"], ["num", "013"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b126221f-6b88-4d23-b1f5-79609a980a29"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/b126221f-6b88-4d23-b1f5-79609a980a29" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"b126221f-6b88-4d23-b1f5-79609a980a29"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'b126221f-6b88-4d23-b1f5-79609a980a29'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 8' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
  SQL (0.5ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 8"], ["factor", 198.66], ["int_code", "NNN"], ["measure", "Длина"], ["name", "Единица 13"], ["num", "014"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "811acc8b-83b3-4f85-936a-9d950ad951de"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/811acc8b-83b3-4f85-936a-9d950ad951de" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"811acc8b-83b3-4f85-936a-9d950ad951de"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '811acc8b-83b3-4f85-936a-9d950ad951de'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 9' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 14' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 9"], ["factor", 579.86], ["int_code", "OOO"], ["measure", "Длина"], ["name", "Единица 14"], ["num", "015"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "15e6bb2d-dc3d-41c0-9065-8d07b4747452"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 10' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 10"], ["factor", 659.06], ["int_code", "PPP"], ["measure", "Длина"], ["name", "Единица 15"], ["num", "016"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "13afd229-0e29-4ccc-896e-ea9b338595a3"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#show as JSON
  Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT  DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 404 Not Found in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::ResponderController#index as JSON
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 11"], ["factor", 86.75], ["int_code", "QQQ"], ["measure", "ДЛИНА"], ["name", "Единица 16"], ["num", "017"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "69d390e5-cb9a-4e82-8bc7-913769152105"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 17' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 12"], ["factor", 203.89], ["int_code", "RRR"], ["measure", "ПРОЧИЕ"], ["name", "Единица 17"], ["num", "018"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "f899a4e5-8716-447c-b670-34c4facf64b2"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 18' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 13"], ["factor", 426.31], ["int_code", "SSS"], ["measure", "ДЛИНА"], ["name", "Единица 18"], ["num", "019"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "25785b12-c705-4bb0-86c5-054f7282aeea"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 14' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 14"], ["factor", 208.08], ["int_code", "TTT"], ["measure", "ПРОЧИЕ"], ["name", "Единица 19"], ["num", "020"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "45d4665e-32f7-475a-a707-5e3c0e1367a7"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 20' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 15"], ["factor", 98.3], ["int_code", "UUU"], ["measure", "ДЛИНА"], ["name", "Единица 20"], ["num", "021"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "af580bde-e9c9-49ec-9048-febe30326969"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 21' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 16"], ["factor", 449.68], ["int_code", "VVV"], ["measure", "ПРОЧИЕ"], ["name", "Единица 21"], ["num", "022"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "1fdc503d-d720-4e6d-b725-2c9483fa4f32"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 17' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 22' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 17"], ["factor", 754.0], ["int_code", "WWW"], ["measure", "ДЛИНА"], ["name", "Единица 22"], ["num", "023"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "07eb9892-d83f-4ecf-b6a5-1cca68d8a76f"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 18' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 23' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 18"], ["factor", 787.29], ["int_code", "XXA"], ["measure", "ПРОЧИЕ"], ["name", "Единица 23"], ["num", "024"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6515a2fd-c056-40fe-8bd7-0c9067dc5552"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#search as HTML
  Parameters: {"text"=>"text", "wrong"=>"wrong"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#show as HTML
  Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
Unpermitted parameters: wrong
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
Processing by Okei::Api::V1::UnitsController#index as HTML
  Parameters: {"measure"=>"measure", "code"=>"code"}
Unpermitted parameters: code
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 172.95], ["int_code", "YAB"], ["measure", "Длина"], ["name", "Единица 24"], ["num", "025"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b2f0878d-00af-4817-bb09-b962157272cf"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 25' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 867.79], ["int_code", "ABC"], ["measure", "Длина"], ["name", "Единица 25"], ["num", "026"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "92cf23b3-06f1-4b5e-9e4c-c485b2bf2a46"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.1ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 26' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 61.69], ["int_code", "BCD"], ["measure", "Длина"], ["name", "Единица 26"], ["num", "027"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "6edef11c-4365-48ce-b447-a2b537c313bd"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"километров в сек"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2'  ORDER BY "okei_units"."id" ASC LIMIT 1
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 27' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 454.66], ["int_code", "CDE"], ["measure", "Длина"], ["name", "Единица 27"], ["num", "028"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "e9aa39df-6df2-4291-a9d2-431268c45bbe"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 28' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 510.45], ["int_code", "DEF"], ["measure", "Длина"], ["name", "Единица 28"], ["num", "029"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "fbd46c3a-d3e1-474f-a137-87f26c01fa29"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#search as JSON
  Parameters: {"text"=>"wrong text"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."code" = 'wrong text'  ORDER BY "okei_units"."id" ASC LIMIT 1
Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 20' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 30' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 20"], ["factor", 882.36], ["int_code", "EFG"], ["measure", "Длина"], ["name", "Единица 30"], ["num", "031"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cf4883e3-a16c-4d6f-b22c-c8279c007a2d"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 23' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 33' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 23"], ["factor", 285.72], ["int_code", "HIJ"], ["measure", "Длина"], ["name", "Единица 33"], ["num", "033"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "70d64a95-2ef3-4765-bf1f-a06eee3fe1bf"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.2ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
   (0.1ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 38' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 31' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 31"], ["factor", 185.8], ["int_code", "PQR"], ["measure", "Длина"], ["name", "Единица 40"], ["num", "041"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cd3b46e3-9b52-4550-9ce6-90f0babde92e"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 42' LIMIT 1
  SQL (0.3ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "ЕИ 32"], ["factor", 542.8], ["int_code", "RST"], ["measure", "Длина"], ["name", "Единица 42"], ["num", "043"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7bb825c2-a6ee-49ce-b386-d1a835ff5e47"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 33' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 45' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 444.51], ["int_code", "UVW"], ["measure", "ДЛИНА"], ["name", "Единица 45"], ["num", "046"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a335e7d4-8262-43a7-990b-cb9f39cf29c8"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 46' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 876.93], ["int_code", "VWA"], ["measure", "ПРОЧИЕ"], ["name", "Единица 46"], ["num", "047"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "581022d6-4df5-4cb5-88da-856e51c9dafe"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.5ms)
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 47' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 174.26], ["int_code", "WXB"], ["measure", "ДЛИНА"], ["name", "Единица 47"], ["num", "048"]]
  Okei::Unit Load (0.1ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "904806ae-270d-4e93-a789-fb085fde3f78"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 48' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 779.25], ["int_code", "XAC"], ["measure", "ПРОЧИЕ"], ["name", "Единица 48"], ["num", "049"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "62f1e480-385c-4345-88c4-0873b79f440b"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 49' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 723.51], ["int_code", "YBD"], ["measure", "ДЛИНА"], ["name", "Единица 49"], ["num", "050"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1970d3da-cc32-4ea6-9679-70f52a3c1920"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 50' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 375.59], ["int_code", "ACE"], ["measure", "ПРОЧИЕ"], ["name", "Единица 50"], ["num", "051"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "9d51800f-8b71-4f3d-86f4-17ce90758c02"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"   ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 2], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 51' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 206.59], ["int_code", "BDF"], ["measure", "ДЛИНА"], ["name", "Единица 51"], ["num", "052"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "98f68a40-8d24-40ac-82bb-9a825fc2c5d5"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 52' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 805.13], ["int_code", "CEG"], ["measure", "ПРОЧИЕ"], ["name", "Единица 52"], ["num", "053"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "20a19458-98b6-4b84-9949-7773bb115bfd"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.1ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.0ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 53' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 978.7], ["int_code", "DFH"], ["measure", "ДЛИНА"], ["name", "Единица 53"], ["num", "054"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "78303b3f-b6e9-4d4e-855e-3208803b51e5"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 54' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 149.31], ["int_code", "EGI"], ["measure", "ПРОЧИЕ"], ["name", "Единица 54"], ["num", "055"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6c9d20c4-69f0-4f4b-89d4-5cdacadfaaa0"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.1ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
   (0.2ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  commit transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 55' LIMIT 1
  SQL (0.4ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МИЛЬ"], ["factor", 269.2], ["int_code", "FHJ"], ["measure", "ДЛИНА"], ["name", "Единица 55"], ["num", "056"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 1]]
  SQL (0.2ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "aeb83d62-28de-46fd-82e9-b6d81bb6ed44"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
  Okei::Unit Exists (0.1ms)  SELECT  1 AS one FROM "okei_units"  WHERE "okei_units"."name" = 'Единица 56' LIMIT 1
  SQL (0.1ms)  INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?)  [["base", "М"], ["code", "МОЛЬ"], ["factor", 665.04], ["int_code", "GIK"], ["measure", "ПРОЧИЕ"], ["name", "Единица 56"], ["num", "057"]]
  Okei::Unit Load (0.0ms)  SELECT  "okei_units".* FROM "okei_units"  WHERE "okei_units"."id" = ? LIMIT 1  [["id", 2]]
  SQL (0.1ms)  INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?)  [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "4a8582b1-b5d8-445d-ab8d-f506a23099aa"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:33 +0400
Processing by Okei::Api::V1::UnitsController#index as JSON
  Parameters: {"measure"=>"ДЛИНА"}
Unpermitted parameters: format
  Okei::Unit Load (0.2ms)  SELECT "okei_units".* FROM "okei_units"  WHERE "okei_units"."measure" = 'ДЛИНА'  ORDER BY "okei_units"."code" ASC
  Uuids::Uuid Load (0.1ms)  SELECT "uuids_uuids".* FROM "uuids_uuids"  WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ?  [["record_id", 1], ["record_type", "Okei::Unit"]]
  Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.7ms)
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.3ms)
   (0.4ms)  rollback transaction