enju_export 0.1.1.pre4 → 0.1.1.pre5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/export_files_controller.rb +1 -1
  3. data/app/models/export_file.rb +15 -0
  4. data/lib/enju_export/engine.rb +1 -1
  5. data/lib/enju_export/version.rb +1 -1
  6. data/spec/dummy/app/controllers/application_controller.rb +2 -19
  7. data/spec/dummy/config/application.rb +1 -0
  8. data/spec/dummy/config/initializers/devise.rb +2 -0
  9. data/spec/dummy/db/migrate/080_create_library_groups.rb +25 -0
  10. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  11. data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +9 -0
  12. data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +9 -0
  13. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  14. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +11 -0
  15. data/spec/dummy/db/schema.rb +21 -0
  16. data/spec/dummy/db/test.sqlite3 +0 -0
  17. data/spec/dummy/log/test.log +440 -230
  18. data/spec/dummy/tmp/cache/assets/test/sprockets/4d9b06948a2ac8edcb3296d391db46b5 +0 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/8ce8cce74a1c4d65497a8177d7bf5b71 +0 -0
  20. data/spec/fixtures/library_groups.yml +33 -0
  21. data/spec/models/export_file_spec.rb +15 -0
  22. metadata +55 -30
  23. data/app/workers/patron_export_queue.rb +0 -7
  24. data/lib/generators/enju_export/setup/USAGE +0 -8
  25. data/lib/generators/enju_export/setup/setup_generator.rb +0 -12
  26. data/spec/dummy/app/models/role.rb +0 -47
  27. data/spec/dummy/app/models/user_has_role.rb +0 -4
@@ -1,18 +1,147 @@
1
- Connecting to database specified by database.yml
2
1
   (0.1ms) begin transaction
