file_manager_engine 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. data/.gitignore +21 -0
  2. data/Gemfile +17 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +27 -0
  5. data/README.rdoc +3 -0
  6. data/Rakefile +37 -0
  7. data/app/models/.gitkeep +0 -0
  8. data/app/models/file_manager.rb +26 -0
  9. data/app/views/.gitkeep +0 -0
  10. data/db/migrate/20120924142907_create_file_manager.rb +13 -0
  11. data/file_manager_engine.gemspec +24 -0
  12. data/lib/file_manager_engine/engine.rb +5 -0
  13. data/lib/file_manager_engine/version.rb +3 -0
  14. data/lib/file_manager_engine.rb +40 -0
  15. data/lib/tasks/file_manager_engine_tasks.rake +4 -0
  16. data/spec/dummy/README.rdoc +261 -0
  17. data/spec/dummy/Rakefile +14 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  21. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  22. data/spec/dummy/app/mailers/.gitkeep +0 -0
  23. data/spec/dummy/app/models/.gitkeep +0 -0
  24. data/spec/dummy/app/models/article.rb +12 -0
  25. data/spec/dummy/app/models/gallery.rb +3 -0
  26. data/spec/dummy/app/models/image.rb +3 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/config/application.rb +59 -0
  29. data/spec/dummy/config/boot.rb +10 -0
  30. data/spec/dummy/config/database.yml +20 -0
  31. data/spec/dummy/config/environment.rb +5 -0
  32. data/spec/dummy/config/environments/development.rb +37 -0
  33. data/spec/dummy/config/environments/production.rb +67 -0
  34. data/spec/dummy/config/environments/test.rb +37 -0
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/dummy/config/initializers/inflections.rb +15 -0
  37. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  38. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  39. data/spec/dummy/config/initializers/session_store.rb +8 -0
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/spec/dummy/config/locales/en.yml +5 -0
  42. data/spec/dummy/config/routes.rb +58 -0
  43. data/spec/dummy/config.ru +4 -0
  44. data/spec/dummy/db/development.sqlite3 +0 -0
  45. data/spec/dummy/db/migrate/20120924145423_create_images.rb +10 -0
  46. data/spec/dummy/db/migrate/20120924150641_create_articles.rb +11 -0
  47. data/spec/dummy/db/migrate/20120924151353_create_galleries.rb +10 -0
  48. data/spec/dummy/db/migrate/20120925140600_create_file_manager.file_manager_engine.rb +14 -0
  49. data/spec/dummy/db/schema.rb +50 -0
  50. data/spec/dummy/db/test.sqlite3 +0 -0
  51. data/spec/dummy/lib/assets/.gitkeep +0 -0
  52. data/spec/dummy/log/.gitkeep +0 -0
  53. data/spec/dummy/log/development.log +126 -0
  54. data/spec/dummy/log/test.log +466 -0
  55. data/spec/dummy/public/404.html +26 -0
  56. data/spec/dummy/public/422.html +26 -0
  57. data/spec/dummy/public/500.html +25 -0
  58. data/spec/dummy/public/favicon.ico +0 -0
  59. data/spec/dummy/script/rails +6 -0
  60. data/spec/file_manager_engine_spec.rb +24 -0
  61. data/spec/spec_helper.rb +7 -0
  62. metadata +183 -0