3
- Fixture Delete (0.3ms) DELETE FROM "roles"
4
- Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
5
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
6
- Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
7
- Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-03-13 03:00:12', '2013-03-13 03:00:12')
2
+  (0.0ms) rollback transaction
3
+  (0.1ms) begin transaction
4
+  (0.0ms) rollback transaction
5
+  (0.1ms) begin transaction
6
+  (0.0ms) rollback transaction
7
+  (0.1ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.1ms) begin transaction
10
+ Started GET "/export_files" for 127.0.0.1 at 2013-11-03 04:19:00 +0900
11
+ Processing by ExportFilesController#index as HTML
12
+ Completed 500 Internal Server Error in 1ms
13
+  (0.1ms) rollback transaction
14
+  (0.1ms) begin transaction
15
+  (0.0ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+  (0.0ms) rollback transaction
18
+  (0.1ms) begin transaction
19
+  (0.0ms) rollback transaction
20
+  (0.0ms) begin transaction
21
+  (0.0ms) rollback transaction
22
+  (0.0ms) begin transaction
23
+  (0.0ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+  (0.0ms) rollback transaction
28
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
29
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ Migrating to CreateLibraryGroups (80)
32
+  (0.1ms) begin transaction
33
+  (0.5ms) CREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "use_dsbl" boolean DEFAULT 'f' NOT NULL, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime, "updated_at" datetime) 
34
+  (0.1ms) CREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")
35
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "80"]]
36
+  (0.7ms) commit transaction
37
+ Migrating to AddAdminNetworksToLibraryGroup (20100211105551)
38
+  (0.1ms) begin transaction
39
+  (0.3ms) ALTER TABLE "library_groups" ADD "admin_networks" text
40
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20100211105551"]]
41
+  (0.8ms) commit transaction
42
+ Migrating to AddAllowBookmarkExternalUrlToLibraryGroup (20100222124420)
43
+  (0.1ms) begin transaction
44
+  (0.2ms) ALTER TABLE "library_groups" ADD "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL
45
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20100222124420"]]
46
+  (0.7ms) commit transaction
47
+ Migrating to AddPositionToLibraryGroup (20110115022329)
48
+  (0.0ms) begin transaction
49
+  (0.2ms) ALTER TABLE "library_groups" ADD "position" integer
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20110115022329"]]
51
+  (0.7ms) commit transaction
52
+ Migrating to AddUrlToLibraryGroup (20110222073537)
53
+  (0.0ms) begin transaction
54
+  (0.2ms) ALTER TABLE "library_groups" ADD "url" varchar(255) DEFAULT 'http://localhost:3000/'
55
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20110222073537"]]
56
+  (0.6ms) commit transaction
57
+ Migrating to RemoveDsblFromLibraryGroup (20111020063828)
58
+  (0.1ms) begin transaction
59
+  (0.7ms) CREATE TEMPORARY TABLE "alibrary_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "use_dsbl" boolean DEFAULT 'f' NOT NULL, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime, "updated_at" datetime, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
60
+  (0.1ms) CREATE INDEX "tindex_alibrary_groups_on_short_name" ON "alibrary_groups" ("short_name")
61
+  (0.1ms) SELECT * FROM "library_groups"
62
+  (0.2ms) DROP TABLE "library_groups"
63
+  (0.1ms) CREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime, "updated_at" datetime, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
64
+  (0.1ms) CREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")
65
+  (0.1ms) SELECT * FROM "alibrary_groups"
66
+  (0.3ms) DROP TABLE "alibrary_groups"
67
+  (0.1ms) CREATE TEMPORARY TABLE "alibrary_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "dsbl_list" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime, "updated_at" datetime, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
68
+  (0.1ms) CREATE INDEX "tindex_alibrary_groups_on_short_name" ON "alibrary_groups" ("short_name")
69
+  (0.1ms) SELECT * FROM "library_groups"
70
+  (0.3ms) DROP TABLE "library_groups"
71
+  (0.3ms) CREATE TABLE "library_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "display_name" text, "short_name" varchar(255) NOT NULL, "email" varchar(255), "my_networks" text, "login_banner" text, "note" text, "valid_period_for_new_user" integer DEFAULT 365 NOT NULL, "post_to_union_catalog" boolean DEFAULT 'f' NOT NULL, "country_id" integer, "created_at" datetime, "updated_at" datetime, "admin_networks" text, "allow_bookmark_external_url" boolean DEFAULT 'f' NOT NULL, "position" integer, "url" varchar(255) DEFAULT 'http://localhost:3000/')
72
+  (0.1ms) CREATE INDEX "index_library_groups_on_short_name" ON "library_groups" ("short_name")
73
+  (0.1ms) SELECT * FROM "alibrary_groups"
74
+  (0.1ms) DROP TABLE "alibrary_groups"
75
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20111020063828"]]
76
+  (1.1ms) commit transaction
77
+ Migrating to CreateRoles (20111201121844)
78
+  (0.1ms) begin transaction
79
+  (0.4ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "display_name" text, "note" text, "position" integer, "created_at" datetime, "updated_at" datetime) 
80
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20111201121844"]]
81
+  (0.7ms) commit transaction
82
+ Migrating to CreateUsers (20111201155456)
83
+  (0.1ms) begin transaction
84
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "required_role_id" integer, "username" varchar(255), "note" text, "locale" varchar(255), "created_at" datetime, "updated_at" datetime) 
85
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20111201155456"]]
86
+  (0.6ms) commit transaction
87
+ Migrating to AddDeviseToUsers (20111201155513)
88
+  (0.1ms) begin transaction
89
+  (0.3ms) ALTER TABLE "users" ADD "email" varchar(255) DEFAULT '' NOT NULL
90
+  (0.1ms) ALTER TABLE "users" ADD "encrypted_password" varchar(255) DEFAULT '' NOT NULL
91
+  (0.1ms) ALTER TABLE "users" ADD "reset_password_token" varchar(255)
92
+  (0.1ms) ALTER TABLE "users" ADD "reset_password_sent_at" datetime
93
+  (0.1ms) ALTER TABLE "users" ADD "remember_created_at" datetime
94
+  (0.1ms) ALTER TABLE "users" ADD "sign_in_count" integer DEFAULT 0
95
+  (0.1ms) ALTER TABLE "users" ADD "current_sign_in_at" datetime
96
+  (0.1ms) ALTER TABLE "users" ADD "last_sign_in_at" datetime
97
+  (0.1ms) ALTER TABLE "users" ADD "current_sign_in_ip" varchar(255)
98
+  (0.1ms) ALTER TABLE "users" ADD "last_sign_in_ip" varchar(255)
99
+  (0.1ms) ALTER TABLE "users" ADD "password_salt" varchar(255)
100
+  (0.1ms) ALTER TABLE "users" ADD "confirmation_token" varchar(255)
101
+  (0.1ms) ALTER TABLE "users" ADD "confirmed_at" datetime
102
+  (0.1ms) ALTER TABLE "users" ADD "confirmation_sent_at" datetime
103
+  (0.1ms) ALTER TABLE "users" ADD "unconfirmed_email" varchar(255)
104
+  (0.1ms) ALTER TABLE "users" ADD "failed_attempts" integer DEFAULT 0
105
+  (0.1ms) ALTER TABLE "users" ADD "unlock_token" varchar(255)
106
+  (0.1ms) ALTER TABLE "users" ADD "locked_at" datetime
107
+  (0.1ms) ALTER TABLE "users" ADD "authentication_token" varchar(255)
108
+  (0.1ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
109
+  (0.3ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
110
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20111201155513"]]
111
+  (0.7ms) commit transaction
112
+ Migrating to CreateUserHasRoles (20111201163718)
113
+  (0.1ms) begin transaction
114
+  (0.2ms) CREATE TABLE "user_has_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role_id" integer, "created_at" datetime, "updated_at" datetime) 
115
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20111201163718"]]
116
+  (0.7ms) commit transaction
117
+ Migrating to CreateExportFiles (20120610075759)
118
+  (0.0ms) begin transaction
119
+  (0.2ms) CREATE TABLE "export_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "export_file_name" varchar(255), "export_content_type" varchar(255), "export_file_size" varchar(255), "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
120
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120610075759"]]
121
+  (0.8ms) commit transaction
122
+ Migrating to AddUserIdToExportFile (20120621224846)
123
+  (0.1ms) begin transaction
124
+  (0.2ms) ALTER TABLE "export_files" ADD "user_id" integer
125
+  (0.1ms) CREATE INDEX "index_export_files_on_user_id" ON "export_files" ("user_id")
126
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120621224846"]]
127
+  (0.6ms) commit transaction
128
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
+  (0.1ms) begin transaction
130
+ Fixture Delete (0.3ms) DELETE FROM "library_groups"
131
+ Fixture Insert (0.3ms) INSERT INTO "library_groups" ("id", "name", "display_name", "short_name", "email", "note", "my_networks", "url", "created_at", "updated_at") VALUES (1, 'enju_library', 'en: Enju Library', 'enju', 'next-l@library.example.jp', NULL, '0.0.0.0/0', 'http://localhost:3000/', '2013-11-02 19:19:22', '2013-11-02 19:19:22')
132
+ Fixture Delete (0.1ms) DELETE FROM "roles"
133
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-11-02 19:19:22', '2013-11-02 19:19:22')
134
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-11-02 19:19:22', '2013-11-02 19:19:22')
135
+ Fixture Insert (48.8ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-11-02 19:19:22', '2013-11-02 19:19:22')
136
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-11-02 19:19:22', '2013-11-02 19:19:22')
8
137
  Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
9
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 135138680)
10
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 344583537)
11
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 206669143)
12
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 226540757)
13
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 358143215)
14
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 576709754)
15
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-03-13 03:00:12', '2013-03-13 03:00:12', 1010528733)
138
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 135138680)
139
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 344583537)
140
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 206669143)
141
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 226540757)
142
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 358143215)
143
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 576709754)
144
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-11-02 19:19:22', '2013-11-02 19:19:22', 1010528733)
16
145
  Fixture Delete (0.1ms) DELETE FROM "users"
17
146
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:16:30.163731', '$2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi', 2, 1, NULL, 'admin', 'tanabe@kamata.lib.teu.ac.jp', '2007-11-19 07:58:32.111941', 4)
18
147
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
@@ -21,325 +150,406 @@ Connecting to database specified by database.yml
21
150
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
22
151
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
23
152
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 7, NULL, 'user4', 'user4@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
24
-  (6.5ms) commit transaction
153
+  (2.5ms) commit transaction
25
154
   (0.1ms) begin transaction
26
155
  User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
27
156
   (0.1ms) SAVEPOINT active_record_1
28
- SQL (2.2ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["user_id", nil]]
29
- [paperclip] Saving attachments.
157
+ SQL (1.8ms) INSERT INTO "export_files" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 02 Nov 2013 19:19:22 UTC +00:00], ["state", "pending"], ["updated_at", Sat, 02 Nov 2013 19:19:22 UTC +00:00]]
30
158
   (0.0ms) RELEASE SAVEPOINT active_record_1
31
159
  Processing by ExportFilesController#index as HTML
32
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
33
- Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
160
+ LibraryGroup Load (0.2ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
161
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
162
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = ? ORDER BY roles.position LIMIT 1 [["user_id", 1]]
163
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
164
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
165
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
166
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
167
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
168
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
169
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
170
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
171
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
172
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
173
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
174
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
175
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
34
176
  Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.2ms)