@@ -0,0 +1,466 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ ActiveRecord::JDBCError: query does not return ResultSet: PRAGMA table_info("articles")
4
+ Connecting to database specified by database.yml
5
+ Connecting to database specified by database.yml
6
+ Connecting to database specified by database.yml
7
+ Connecting to database specified by database.yml
8
+ Connecting to database specified by database.yml
9
+ Connecting to database specified by database.yml
10
+ Connecting to database specified by database.yml
11
+ Connecting to database specified by database.yml
12
+ Connecting to database specified by database.yml
13
+  (0.1ms) begin transaction
14
+ SQL (27.7ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:23:23 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:23:23 UTC +00:00]]
15
+  (0.2ms) rollback transaction
16
+ Connecting to database specified by database.yml
17
+  (0.1ms) begin transaction
18
+ SQL (27.8ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:27:43 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:27:43 UTC +00:00]]
19
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:27:43 UTC +00:00], ["entity_id", 1], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:27:43 UTC +00:00]]
20
+  (184.6ms) commit transaction
21
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
22
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
23
+ Connecting to database specified by database.yml
24
+  (0.1ms) begin transaction
25
+ SQL (27.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:30:18 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:30:18 UTC +00:00]]
26
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:30:18 UTC +00:00], ["entity_id", 2], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:30:18 UTC +00:00]]
27
+  (182.5ms) commit transaction
28
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
29
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
30
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
31
+ Connecting to database specified by database.yml
32
+  (0.1ms) begin transaction
33
+ SQL (30.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:32:55 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:32:55 UTC +00:00]]
34
+ SQL (0.6ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:32:56 UTC +00:00], ["entity_id", 3], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:32:56 UTC +00:00]]
35
+  (198.1ms) commit transaction
36
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
37
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
38
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
39
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
40
+ Connecting to database specified by database.yml
41
+  (0.1ms) begin transaction
42
+ SQL (28.0ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:45:37 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:45:37 UTC +00:00]]
43
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:45:37 UTC +00:00], ["entity_id", 4], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:45:37 UTC +00:00]]
44
+  (159.4ms) commit transaction
45
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
46
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
47
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
48
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
49
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 4 LIMIT 1
50
+ Connecting to database specified by database.yml
51
+  (0.1ms) begin transaction
52
+ SQL (3.8ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:48:24 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:48:24 UTC +00:00]]
53
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:48:24 UTC +00:00], ["entity_id", 5], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:48:24 UTC +00:00]]
54
+  (193.2ms) commit transaction
55
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
56
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
57
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
58
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
59
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 4 LIMIT 1
60
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 5 LIMIT 1
61
+ Connecting to database specified by database.yml
62
+  (1.4ms) select sqlite_version(*)
63
+  (172.3ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "body" varchar(255), "path" varchar(255), "image_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
64
+  (154.7ms) CREATE TABLE "file_managers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "entity_type" varchar(255), "entity_id" varchar(255), "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
65
+  (0.1ms) PRAGMA index_list("file_managers")
66
+  (178.1ms) CREATE INDEX "index_file_managers_on_entity_type_and_entity_id" ON "file_managers" ("entity_type", "entity_id")
67
+  (0.1ms) PRAGMA index_list("file_managers")
68
+  (0.0ms) PRAGMA index_info('index_file_managers_on_entity_type_and_entity_id')
69
+  (211.4ms) CREATE INDEX "index_file_managers_on_file" ON "file_managers" ("file")
70
+  (188.3ms) CREATE TABLE "galleries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
71
+  (155.0ms) CREATE TABLE "images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "path" varchar(255), "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
72
+  (390.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
73
+  (0.1ms) PRAGMA index_list("schema_migrations")
74
+  (133.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
75
+  (0.1ms) SELECT version FROM "schema_migrations"
76
+  (133.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120925140600')
77
+  (134.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120924145423')
78
+  (167.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120924151353')
79
+  (167.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120924150641')
80
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
81
+ Connecting to database specified by database.yml
82
+  (0.1ms) begin transaction
83
+ SQL (3.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00]]
84
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00], ["entity_id", 1], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00]]
85
+  (190.0ms) commit transaction
86
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
87
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
88
+  (0.1ms) begin transaction
89
+ SQL (0.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00]]
90
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00], ["entity_id", 2], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:49:24 UTC +00:00]]
91
+  (154.1ms) commit transaction
92
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
93
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
94
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
95
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
96
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
97
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
98
+ Connecting to database specified by database.yml
99
+  (0.1ms) begin transaction
100
+ SQL (4.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:51:36 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:51:36 UTC +00:00]]
101
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:51:36 UTC +00:00], ["entity_id", 3], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:51:36 UTC +00:00]]
102
+  (350.5ms) commit transaction
103
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
104
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
105
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
106
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
107
+  (0.1ms) begin transaction
108
+ SQL (0.8ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00]]
109
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00], ["entity_id", 4], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00]]
110
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00], ["entity_id", 4], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 14:51:37 UTC +00:00]]
111
+  (177.1ms) commit transaction
112
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
113
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
114
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
115
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
116
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 4 LIMIT 1
117
+ Connecting to database specified by database.yml
118
+  (0.1ms) begin transaction
119
+ SQL (3.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:52:50 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:52:50 UTC +00:00]]
120
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:52:50 UTC +00:00], ["entity_id", 5], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:52:50 UTC +00:00]]
121
+  (209.0ms) commit transaction
122
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
123
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 1 LIMIT 1
124
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 2 LIMIT 1
125
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 3 LIMIT 1
126
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 4 LIMIT 1
127
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 5 LIMIT 1
128
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
129
+  (0.0ms) begin transaction
130
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 1]]
131
+  (155.7ms) commit transaction
132
+  (0.1ms) begin transaction
133
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 2]]
134
+  (132.8ms) commit transaction
135
+  (0.1ms) begin transaction
136
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 3]]
137
+  (132.7ms) commit transaction
138
+  (0.1ms) begin transaction
139
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 4]]
140
+  (132.9ms) commit transaction
141
+  (0.1ms) begin transaction
142
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 5]]
143
+  (168.3ms) commit transaction
144
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" 
145
+  (0.1ms) begin transaction
146
+ SQL (0.6ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 1]]
147
+  (185.3ms) commit transaction
148
+  (0.1ms) begin transaction
149
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 2]]
150
+  (188.4ms) commit transaction
151
+  (0.1ms) begin transaction
152
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 3]]
153
+  (211.1ms) commit transaction
154
+  (0.1ms) begin transaction
155
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 4]]
156
+  (154.8ms) commit transaction
157
+  (0.1ms) begin transaction
158
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 5]]
159
+  (155.1ms) commit transaction
160
+  (0.1ms) begin transaction
161
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 6]]
162
+  (155.2ms) commit transaction
163
+  (0.1ms) begin transaction
164
+ SQL (1.5ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
165
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["entity_id", 6], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
166
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["entity_id", 6], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
167
+  (259.2ms) commit transaction
168
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
169
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 6 LIMIT 1
170
+  (0.1ms) begin transaction
171
+ SQL (0.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img3.jpg"]], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
172
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["entity_id", 7], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
173
+ SQL (0.1ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00], ["entity_id", 7], ["entity_type", "Article"], ["file", "img3.jpg"], ["updated_at", Tue, 25 Sep 2012 14:52:52 UTC +00:00]]
174
+  (181.2ms) commit transaction
175
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
176
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 6 LIMIT 1
177
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 7 LIMIT 1
178
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
179
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 6 LIMIT 1
180
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 7 LIMIT 1
181
+ Connecting to database specified by database.yml
182
+  (0.1ms) begin transaction
183
+ SQL (4.0ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:05 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:53:05 UTC +00:00]]
184
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:05 UTC +00:00], ["entity_id", 8], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:05 UTC +00:00]]
185
+  (322.4ms) commit transaction
186
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
187
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 6 LIMIT 1
188
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 7 LIMIT 1
189
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 8 LIMIT 1
190
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
191
+  (0.0ms) begin transaction
192
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 6]]
193
+  (130.2ms) commit transaction
194
+  (0.1ms) begin transaction
195
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 7]]
196
+  (210.8ms) commit transaction
197
+  (0.1ms) begin transaction
198
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 8]]
199
+  (166.3ms) commit transaction
200
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" 
201
+  (0.1ms) begin transaction
202
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 7]]
203
+  (163.2ms) commit transaction
204
+  (0.1ms) begin transaction
205
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 8]]
206
+  (178.6ms) commit transaction
207
+  (0.1ms) begin transaction
208
+ SQL (0.4ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 9]]
209
+  (154.8ms) commit transaction
210
+  (0.1ms) begin transaction
211
+ SQL (0.4ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 10]]
212
+  (177.3ms) commit transaction
213
+  (0.1ms) begin transaction
214
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 11]]
215
+  (155.1ms) commit transaction
216
+  (0.1ms) begin transaction
217
+ SQL (1.3ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
218
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["entity_id", 9], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
219
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["entity_id", 9], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
220
+  (149.2ms) commit transaction
221
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
222
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 9 LIMIT 1
223
+  (0.1ms) begin transaction
224
+ SQL (0.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img3.jpg"]], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
225
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["entity_id", 10], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
226
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00], ["entity_id", 10], ["entity_type", "Article"], ["file", "img3.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:07 UTC +00:00]]
227
+  (179.7ms) commit transaction
228
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
229
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 9 LIMIT 1
230
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 10 LIMIT 1
231
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
232
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 9 LIMIT 1
233
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 10 LIMIT 1
234
+ Connecting to database specified by database.yml
235
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
236
+  (0.1ms) begin transaction
237
+ SQL (3.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 9]]
238
+  (180.5ms) commit transaction
239
+  (0.1ms) begin transaction
240
+ SQL (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 10]]
241
+  (155.4ms) commit transaction
242
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers"
243
+  (0.1ms) begin transaction
244
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 12]]
245
+  (175.8ms) commit transaction
246
+  (0.1ms) begin transaction
247
+ SQL (0.5ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 13]]
248
+  (153.9ms) commit transaction
249
+  (0.1ms) begin transaction
250
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 14]]
251
+  (155.0ms) commit transaction
252
+  (0.1ms) begin transaction
253
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 15]]
254
+  (188.7ms) commit transaction
255
+  (0.1ms) begin transaction
256
+ SQL (2.2ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00]]
257
+ SQL (0.6ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00], ["entity_id", 11], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00]]
258
+  (190.0ms) commit transaction
259
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
260
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 11 LIMIT 1
261
+  (0.1ms) begin transaction
262
+ SQL (0.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00]]
263
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00], ["entity_id", 12], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:18 UTC +00:00]]
264
+  (185.1ms) commit transaction
265
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
266
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 11 LIMIT 1
267
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 12 LIMIT 1
268
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
269
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 11 LIMIT 1
270
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 12 LIMIT 1
271
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
272
+  (0.1ms) begin transaction
273
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 11]]
274
+  (156.2ms) commit transaction
275
+  (0.1ms) begin transaction
276
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 12]]
277
+  (157.0ms) commit transaction
278
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers"
279
+  (0.1ms) begin transaction
280
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 16]]
281
+  (154.2ms) commit transaction
282
+  (0.1ms) begin transaction
283
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 17]]
284
+  (155.4ms) commit transaction
285
+  (0.1ms) begin transaction
286
+ SQL (0.8ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
287
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["entity_id", 13], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
288
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["entity_id", 13], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
289
+  (218.4ms) commit transaction
290
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
291
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 13 LIMIT 1
292
+  (0.1ms) begin transaction
293
+ SQL (0.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img3.jpg"]], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
294
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["entity_id", 14], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
295
+ SQL (0.1ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00], ["entity_id", 14], ["entity_type", "Article"], ["file", "img3.jpg"], ["updated_at", Tue, 25 Sep 2012 14:53:19 UTC +00:00]]
296
+  (191.9ms) commit transaction
297
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
298
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 13 LIMIT 1
299
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 14 LIMIT 1
300
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
301
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 13 LIMIT 1
302
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 14 LIMIT 1
303
+ Connecting to database specified by database.yml
304
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
305
+  (0.1ms) begin transaction
306
+ SQL (3.1ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 13]]
307
+  (175.0ms) commit transaction
308
+  (0.1ms) begin transaction
309
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 14]]
310
+  (153.7ms) commit transaction
311
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers"
312
+  (0.1ms) begin transaction
313
+ SQL (0.4ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 18]]
314
+  (162.0ms) commit transaction
315
+  (0.1ms) begin transaction
316
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 19]]
317
+  (177.9ms) commit transaction
318
+  (0.1ms) begin transaction
319
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 20]]
320
+  (155.2ms) commit transaction
321
+  (0.1ms) begin transaction
322
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 21]]
323
+  (177.7ms) commit transaction
324
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
325
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers"
326
+  (0.1ms) begin transaction
327
+ SQL (2.0ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00]]
328
+ SQL (0.6ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00], ["entity_id", 15], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00]]
329
+  (188.5ms) commit transaction
330
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
331
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 15 LIMIT 1
332
+  (0.1ms) begin transaction
333
+ SQL (0.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00]]
334
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00], ["entity_id", 16], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:00 UTC +00:00]]
335
+  (183.8ms) commit transaction
336
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
337
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 15 LIMIT 1
338
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 16 LIMIT 1
339
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
340
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 15 LIMIT 1
341
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 16 LIMIT 1
342
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
343
+  (0.1ms) begin transaction
344
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 15]]
345
+  (155.9ms) commit transaction
346
+  (0.1ms) begin transaction
347
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 16]]
348
+  (144.1ms) commit transaction
349
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers"
350
+  (0.1ms) begin transaction
351
+ SQL (0.2ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 22]]
352
+  (287.6ms) commit transaction
353
+  (0.2ms) begin transaction
354
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 23]]
355
+  (154.9ms) commit transaction
356
+  (0.1ms) begin transaction
357
+ SQL (1.6ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
358
+ SQL (0.5ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["entity_id", 17], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
359
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["entity_id", 17], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
360
+  (181.3ms) commit transaction
361
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
362
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 17 LIMIT 1
363
+  (0.0ms) begin transaction
364
+ SQL (0.6ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img3.jpg"]], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
365
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["entity_id", 18], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
366
+ SQL (0.1ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00], ["entity_id", 18], ["entity_type", "Article"], ["file", "img3.jpg"], ["updated_at", Tue, 25 Sep 2012 15:00:01 UTC +00:00]]
367
+  (206.4ms) commit transaction
368
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
369
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 17 LIMIT 1
370
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 18 LIMIT 1
371
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
372
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 17 LIMIT 1
373
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 18 LIMIT 1
374
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
375
+  (0.0ms) begin transaction
376
+ SQL (0.1ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 17]]
377
+  (161.2ms) commit transaction
378
+  (0.1ms) begin transaction
379
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 18]]
380
+  (144.3ms) commit transaction
381
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers"
382
+  (0.1ms) begin transaction
383
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 24]]
384
+  (266.0ms) commit transaction
385
+  (0.1ms) begin transaction
386
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 25]]
387
+  (155.4ms) commit transaction
388
+  (0.1ms) begin transaction
389
+ SQL (0.2ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 26]]
390
+  (199.9ms) commit transaction
391
+  (0.1ms) begin transaction
392
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 27]]
393
+  (177.5ms) commit transaction
394
+ Connecting to database specified by database.yml
395
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
396
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers"
397
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
398
+ FileManager Load (0.1ms) SELECT "file_managers".* FROM "file_managers"
399
+  (0.1ms) begin transaction
400
+ SQL (3.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00]]
401
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00], ["entity_id", 19], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00]]
402
+  (198.4ms) commit transaction
403
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
404
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 19 LIMIT 1
405
+  (0.1ms) begin transaction
406
+ SQL (0.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00], ["image_id", nil], ["path", "img1.jpg"], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00]]
407
+ SQL (0.2ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00], ["entity_id", 20], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:36 UTC +00:00]]
408
+  (188.6ms) commit transaction
409
+ FileManager Load (0.4ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
410
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 19 LIMIT 1
411
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 20 LIMIT 1
412
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
413
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 19 LIMIT 1
414
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 20 LIMIT 1
415
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" 
416
+  (0.1ms) begin transaction
417
+ SQL (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 19]]
418
+  (168.6ms) commit transaction
419
+  (0.1ms) begin transaction
420
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 20]]
421
+  (144.0ms) commit transaction
422
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers"
423
+  (0.0ms) begin transaction
424
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 28]]
425
+  (187.6ms) commit transaction
426
+  (0.1ms) begin transaction
427
+ SQL (0.4ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 29]]
428
+  (189.7ms) commit transaction
429
+  (0.1ms) begin transaction
430
+ SQL (1.4ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img2.jpg"]], ["title", "Título"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
431
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["entity_id", 21], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
432
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["entity_id", 21], ["entity_type", "Article"], ["file", "img2.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
433
+  (181.7ms) commit transaction
434
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
435
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 21 LIMIT 1
436
+  (0.1ms) begin transaction
437
+ SQL (0.9ms) INSERT INTO "articles" ("body", "created_at", "image_id", "path", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["image_id", nil], ["path", ["img1.jpg", "img3.jpg"]], ["title", "Título 2"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
438
+ SQL (0.4ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["entity_id", 22], ["entity_type", "Article"], ["file", "img1.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
439
+ SQL (0.3ms) INSERT INTO "file_managers" ("created_at", "entity_id", "entity_type", "file", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00], ["entity_id", 22], ["entity_type", "Article"], ["file", "img3.jpg"], ["updated_at", Tue, 25 Sep 2012 15:02:37 UTC +00:00]]
440
+  (178.6ms) commit transaction
441
+ FileManager Load (0.3ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
442
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 21 LIMIT 1
443
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 22 LIMIT 1
444
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers" WHERE "file_managers"."file" = 'img1.jpg'
445
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 21 LIMIT 1
446
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = 22 LIMIT 1
447
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" 
448
+  (0.1ms) begin transaction
449
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 21]]
450
+  (135.4ms) commit transaction
451
+  (0.1ms) begin transaction
452
+ SQL (0.2ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 22]]
453
+  (133.3ms) commit transaction
454
+ FileManager Load (0.2ms) SELECT "file_managers".* FROM "file_managers"
455
+  (0.0ms) begin transaction
456
+ SQL (0.1ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 30]]
457
+  (155.1ms) commit transaction
458
+  (0.1ms) begin transaction
459
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 31]]
460
+  (188.6ms) commit transaction
461
+  (0.1ms) begin transaction
462
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 32]]
463
+  (188.4ms) commit transaction
464
+  (0.1ms) begin transaction
465
+ SQL (0.3ms) DELETE FROM "file_managers" WHERE "file_managers"."id" = ? [["id", 33]]
466
+  (166.1ms) commit transaction
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'