35
- Completed 200 OK in 98ms (Views: 18.0ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
36
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
37
-  (0.4ms) rollback transaction
177
+ Completed 200 OK in 641ms (Views: 11.4ms | ActiveRecord: 6.9ms | Solr: 0.0ms)
178
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" ORDER BY id DESC LIMIT 25 OFFSET 0
179
+  (1.8ms) rollback transaction
38
180
   (0.1ms) begin transaction
39
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
181
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
40
182
   (0.1ms) SAVEPOINT active_record_1
41
- SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:12 UTC +00:00], ["user_id", nil]]
42
- [paperclip] Saving attachments.
43
-  (0.0ms) RELEASE SAVEPOINT active_record_1
183
+ SQL (0.4ms) INSERT INTO "export_files" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00], ["state", "pending"], ["updated_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00]]
184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
44
185
  Processing by ExportFilesController#show as HTML
45
186
  Parameters: {"id"=>"1"}
46
- ExportFile Load (0.2ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
47
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
48
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
187
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
188
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
189
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
190
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = ? ORDER BY roles.position LIMIT 1 [["user_id", 1]]
191
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
192
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
193
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
194
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
195
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
49
196
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
50
- Completed 200 OK in 11ms (Views: 1.4ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
197
+ Completed 200 OK in 14ms (Views: 2.3ms | ActiveRecord: 0.7ms | Solr: 0.0ms)
51
198
   (0.5ms) rollback transaction
52
199
   (0.0ms) begin transaction
53
200
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
54
201
   (0.0ms) SAVEPOINT active_record_1
55
- SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["user_id", nil]]
56
- [paperclip] Saving attachments.
202
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00], ["state", "pending"], ["updated_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00]]
57
203
   (0.0ms) RELEASE SAVEPOINT active_record_1
58
-  (0.1ms) SELECT COUNT(*) FROM "export_files"
204
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
59
205
  Processing by ExportFilesController#destroy as HTML
60
206
  Parameters: {"id"=>"1"}
207
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
208
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
61
209
  ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
62
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
63
- Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
210
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = ? ORDER BY roles.position LIMIT 1 [["user_id", 1]]
211
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
212
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
213
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
214
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
215
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
64
216
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
65
217
   (0.0ms) SAVEPOINT active_record_1
66
- [paperclip] Scheduling attachments for deletion.
67
- SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
68
- [paperclip] Deleting attachments.
69
-  (0.0ms) RELEASE SAVEPOINT active_record_1
218
+ SQL (0.9ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
70
220
  Redirected to http://test.host/export_files
71
- Completed 302 Found in 12ms (ActiveRecord: 0.9ms)
72
-  (0.1ms) SELECT COUNT(*) FROM "export_files"
73
-  (0.6ms) rollback transaction
221
+ Completed 302 Found in 15ms (ActiveRecord: 1.7ms)
222
+  (0.1ms) SELECT COUNT(*) FROM "export_files"
223
+  (0.4ms) rollback transaction
74
224
   (0.0ms) begin transaction
75
225
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
76
226
   (0.0ms) SAVEPOINT active_record_1
77
- SQL (0.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 13 Mar 2013 03:00:13 UTC +00:00], ["user_id", nil]]
78
- [paperclip] Saving attachments.
79
-  (0.1ms) RELEASE SAVEPOINT active_record_1
227
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00], ["state", "pending"], ["updated_at", Sat, 02 Nov 2013 19:19:23 UTC +00:00]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
80
229
  Processing by ExportFilesController#destroy as HTML
81
230
  Parameters: {"id"=>"1"}
231
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
232
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
82
233
  ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
83
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
84
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
234
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = ? ORDER BY roles.position LIMIT 1 [["user_id", 1]]
235
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
236
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
237
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
238
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
239
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
85
240
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
86
-  (0.0ms) SAVEPOINT active_record_1
87
- [paperclip] Scheduling attachments for deletion.
88
- SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
89
- [paperclip] Deleting attachments.
90
-  (0.0ms) RELEASE SAVEPOINT active_record_1
241
+  (0.1ms) SAVEPOINT active_record_1
242
+ SQL (0.4ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91
244
  Redirected to http://test.host/export_files
92
- Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
93
-  (0.6ms) rollback transaction
94
-  (0.0ms) begin transaction
95
- Started GET "/export_files" for 127.0.0.1 at 2013-03-13 12:00:13 +0900
245
+ Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
246
+  (0.5ms) rollback transaction
247
+  (0.1ms) begin transaction
248
+ Started GET "/export_files" for 127.0.0.1 at 2013-11-03 04:19:23 +0900
96
249
  Processing by ExportFilesController#index as HTML
250
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
97
251
  Redirected to http://www.example.com/users/sign_in
98
- Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
99
-  (0.1ms) rollback transaction
100
-  (0.0ms) begin transaction
101
-  (0.0ms) rollback transaction
102
-  (0.0ms) begin transaction
103
-  (0.0ms) rollback transaction
104
-  (0.0ms) begin transaction
105
-  (0.0ms) rollback transaction
106
-  (0.0ms) begin transaction
107
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (127.3ms)
108
-  (0.1ms) rollback transaction
109
-  (0.0ms) begin transaction
110
-  (0.1ms) rollback transaction
111
-  (0.0ms) begin transaction
112
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.8ms)
113
-  (0.1ms) rollback transaction
114
-  (0.1ms) begin transaction
115
-  (0.1ms) rollback transaction
252
+ Completed 302 Found in 34ms (ActiveRecord: 0.1ms)
253
+  (0.1ms) rollback transaction
254
+  (0.0ms) begin transaction
255
+  (0.0ms) rollback transaction
256
+  (0.0ms) begin transaction
257
+  (0.0ms) rollback transaction
258
+  (0.0ms) begin transaction
259
+  (0.0ms) rollback transaction
260
+  (0.0ms) begin transaction
261
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (11.6ms)
262
+  (0.1ms) rollback transaction
263
+  (0.1ms) begin transaction
264
+  (0.1ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.1ms)
267
+  (0.1ms) rollback transaction
268
+  (0.0ms) begin transaction
269
+  (0.1ms) rollback transaction
116
270
  Connecting to database specified by database.yml
271
+ Creating scope :in_list. Overwriting existing method Shelf.in_list.
117
272
   (0.1ms) begin transaction
118
- Fixture Delete (0.3ms) DELETE FROM "roles"
119
- Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
120
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
121
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
122
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-03-16 05:44:39', '2013-03-16 05:44:39')
273
+ Fixture Delete (0.3ms) DELETE FROM "library_groups"
274
+ Fixture Insert (0.1ms) INSERT INTO "library_groups" ("id", "name", "display_name", "short_name", "email", "note", "my_networks", "url", "created_at", "updated_at") VALUES (1, 'enju_library', 'en: Enju Library', 'enju', 'next-l@library.example.jp', NULL, '0.0.0.0/0', 'http://localhost:3000/', '2014-02-09 03:09:45', '2014-02-09 03:09:45')
275
+ Fixture Delete (0.0ms) DELETE FROM "roles"
276
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2014-02-09 03:09:45', '2014-02-09 03:09:45')
277
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2014-02-09 03:09:45', '2014-02-09 03:09:45')
278
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2014-02-09 03:09:45', '2014-02-09 03:09:45')
279
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2014-02-09 03:09:45', '2014-02-09 03:09:45')
123
280
  Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
124
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 135138680)
125
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 344583537)
126
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 206669143)
127
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 226540757)
128
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 358143215)
129
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 576709754)
130
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-03-16 05:44:40', '2013-03-16 05:44:40', 1010528733)
131
- Fixture Delete (0.2ms) DELETE FROM "users"
281
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 135138680)
282
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 344583537)
283
+ Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 206669143)
284
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 226540757)
285
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 358143215)
286
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 576709754)
287
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2014-02-09 03:09:45', '2014-02-09 03:09:45', 1010528733)
288
+ Fixture Delete (0.1ms) DELETE FROM "users"
132
289
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:16:30.163731', '$2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi', 2, 1, NULL, 'admin', 'tanabe@kamata.lib.teu.ac.jp', '2007-11-19 07:58:32.111941', 4)
133
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
134
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', '$2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW', 1, 3, NULL, 'user1', 'user1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
135
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:23.340575', '$2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS', 1, 4, NULL, 'librarian2', '2008-01-18 03:24:04.222344', 1)
136
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
137
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
290
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
291
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', '$2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW', 1, 3, NULL, 'user1', 'user1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
292
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:23.340575', '$2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS', 1, 4, NULL, 'librarian2', '2008-01-18 03:24:04.222344', 1)
293
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
294
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
138
295
  Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 7, NULL, 'user4', 'user4@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
139
-  (8.2ms) commit transaction
140
-  (0.1ms) begin transaction
141
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
142
-  (0.1ms) SAVEPOINT active_record_1
143
- SQL (2.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
144
- [paperclip] Saving attachments.
145
-  (0.0ms) RELEASE SAVEPOINT active_record_1
296
+  (5.3ms) commit transaction
297
+  (0.0ms) begin transaction
298
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
299
+  (0.0ms) SAVEPOINT active_record_1
300
+ SQL (0.8ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["user_id", nil]]
301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
146
302
  Processing by ExportFilesController#index as HTML
147
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
148
- Role Load (0.3ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
149
- Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.4ms)
150
- Completed 200 OK in 69ms (Views: 12.4ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
151
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
152
-  (0.4ms) rollback transaction
153
-  (0.1ms) begin transaction
303
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
304
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
305
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
306
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
307
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
308
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
309
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
310
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
311
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
312
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
313
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
314
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
315
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
316
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
317
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
318
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
319
+ Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.3ms)
320
+ Completed 200 OK in 72.3ms (Views: 10.4ms | ActiveRecord: 0.8ms | Solr: 0.0ms)
321
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" ORDER BY id DESC LIMIT 25 OFFSET 0
322
+  (0.3ms) rollback transaction
323
+  (0.0ms) begin transaction
154
324
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
155
325
   (0.0ms) SAVEPOINT active_record_1
156
- SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
157
- [paperclip] Saving attachments.
326
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["user_id", nil]]
158
327
   (0.0ms) RELEASE SAVEPOINT active_record_1
159
328
  Processing by ExportFilesController#show as HTML
160
329
  Parameters: {"id"=>"1"}
161
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
330
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
162
331
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
163
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
332
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
333
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
334
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
335
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
336
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
337
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
338
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
164
339
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
165
- Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
166
-  (0.4ms) rollback transaction
167
-  (0.1ms) begin transaction
168
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
340
+ Completed 200 OK in 17.3ms (Views: 1.9ms | ActiveRecord: 0.7ms | Solr: 0.0ms)
341
+  (0.3ms) rollback transaction
342
+  (0.0ms) begin transaction
343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
169
344
   (0.0ms) SAVEPOINT active_record_1
170
- SQL (0.5ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
171
- [paperclip] Saving attachments.
172
-  (0.1ms) RELEASE SAVEPOINT active_record_1
345
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["user_id", nil]]
346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
173
347
   (0.1ms) SELECT COUNT(*) FROM "export_files"
174
348
  Processing by ExportFilesController#destroy as HTML
175
349
  Parameters: {"id"=>"1"}
350
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
351
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
176
352
  ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
177
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
178
- Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
353
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
354
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
355
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
356
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
357
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
358
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
179
359
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
180
-  (0.1ms) SAVEPOINT active_record_1
181
- [paperclip] Scheduling attachments for deletion.
182
- SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
183
- [paperclip] Deleting attachments.
184
-  (0.1ms) RELEASE SAVEPOINT active_record_1
360
+  (0.0ms) SAVEPOINT active_record_1
361
+ SQL (0.7ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
185
363
  Redirected to http://test.host/export_files
186
- Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
187
-  (0.1ms) SELECT COUNT(*) FROM "export_files"
364
+ Completed 302 Found in 15.1ms (ActiveRecord: 1.3ms)
365
+  (0.0ms) SELECT COUNT(*) FROM "export_files"
188
366
   (0.4ms) rollback transaction
189
367
   (0.0ms) begin transaction
190
368
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
191
369
   (0.0ms) SAVEPOINT active_record_1
192
- SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sat, 16 Mar 2013 05:44:40 UTC +00:00], ["user_id", nil]]
193
- [paperclip] Saving attachments.
370
+ SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 03:09:45 UTC +00:00], ["user_id", nil]]
194
371
   (0.0ms) RELEASE SAVEPOINT active_record_1
195
372
  Processing by ExportFilesController#destroy as HTML
196
373
  Parameters: {"id"=>"1"}
197
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
198
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
199
- Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
374
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
376
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
377
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
378
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
379
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
380
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
381
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
382
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
200
383
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
201
384
   (0.0ms) SAVEPOINT active_record_1
202
- [paperclip] Scheduling attachments for deletion.
203
- SQL (0.2ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
204
- [paperclip] Deleting attachments.
385
+ SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
205
386
   (0.0ms) RELEASE SAVEPOINT active_record_1
206
387
  Redirected to http://test.host/export_files
207
- Completed 302 Found in 11ms (ActiveRecord: 0.8ms)
208
-  (0.5ms) rollback transaction
388
+ Completed 302 Found in 13.3ms (ActiveRecord: 0.9ms)
389
+  (0.4ms) rollback transaction
209
390
   (0.0ms) begin transaction
210
- Started GET "/export_files" for 127.0.0.1 at 2013-03-16 14:44:40 +0900
391
+ Started GET "/export_files" for 127.0.0.1 at 2014-02-09 12:09:45 +0900
211
392
  Processing by ExportFilesController#index as HTML
393
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
212
394
  Redirected to http://www.example.com/users/sign_in
213
- Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
214
-  (0.1ms) rollback transaction
215
-  (0.0ms) begin transaction
216
-  (0.0ms) rollback transaction
217
-  (0.1ms) begin transaction
218
-  (0.0ms) rollback transaction
219
-  (0.0ms) begin transaction
220
-  (0.0ms) rollback transaction
221
-  (0.1ms) begin transaction
222
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (136.8ms)
223
-  (0.1ms) rollback transaction
224
-  (0.1ms) begin transaction
225
-  (0.1ms) rollback transaction
226
-  (0.1ms) begin transaction
227
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (54.0ms)
228
-  (0.1ms) rollback transaction
229
-  (0.1ms) begin transaction
230
-  (0.1ms) rollback transaction
395
+ Completed 302 Found in 14.3ms (ActiveRecord: 0.1ms)
396
+  (0.1ms) rollback transaction
397
+  (0.0ms) begin transaction
398
+  (0.0ms) rollback transaction
399
+  (0.0ms) begin transaction
400
+  (12.3ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+  (0.0ms) rollback transaction
403
+  (0.0ms) begin transaction
404
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (9.4ms)
405
+  (0.0ms) rollback transaction
406
+  (0.0ms) begin transaction
407
+  (0.0ms) rollback transaction
408
+  (0.0ms) begin transaction
409
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.2ms)
410
+  (0.0ms) rollback transaction
411
+  (0.0ms) begin transaction
412
+  (0.0ms) rollback transaction
231
413
  Connecting to database specified by database.yml
414
+ Creating scope :in_list. Overwriting existing method Shelf.in_list.
232
415
   (0.1ms) begin transaction
233
- Fixture Delete (0.3ms) DELETE FROM "roles"
234
- Fixture Insert (0.2ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
235
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
236
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
237
- Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2013-04-17 01:45:49', '2013-04-17 01:45:49')
238
- Fixture Delete (0.1ms) DELETE FROM "user_has_roles"
239
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 135138680)
240
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 344583537)
241
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 206669143)
242
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 226540757)
243
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 358143215)
244
- Fixture Insert (0.1ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 576709754)
245
- Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2013-04-17 01:45:49', '2013-04-17 01:45:49', 1010528733)
416
+ Fixture Delete (0.3ms) DELETE FROM "library_groups"
417
+ Fixture Insert (0.1ms) INSERT INTO "library_groups" ("id", "name", "display_name", "short_name", "email", "note", "my_networks", "url", "created_at", "updated_at") VALUES (1, 'enju_library', 'en: Enju Library', 'enju', 'next-l@library.example.jp', NULL, '0.0.0.0/0', 'http://localhost:3000/', '2014-02-09 06:32:41', '2014-02-09 06:32:41')
418
+ Fixture Delete (0.0ms) DELETE FROM "roles"
419
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Guest', 'Guest', 1, NULL, '2014-02-09 06:32:41', '2014-02-09 06:32:41')
420
+ Fixture Insert (0.1ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('User', 'User', 2, NULL, '2014-02-09 06:32:41', '2014-02-09 06:32:41')
421
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Librarian', 'Librarian', 3, NULL, '2014-02-09 06:32:41', '2014-02-09 06:32:41')
422
+ Fixture Insert (0.0ms) INSERT INTO "roles" ("name", "display_name", "id", "note", "created_at", "updated_at") VALUES ('Administrator', 'Administrator', 4, NULL, '2014-02-09 06:32:41', '2014-02-09 06:32:41')
423
+ Fixture Delete (0.0ms) DELETE FROM "user_has_roles"
424
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (1, 4, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 135138680)
425
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (2, 3, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 344583537)
426
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (3, 2, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 206669143)
427
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (4, 3, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 226540757)
428
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (5, 2, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 358143215)
429
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (6, 2, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 576709754)
430
+ Fixture Insert (0.0ms) INSERT INTO "user_has_roles" ("user_id", "role_id", "created_at", "updated_at", "id") VALUES (7, 2, '2014-02-09 06:32:41', '2014-02-09 06:32:41', 1010528733)
246
431
  Fixture Delete (0.1ms) DELETE FROM "users"
247
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:16:30.163731', '$2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi', 2, 1, NULL, 'admin', 'tanabe@kamata.lib.teu.ac.jp', '2007-11-19 07:58:32.111941', 4)
248
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
249
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', '$2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW', 1, 3, NULL, 'user1', 'user1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
250
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:23.340575', '$2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS', 1, 4, NULL, 'librarian2', '2008-01-18 03:24:04.222344', 1)
251
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
252
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
253
- Fixture Insert (0.1ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 7, NULL, 'user4', 'user4@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
254
-  (5.1ms) commit transaction
255
-  (0.1ms) begin transaction
256
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
257
-  (0.1ms) SAVEPOINT active_record_1
258
- SQL (1.7ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
259
- [paperclip] Saving attachments.
260
-  (0.1ms) RELEASE SAVEPOINT active_record_1
432
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:16:30.163731', '$2a$10$vHohD1WflnTIqAa8zMkF9evwAgIZRw3XuR4d3bi29M.jph/MB/AJi', 2, 1, NULL, 'admin', 'tanabe@kamata.lib.teu.ac.jp', '2007-11-19 07:58:32.111941', 4)
433
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 03:41:16.337474', '$2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS', 1, 2, NULL, 'librarian1', 'librarian1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:33.172441', 1)
434
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', '$2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW', 1, 3, NULL, 'user1', 'user1@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
435
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:23.340575', '$2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS', 1, 4, NULL, 'librarian2', '2008-01-18 03:24:04.222344', 1)
436
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "created_at", "required_role_id") VALUES ('2008-05-31 03:42:44.711117', '$2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca', 1, 5, NULL, 'user2', '2008-01-18 04:29:06.922728', 2)
437
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 6, NULL, 'user3', 'user3@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
438
+ Fixture Insert (0.0ms) INSERT INTO "users" ("updated_at", "encrypted_password", "user_group_id", "id", "note", "username", "email", "created_at", "required_role_id") VALUES ('2008-05-31 04:02:25.101261', 'cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417', 1, 7, NULL, 'user4', 'user4@kamata.lib.teu.ac.jp', '2007-11-19 07:58:34.637413', 3)
439
+  (4.6ms) commit transaction
440
+  (0.0ms) begin transaction
441
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
442
+  (0.0ms) SAVEPOINT active_record_1
443
+ SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["user_id", nil]]
444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
261
445
  Processing by ExportFilesController#index as HTML
262
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
263
- Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
446
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
448
+ Role Load (0.2ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
449
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
450
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
451
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
452
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
453
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
454
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
455
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
456
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
457
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
458
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
459
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
460
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
461
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
264
462
  Rendered /Users/kosuke/enju_export/app/views/export_files/index.html.erb within layouts/application (0.3ms)
265
- Completed 200 OK in 91ms (Views: 12.8ms | ActiveRecord: 0.3ms | Solr: 0.0ms)
266
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" LIMIT 25 OFFSET 0
267
-  (0.5ms) rollback transaction
463
+ Completed 200 OK in 73.5ms (Views: 14.2ms | ActiveRecord: 0.7ms | Solr: 0.0ms)
464
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" ORDER BY id DESC LIMIT 25 OFFSET 0
465
+  (0.4ms) rollback transaction
268
466
   (0.0ms) begin transaction
269
467
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
270
468
   (0.0ms) SAVEPOINT active_record_1
271
- SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
272
- [paperclip] Saving attachments.
469
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["user_id", nil]]
273
470
   (0.0ms) RELEASE SAVEPOINT active_record_1
274
471
  Processing by ExportFilesController#show as HTML
275
472
  Parameters: {"id"=>"1"}
276
- ExportFile Load (0.2ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
473
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
277
474
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
278
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
475
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
476
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
477
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
478
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
479
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
480
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
481
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
279
482
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
280
- Completed 200 OK in 16ms (Views: 7.5ms | ActiveRecord: 0.4ms | Solr: 0.0ms)
281
-  (0.5ms) rollback transaction
282
-  (0.1ms) begin transaction
483
+ Completed 200 OK in 17.5ms (Views: 4.7ms | ActiveRecord: 0.5ms | Solr: 0.0ms)
484
+  (0.4ms) rollback transaction
485
+  (0.0ms) begin transaction
283
486
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
284
487
   (0.0ms) SAVEPOINT active_record_1
285
- SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
286
- [paperclip] Saving attachments.
488
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["user_id", nil]]
287
489
   (0.0ms) RELEASE SAVEPOINT active_record_1
288
490
   (0.1ms) SELECT COUNT(*) FROM "export_files"
289
491
  Processing by ExportFilesController#destroy as HTML
290
492
  Parameters: {"id"=>"1"}
291
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
493
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
292
494
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
293
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
495
+ ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
496
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
497
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
498
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
499
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
500
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
501
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
294
502
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
295
503
   (0.0ms) SAVEPOINT active_record_1
296
- [paperclip] Scheduling attachments for deletion.
297
- SQL (0.4ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
298
- [paperclip] Deleting attachments.
504
+ SQL (1.0ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
299
505
   (0.0ms) RELEASE SAVEPOINT active_record_1
300
506
  Redirected to http://test.host/export_files
301
- Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
507
+ Completed 302 Found in 13.5ms (ActiveRecord: 1.6ms)
302
508
   (0.0ms) SELECT COUNT(*) FROM "export_files"
303
-  (0.5ms) rollback transaction
509
+  (0.4ms) rollback transaction
304
510
   (0.0ms) begin transaction
305
511
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
306
512
   (0.0ms) SAVEPOINT active_record_1
307
- SQL (0.4ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Wed, 17 Apr 2013 01:45:49 UTC +00:00], ["user_id", nil]]
308
- [paperclip] Saving attachments.
513
+ SQL (0.3ms) INSERT INTO "export_files" ("created_at", "export_content_type", "export_file_name", "export_file_size", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["export_content_type", nil], ["export_file_name", nil], ["export_file_size", nil], ["state", "pending"], ["updated_at", Sun, 09 Feb 2014 06:32:41 UTC +00:00], ["user_id", nil]]
309
514
   (0.0ms) RELEASE SAVEPOINT active_record_1
310
515
  Processing by ExportFilesController#destroy as HTML
311
516
  Parameters: {"id"=>"1"}
312
- ExportFile Load (0.1ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
517
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
313
518
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
314
- Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
519
+ ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
520
+ Role Load (0.1ms) SELECT "roles".* FROM "roles" INNER JOIN "user_has_roles" ON "roles"."id" = "user_has_roles"."role_id" WHERE "user_has_roles"."user_id" = 1 ORDER BY roles.position LIMIT 1
521
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
522
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
523
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
524
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
525
+ LibraryGroup Load (0.0ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
315
526
  ExportFile Load (0.0ms) SELECT "export_files".* FROM "export_files" WHERE "export_files"."id" = ? LIMIT 1 [["id", "1"]]
316
527
   (0.0ms) SAVEPOINT active_record_1
317
- [paperclip] Scheduling attachments for deletion.
318
- SQL (0.3ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
319
- [paperclip] Deleting attachments.
528
+ SQL (0.2ms) DELETE FROM "export_files" WHERE "export_files"."id" = ? [["id", 1]]
320
529
   (0.0ms) RELEASE SAVEPOINT active_record_1
321
530
  Redirected to http://test.host/export_files
322
- Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
323
-  (0.4ms) rollback transaction
531
+ Completed 302 Found in 12.1ms (ActiveRecord: 0.7ms)
532
+  (0.5ms) rollback transaction
324
533
   (0.0ms) begin transaction
325
- Started GET "/export_files" for 127.0.0.1 at 2013-04-17 10:45:49 +0900
534
+ Started GET "/export_files" for 127.0.0.1 at 2014-02-09 15:32:41 +0900
326
535
  Processing by ExportFilesController#index as HTML
536
+ LibraryGroup Load (0.1ms) SELECT "library_groups".* FROM "library_groups" WHERE "library_groups"."id" = ? LIMIT 1 [["id", 1]]
327
537
  Redirected to http://www.example.com/users/sign_in
328
- Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
329
-  (0.1ms) rollback transaction
330
-  (0.0ms) begin transaction
331
-  (0.0ms) rollback transaction
332
-  (0.0ms) begin transaction
333
-  (0.0ms) rollback transaction
334
-  (0.0ms) begin transaction
335
-  (0.0ms) rollback transaction
336
-  (0.0ms) begin transaction
337
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (11.3ms)
338
-  (0.1ms) rollback transaction
339
-  (0.0ms) begin transaction
340
-  (0.1ms) rollback transaction
341
-  (0.1ms) begin transaction
342
- Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (5.6ms)
343
-  (0.1ms) rollback transaction
344
-  (0.0ms) begin transaction
345
-  (0.1ms) rollback transaction
538
+ Completed 302 Found in 13.9ms (ActiveRecord: 0.1ms)
539
+  (0.1ms) rollback transaction
540
+  (0.0ms) begin transaction
541
+  (0.0ms) rollback transaction
542
+  (0.0ms) begin transaction
543
+  (0.0ms) rollback transaction
544
+  (0.0ms) begin transaction
545
+  (0.0ms) rollback transaction
546
+  (0.0ms) begin transaction
547
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (13.0ms)
548
+  (0.1ms) rollback transaction
549
+  (0.0ms) begin transaction
550
+  (0.0ms) rollback transaction
551
+  (0.0ms) begin transaction
552
+ Rendered /Users/kosuke/enju_export/app/views/export_files/_form.html.erb (4.9ms)
553
+  (0.0ms) rollback transaction
554
+  (0.0ms) begin transaction
555
+  (0.1ms) rollback transaction