acts_as_assets 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -82,7 +82,7 @@ class ActsAsAssets::AssetsController < ApplicationController
|
|
82
82
|
# takes a type params string like "my/asset/type_of_documento"
|
83
83
|
# and convert into My::Asset::TypeOfDocument constant
|
84
84
|
def klazz
|
85
|
-
|
85
|
+
params[:type].camelize.constantize
|
86
86
|
end
|
87
87
|
|
88
88
|
def assign_target
|
@@ -1,48 +1,60 @@
|
|
1
1
|
module ActionView
|
2
2
|
module Helpers
|
3
3
|
class FormBuilder
|
4
|
-
def asset_upload(
|
5
|
-
@template.asset_upload_tag(@object,
|
4
|
+
def asset_upload(methods, *args)
|
5
|
+
@template.asset_upload_tag(@object, methods, *args)
|
6
6
|
end
|
7
7
|
|
8
|
-
def asset_multiple_upload(
|
9
|
-
@template.asset_multiple_upload_tag(@object,
|
8
|
+
def asset_multiple_upload(methods, *args)
|
9
|
+
@template.asset_multiple_upload_tag(@object, methods, *args)
|
10
10
|
end
|
11
11
|
|
12
|
-
def asset_label(
|
13
|
-
@template.asset_label_tag(@object,
|
12
|
+
def asset_label(methods, type)
|
13
|
+
@template.asset_label_tag(@object, methods, type)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
17
|
module FormTagHelper
|
18
|
-
def asset_multiple_upload_tag(model, methods,
|
18
|
+
def asset_multiple_upload_tag(model, methods, *args)
|
19
19
|
options = args.extract_options!
|
20
|
+
type = nil
|
21
|
+
type = args.first if args.size == 2
|
20
22
|
asset_upload_helper(model, methods, type, "acts_as_assets/assets/asset_multiple_upload", options)
|
21
23
|
end
|
22
24
|
|
23
|
-
def asset_upload_tag(model, methods,
|
25
|
+
def asset_upload_tag(model, methods, *args)
|
24
26
|
options = args.extract_options!
|
27
|
+
type = nil
|
28
|
+
type = args.first if args.size == 2
|
25
29
|
asset_upload_helper(model, methods, type, "acts_as_assets/assets/asset_upload", options)
|
26
30
|
end
|
27
31
|
|
28
|
-
private
|
29
|
-
|
30
32
|
# +methods+ can be a sym that will be the method name and it will be called
|
31
33
|
# against the model passed or can an array of symbols and will be chained in a method call
|
32
34
|
# for instance
|
33
35
|
# asset_upload_tag(@pratica, [:back_office, :allegati], ...)
|
34
36
|
# will call @pratica.back_office.allegati
|
35
37
|
def asset_upload_helper(model, methods, type, partial, options)
|
38
|
+
type ||= get_type_from_association(model, methods)
|
36
39
|
render partial: partial,
|
37
|
-
locals: {:@type => type, model: model, assets:
|
38
|
-
association: Array(methods).last,
|
39
|
-
read_only: options[:read_only]}
|
40
|
+
locals: {:@type => type, model: model, assets: asset_instances(model, methods), read_only: options[:read_only]}
|
40
41
|
end
|
41
42
|
|
42
|
-
def
|
43
|
+
def asset_instances(model, methods)
|
43
44
|
Array(methods).inject(model) { |object, method| object.send(method) }
|
44
45
|
end
|
45
46
|
|
47
|
+
def get_type_from_association(model, methods)
|
48
|
+
meths = Array(methods).dup
|
49
|
+
|
50
|
+
association_name = meths.pop
|
51
|
+
|
52
|
+
unless meths.empty?
|
53
|
+
model = asset_instances(model, meths)
|
54
|
+
end
|
55
|
+
|
56
|
+
model.association(association_name).klass.to_s.underscore
|
57
|
+
end
|
46
58
|
end
|
47
59
|
end
|
48
60
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -15571,3 +15571,1041 @@ Completed 404 Not Found in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
|
15571
15571
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15572
15572
|
[paperclip] Saving attachments.
|
15573
15573
|
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
15574
|
+
Connecting to database specified by database.yml
|
15575
|
+
Connecting to database specified by database.yml
|
15576
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
15577
|
+
[1m[35m (51.2ms)[0m DROP TABLE "books"
|
15578
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15579
|
+
[1m[35m (3.0ms)[0m DROP TABLE "books_assets"
|
15580
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15581
|
+
[1m[35m (2.5ms)[0m DROP TABLE "chapters"
|
15582
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15583
|
+
[1m[35m (2.3ms)[0m DROP TABLE "chapters_assets"
|
15584
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15585
|
+
[1m[35m (2.3ms)[0m DROP TABLE "rt_tipi_pannello"
|
15586
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15587
|
+
[1m[35m (4.2ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15588
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15589
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
15590
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15591
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
15592
|
+
Connecting to database specified by database.yml
|
15593
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
15594
|
+
[1m[35m (3.8ms)[0m DROP TABLE "books"
|
15595
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15596
|
+
[1m[35m (2.2ms)[0m DROP TABLE "books_assets"
|
15597
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15598
|
+
[1m[35m (2.1ms)[0m DROP TABLE "chapters"
|
15599
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15600
|
+
[1m[35m (2.2ms)[0m DROP TABLE "chapters_assets"
|
15601
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15602
|
+
[1m[35m (2.4ms)[0m DROP TABLE "rt_tipi_pannello"
|
15603
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15604
|
+
[1m[35m (2.1ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15605
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15606
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
15607
|
+
[1m[36mSQL (10.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15608
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
15609
|
+
Connecting to database specified by database.yml
|
15610
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
15611
|
+
[1m[35m (2.5ms)[0m DROP TABLE "books"
|
15612
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15613
|
+
[1m[35m (2.6ms)[0m DROP TABLE "books_assets"
|
15614
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15615
|
+
[1m[35m (2.1ms)[0m DROP TABLE "chapters"
|
15616
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15617
|
+
[1m[35m (2.9ms)[0m DROP TABLE "chapters_assets"
|
15618
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15619
|
+
[1m[35m (1.8ms)[0m DROP TABLE "rt_tipi_pannello"
|
15620
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15621
|
+
[1m[35m (3.9ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15622
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15623
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15624
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15625
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books"
|
15626
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15627
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
15628
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
15629
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
15630
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15631
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15632
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15633
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
15634
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
15635
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
15636
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15637
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
15638
|
+
[1m[36mSQL (4.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15639
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
15640
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
15641
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
15642
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15643
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books"
|
15644
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
15645
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
15646
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
15647
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
15648
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15649
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15650
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15651
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
15652
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
15653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15654
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15655
|
+
[1m[35m (2.0ms)[0m commit transaction
|
15656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15657
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
15658
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15659
|
+
[paperclip] Saving attachments.
|
15660
|
+
[1m[35m (2.0ms)[0m commit transaction
|
15661
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15662
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
15663
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
15664
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15665
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15666
|
+
[1m[35m (1.5ms)[0m commit transaction
|
15667
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15668
|
+
[1m[35m (0.9ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
15669
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15670
|
+
[paperclip] Saving attachments.
|
15671
|
+
[1m[35m (2.2ms)[0m commit transaction
|
15672
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15673
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
15674
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
15675
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15676
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15677
|
+
[1m[35m (1.8ms)[0m commit transaction
|
15678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15679
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
15680
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15681
|
+
[paperclip] Saving attachments.
|
15682
|
+
[1m[35m (1.6ms)[0m commit transaction
|
15683
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
15684
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
15685
|
+
[1m[36mSQL (5.4ms)[0m [1mDELETE FROM "books"[0m
|
15686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15687
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
15688
|
+
[1m[35m (2.7ms)[0m commit transaction
|
15689
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15690
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.3ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
15691
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
15692
|
+
[1m[35mSQL (26.6ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:36:25 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
15693
|
+
[paperclip] Saving attachments.
|
15694
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
15695
|
+
[1m[35mSQL (7.6ms)[0m DELETE FROM "books_assets"
|
15696
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
15697
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15699
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
15700
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
15701
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15702
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
15703
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15704
|
+
[paperclip] Saving attachments.
|
15705
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
15706
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
15707
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15708
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15709
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
15710
|
+
[1m[35mSQL (5.9ms)[0m DELETE FROM "books_assets"
|
15711
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
15712
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books"
|
15713
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15714
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
15715
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15716
|
+
[paperclip] Saving attachments.
|
15717
|
+
[1m[35m (1.7ms)[0m commit transaction
|
15718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15719
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
15720
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15721
|
+
[paperclip] Saving attachments.
|
15722
|
+
[1m[35m (12.1ms)[0m commit transaction
|
15723
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
15724
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
15725
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15726
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
15727
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books"[0m
|
15728
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15729
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15730
|
+
[1m[35m (1.5ms)[0m commit transaction
|
15731
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
15732
|
+
[1m[35m (0.8ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
15733
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:36:26 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15734
|
+
[paperclip] Saving attachments.
|
15735
|
+
[1m[35m (2.0ms)[0m commit transaction
|
15736
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15737
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
15738
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books"[0m
|
15739
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15740
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15741
|
+
[1m[35m (1.9ms)[0m commit transaction
|
15742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15743
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
15744
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:36:26 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15745
|
+
[paperclip] Saving attachments.
|
15746
|
+
[1m[35m (2.9ms)[0m commit transaction
|
15747
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15748
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15749
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books"[0m
|
15750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15751
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
15752
|
+
[1m[35m (1.8ms)[0m commit transaction
|
15753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15754
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
15755
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:36:26 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
15756
|
+
[paperclip] Saving attachments.
|
15757
|
+
[1m[35m (1.8ms)[0m commit transaction
|
15758
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
15759
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
15760
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
15761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15762
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
15763
|
+
[1m[35m (1.6ms)[0m commit transaction
|
15764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15765
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
15766
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:36:26 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
15767
|
+
[paperclip] Saving attachments.
|
15768
|
+
[1m[35m (1.6ms)[0m commit transaction
|
15769
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15770
|
+
[1m[35mSQL (4.1ms)[0m DELETE FROM "books_assets"
|
15771
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
15772
|
+
[1m[35mSQL (7.1ms)[0m DELETE FROM "books_assets"
|
15773
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
15774
|
+
[1m[35mSQL (3.8ms)[0m DELETE FROM "books"
|
15775
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15776
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books_assets"
|
15777
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
15778
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15779
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15780
|
+
[1m[35m (5.6ms)[0m commit transaction
|
15781
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg.jpg[0]'
|
15782
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg.jpg[0]'
|
15783
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg.jpg[0]'
|
15784
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl'
|
15785
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o'
|
15786
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15787
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15788
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15789
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o20120620-2659-1bh6z0a'
|
15790
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o20120620-2659-1bh6z0a20120620-2659-108jo3z'
|
15791
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15792
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15793
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]'
|
15794
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o20120620-2659-1jsa2p8'
|
15795
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-qmsabg20120620-2659-1mjirbl20120620-2659-fjtu0o20120620-2659-1jsa2p820120620-2659-69vzm4'
|
15796
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
15797
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
15798
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:36:26 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
15799
|
+
[paperclip] Saving attachments.
|
15800
|
+
[1m[35m (1.9ms)[0m commit transaction
|
15801
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
15802
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
15803
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
15804
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15805
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15806
|
+
[1m[35m (2.6ms)[0m commit transaction
|
15807
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he.jpg[0]'
|
15808
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he.jpg[0]'
|
15809
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he.jpg[0]'
|
15810
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin5'
|
15811
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw'
|
15812
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15813
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15814
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15815
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw20120620-2659-7gnhli'
|
15816
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw20120620-2659-7gnhli20120620-2659-y9cfld'
|
15817
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15818
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15819
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]'
|
15820
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw20120620-2659-y17jis'
|
15821
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2659-abb4he20120620-2659-164bin520120620-2659-phubqw20120620-2659-y17jis20120620-2659-iur90d'
|
15822
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
15823
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
15824
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:36:27 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
15825
|
+
[paperclip] Saving attachments.
|
15826
|
+
[1m[35m (2.4ms)[0m commit transaction
|
15827
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
15828
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
15829
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
15830
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
15831
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15832
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
15833
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15834
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
15835
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
15836
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
15837
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
15838
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15839
|
+
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
15840
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
15841
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
15842
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15843
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15844
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books"
|
15845
|
+
[1m[36mSQL (8.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15846
|
+
[1m[35mSQL (4.0ms)[0m DELETE FROM "books_assets"
|
15847
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books"[0m
|
15848
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
15849
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15850
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15851
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
15852
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
15853
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
15854
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15855
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
15856
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
15857
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
15858
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15859
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
15860
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
15861
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15862
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
15863
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
15864
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books_assets"
|
15865
|
+
[1m[36mSQL (6.2ms)[0m [1mDELETE FROM "books"[0m
|
15866
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
15867
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
15868
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
15869
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
15870
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
15871
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
15872
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
15873
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
15874
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15875
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
15876
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
15877
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
15878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15879
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15880
|
+
[1m[35m (1.3ms)[0m commit transaction
|
15881
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15882
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.8ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
15883
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
15884
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
15885
|
+
[paperclip] Saving attachments.
|
15886
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
15887
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15888
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
15889
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
15890
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
15891
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
15892
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15893
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
15894
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
15895
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15896
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
15897
|
+
[1m[35m (1.4ms)[0m commit transaction
|
15898
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15899
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
15900
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15901
|
+
[paperclip] Saving attachments.
|
15902
|
+
[1m[35m (1.7ms)[0m commit transaction
|
15903
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15904
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
15905
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15906
|
+
[paperclip] Saving attachments.
|
15907
|
+
[1m[35m (1.8ms)[0m commit transaction
|
15908
|
+
Connecting to database specified by database.yml
|
15909
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
15910
|
+
[1m[35m (3.8ms)[0m DROP TABLE "books"
|
15911
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15912
|
+
[1m[35m (3.6ms)[0m DROP TABLE "books_assets"
|
15913
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15914
|
+
[1m[35m (1.9ms)[0m DROP TABLE "chapters"
|
15915
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15916
|
+
[1m[35m (2.2ms)[0m DROP TABLE "chapters_assets"
|
15917
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15918
|
+
[1m[35m (2.1ms)[0m DROP TABLE "rt_tipi_pannello"
|
15919
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15920
|
+
[1m[35m (1.9ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15921
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15922
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
15923
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
15924
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books"
|
15925
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15926
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
15927
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
15928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15929
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1[0m
|
15930
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:41:27 UTC +00:00], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15931
|
+
[paperclip] Saving attachments.
|
15932
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
15933
|
+
Processing by Books::AssetsController#index as HTML
|
15934
|
+
Parameters: {"multiple"=>true, "fk_name"=>"1", "type"=>"books/assets/test_doc"}
|
15935
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "1"]]
|
15936
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (6.2ms)
|
15937
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1[0m
|
15938
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.9ms)
|
15939
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.3ms)
|
15940
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (14.5ms)
|
15941
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (21.4ms)
|
15942
|
+
Completed 200 OK in 78ms (Views: 74.2ms | ActiveRecord: 0.6ms)
|
15943
|
+
Connecting to database specified by database.yml
|
15944
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
15945
|
+
[1m[35m (3.6ms)[0m DROP TABLE "books"
|
15946
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15947
|
+
[1m[35m (2.2ms)[0m DROP TABLE "books_assets"
|
15948
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15949
|
+
[1m[35m (1.9ms)[0m DROP TABLE "chapters"
|
15950
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15951
|
+
[1m[35m (1.8ms)[0m DROP TABLE "chapters_assets"
|
15952
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15953
|
+
[1m[35m (5.5ms)[0m DROP TABLE "rt_tipi_pannello"
|
15954
|
+
[1m[36m (5.8ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15955
|
+
[1m[35m (2.1ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15956
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15957
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
15958
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
15959
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
15960
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15961
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
15962
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
15963
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15964
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1[0m
|
15965
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:06 UTC +00:00], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
15966
|
+
[paperclip] Saving attachments.
|
15967
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
15968
|
+
Processing by Books::AssetsController#index as HTML
|
15969
|
+
Parameters: {"multiple"=>true, "fk_name"=>"1", "type"=>"books/assets/test_doc"}
|
15970
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "1"]]
|
15971
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (6.7ms)
|
15972
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1[0m
|
15973
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.2ms)
|
15974
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.8ms)
|
15975
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (15.4ms)
|
15976
|
+
Rendered /opt/code/fractalgarden/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (24.0ms)
|
15977
|
+
Completed 200 OK in 39ms (Views: 35.2ms | ActiveRecord: 0.6ms)
|
15978
|
+
Connecting to database specified by database.yml
|
15979
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
15980
|
+
[1m[35m (3.2ms)[0m DROP TABLE "books"
|
15981
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
15982
|
+
[1m[35m (2.1ms)[0m DROP TABLE "books_assets"
|
15983
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15984
|
+
[1m[35m (2.0ms)[0m DROP TABLE "chapters"
|
15985
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
15986
|
+
[1m[35m (2.0ms)[0m DROP TABLE "chapters_assets"
|
15987
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
15988
|
+
[1m[35m (2.4ms)[0m DROP TABLE "rt_tipi_pannello"
|
15989
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
15990
|
+
[1m[35m (2.6ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
15991
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
15992
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
15993
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
15994
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
15995
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
15996
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
15997
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
15998
|
+
[1m[35mSQL (3.2ms)[0m DELETE FROM "books_assets"
|
15999
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
16000
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16001
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
16002
|
+
[1m[35mSQL (6.5ms)[0m DELETE FROM "books_assets"
|
16003
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
16004
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
16005
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16006
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
16007
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
16008
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16009
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
16010
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
16011
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16012
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16013
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16014
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16015
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
16016
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16017
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16018
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
16019
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16020
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books_assets"
|
16021
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
16022
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16023
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16024
|
+
[1m[35m (4.3ms)[0m commit transaction
|
16025
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16026
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
16027
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16028
|
+
[paperclip] Saving attachments.
|
16029
|
+
[1m[35m (2.2ms)[0m commit transaction
|
16030
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16031
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16032
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books"[0m
|
16033
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16034
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16035
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16037
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
16038
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16039
|
+
[paperclip] Saving attachments.
|
16040
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16041
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16042
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16043
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
16044
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16045
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16046
|
+
[1m[35m (2.2ms)[0m commit transaction
|
16047
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16048
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
16049
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16050
|
+
[paperclip] Saving attachments.
|
16051
|
+
[1m[35m (2.1ms)[0m commit transaction
|
16052
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16053
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16054
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
16055
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16056
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
16057
|
+
[1m[35m (1.6ms)[0m commit transaction
|
16058
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16059
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.7ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
16060
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
16061
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:16 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
16062
|
+
[paperclip] Saving attachments.
|
16063
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
16064
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16065
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
16066
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books"
|
16067
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16068
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
16069
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
16070
|
+
[1m[35m (0.0ms)[0m begin transaction
|
16071
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
16072
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16073
|
+
[paperclip] Saving attachments.
|
16074
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
16075
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16076
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
16077
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16078
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
16079
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16080
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
16081
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
16082
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16083
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
16084
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16085
|
+
[paperclip] Saving attachments.
|
16086
|
+
[1m[35m (3.3ms)[0m commit transaction
|
16087
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16088
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
16089
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16090
|
+
[paperclip] Saving attachments.
|
16091
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16092
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
16093
|
+
[1m[35mBooks::Asset Load (0.4ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
16094
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16095
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16096
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
16097
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16098
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16099
|
+
[1m[35m (2.1ms)[0m commit transaction
|
16100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16101
|
+
[1m[35m (0.7ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
16102
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:16 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16103
|
+
[paperclip] Saving attachments.
|
16104
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16105
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16106
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16107
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
16108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16109
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16110
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16111
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
16112
|
+
[1m[35m (0.5ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
16113
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:16 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16114
|
+
[paperclip] Saving attachments.
|
16115
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16116
|
+
[1m[36mSQL (5.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16117
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16118
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16120
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
16121
|
+
[1m[35m (2.2ms)[0m commit transaction
|
16122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16123
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
16124
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:16 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
16125
|
+
[paperclip] Saving attachments.
|
16126
|
+
[1m[35m (2.5ms)[0m commit transaction
|
16127
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16128
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16129
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16131
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
16132
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16134
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
16135
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:16 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
16136
|
+
[paperclip] Saving attachments.
|
16137
|
+
[1m[35m (2.3ms)[0m commit transaction
|
16138
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16139
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16140
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
16141
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16142
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16143
|
+
[1m[35mSQL (1.3ms)[0m DELETE FROM "books"
|
16144
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
16145
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16146
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16147
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16148
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16149
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16150
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz2.jpg[0]'
|
16151
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz2.jpg[0]'
|
16152
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz2.jpg[0]'
|
16153
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz2.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp'
|
16154
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g'
|
16155
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16156
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16157
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16158
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g20120620-2804-1aoxkpe'
|
16159
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g20120620-2804-1aoxkpe20120620-2804-npxiya'
|
16160
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16161
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16162
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]'
|
16163
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g20120620-2804-4rpgfm'
|
16164
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-gm3cz220120620-2804-y4xghp20120620-2804-mn491g20120620-2804-4rpgfm20120620-2804-112vbh5'
|
16165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16166
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
16167
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:42:17 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
16168
|
+
[paperclip] Saving attachments.
|
16169
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16170
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16171
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16172
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16174
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16175
|
+
[1m[35m (2.4ms)[0m commit transaction
|
16176
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m2.jpg[0]'
|
16177
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m2.jpg[0]'
|
16178
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m2.jpg[0]'
|
16179
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m2.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb'
|
16180
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n'
|
16181
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16182
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16183
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16184
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n20120620-2804-c8ee5r'
|
16185
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n20120620-2804-c8ee5r20120620-2804-op6a9b'
|
16186
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16187
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16188
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]'
|
16189
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n20120620-2804-q0y9xv'
|
16190
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2804-139q8m220120620-2804-131t5zb20120620-2804-l8wm3n20120620-2804-q0y9xv20120620-2804-j4uprc'
|
16191
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
16192
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
16193
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:42:17 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
16194
|
+
[paperclip] Saving attachments.
|
16195
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16196
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16197
|
+
[1m[35mSQL (3.0ms)[0m DELETE FROM "books_assets"
|
16198
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16199
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
16200
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16201
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books"
|
16202
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
16203
|
+
[1m[35mSQL (76.7ms)[0m DELETE FROM "books_assets"
|
16204
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
16205
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16206
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16207
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books"
|
16208
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
16209
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
16210
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16211
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16212
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
16213
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books"
|
16214
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
16215
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16216
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16217
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16218
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16219
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
16220
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
16221
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16222
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16223
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16224
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16225
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16226
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16227
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16228
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
16229
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16230
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16231
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16232
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
16233
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
16234
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16235
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
16236
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16237
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
16238
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16239
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
16240
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16241
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
16242
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16243
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
16244
|
+
[1m[36mSQL (5.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16245
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16246
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16247
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16248
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16249
|
+
[1m[35m (1.5ms)[0m commit transaction
|
16250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16251
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
16252
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
16253
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
16254
|
+
[paperclip] Saving attachments.
|
16255
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
16256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16257
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
16258
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
16259
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.4ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
16260
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
16261
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16262
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16263
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16265
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16266
|
+
[1m[35m (1.5ms)[0m commit transaction
|
16267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16268
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
16269
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16270
|
+
[paperclip] Saving attachments.
|
16271
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16272
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16273
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
16274
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16275
|
+
[paperclip] Saving attachments.
|
16276
|
+
[1m[35m (2.1ms)[0m commit transaction
|
16277
|
+
Connecting to database specified by database.yml
|
16278
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
16279
|
+
[1m[35m (3.4ms)[0m DROP TABLE "books"
|
16280
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
16281
|
+
[1m[35m (2.1ms)[0m DROP TABLE "books_assets"
|
16282
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16283
|
+
[1m[35m (2.1ms)[0m DROP TABLE "chapters"
|
16284
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
16285
|
+
[1m[35m (2.5ms)[0m DROP TABLE "chapters_assets"
|
16286
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16287
|
+
[1m[35m (1.9ms)[0m DROP TABLE "rt_tipi_pannello"
|
16288
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
16289
|
+
[1m[35m (7.6ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
16290
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
16291
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
16292
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16293
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16294
|
+
Connecting to database specified by database.yml
|
16295
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
16296
|
+
[1m[35m (3.2ms)[0m DROP TABLE "books"
|
16297
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
16298
|
+
[1m[35m (1.9ms)[0m DROP TABLE "books_assets"
|
16299
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16300
|
+
[1m[35m (2.0ms)[0m DROP TABLE "chapters"
|
16301
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
16302
|
+
[1m[35m (2.7ms)[0m DROP TABLE "chapters_assets"
|
16303
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16304
|
+
[1m[35m (1.7ms)[0m DROP TABLE "rt_tipi_pannello"
|
16305
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
16306
|
+
[1m[35m (2.4ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
16307
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
16308
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16309
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16310
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16311
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
16312
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16313
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16314
|
+
[1m[35mSQL (2.1ms)[0m DELETE FROM "books_assets"
|
16315
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16316
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16317
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16318
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16319
|
+
[1m[36mSQL (2.1ms)[0m [1mDELETE FROM "books"[0m
|
16320
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16321
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16322
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16323
|
+
[1m[36mSQL (9.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16324
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
16325
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16326
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16327
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
16328
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16329
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16330
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16331
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16332
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16333
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16334
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16335
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16336
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16337
|
+
[1m[36mSQL (1.2ms)[0m [1mDELETE FROM "books"[0m
|
16338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16339
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16340
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16341
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16342
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
16343
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16344
|
+
[paperclip] Saving attachments.
|
16345
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16346
|
+
[1m[36mSQL (10.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
16347
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16348
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16349
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16350
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16351
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16353
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
|
16354
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16355
|
+
[paperclip] Saving attachments.
|
16356
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16357
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16358
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books_assets"
|
16359
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16361
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16362
|
+
[1m[35m (1.5ms)[0m commit transaction
|
16363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16364
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
16365
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16366
|
+
[paperclip] Saving attachments.
|
16367
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16368
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16369
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16370
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
16371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16372
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rt_tipi_pannello" ("name") VALUES (?)[0m [["name", "Suntech STP"]]
|
16373
|
+
[1m[35m (1.5ms)[0m commit transaction
|
16374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16375
|
+
[1m[35mTipiPannello::Documenti::SchedaTecnica Load (0.2ms)[0m SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
|
16376
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'[0m
|
16377
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
|
16378
|
+
[paperclip] Saving attachments.
|
16379
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
16380
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16381
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16382
|
+
[1m[35mSQL (2.5ms)[0m DELETE FROM "books"
|
16383
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16384
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
16385
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
16386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16387
|
+
[1m[36m (0.4ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4[0m
|
16388
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16389
|
+
[paperclip] Saving attachments.
|
16390
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
16391
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16392
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16393
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16394
|
+
[1m[36m (1.0ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL[0m
|
16395
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16396
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16397
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16398
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16399
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
16400
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16401
|
+
[paperclip] Saving attachments.
|
16402
|
+
[1m[35m (2.1ms)[0m commit transaction
|
16403
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16404
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
16405
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16406
|
+
[paperclip] Saving attachments.
|
16407
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16408
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
16409
|
+
[1m[35mBooks::Asset Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
16410
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16411
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16412
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16413
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16414
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16415
|
+
[1m[35m (1.3ms)[0m commit transaction
|
16416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16417
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
|
16418
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16419
|
+
[paperclip] Saving attachments.
|
16420
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16421
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16422
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16423
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "books"[0m
|
16424
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16425
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16426
|
+
[1m[35m (3.3ms)[0m commit transaction
|
16427
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16428
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
16429
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16430
|
+
[paperclip] Saving attachments.
|
16431
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16432
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
16433
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books_assets"
|
16434
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16435
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16436
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
16437
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16438
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16439
|
+
[1m[35m (0.3ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
16440
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
16441
|
+
[paperclip] Saving attachments.
|
16442
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16443
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16444
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16445
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16447
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "chapters" ("name") VALUES (?)[0m [["name", "a new chapter"]]
|
16448
|
+
[1m[35m (4.4ms)[0m commit transaction
|
16449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16450
|
+
[1m[35m (0.4ms)[0m SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
|
16451
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
|
16452
|
+
[paperclip] Saving attachments.
|
16453
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16454
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16455
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books_assets"
|
16456
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16457
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16458
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16459
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16460
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16461
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16462
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16463
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16464
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16465
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16466
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx.jpg[0]'
|
16467
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx.jpg[0]'
|
16468
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx.jpg[0]'
|
16469
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t7'
|
16470
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios'
|
16471
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16472
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16473
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16474
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios20120620-2877-u906sd'
|
16475
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios20120620-2877-u906sd20120620-2877-z8h3bc'
|
16476
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16477
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16478
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]'
|
16479
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios20120620-2877-qlqbst'
|
16480
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1gwa9nx20120620-2877-69s3t720120620-2877-c9aios20120620-2877-qlqbst20120620-2877-15qv067'
|
16481
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
16482
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
|
16483
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:42:59 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
16484
|
+
[paperclip] Saving attachments.
|
16485
|
+
[1m[35m (1.9ms)[0m commit transaction
|
16486
|
+
[1m[36mSQL (4.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16487
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
16488
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16489
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16490
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16491
|
+
[1m[35m (1.4ms)[0m commit transaction
|
16492
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc5.jpg[0]'
|
16493
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc5.jpg[0]'
|
16494
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc5.jpg[0]'
|
16495
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc5.jpg[0]' -resize "800x600<" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker'
|
16496
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq'
|
16497
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16498
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16499
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16500
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]' -resize "64x64" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq20120620-2877-dy53qe'
|
16501
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq20120620-2877-dy53qe20120620-2877-wzjhgm'
|
16502
|
+
[32mCommand[0m :: identify -format %wx%h '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16503
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16504
|
+
[32mCommand[0m :: identify -format %m '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]'
|
16505
|
+
[32mCommand[0m :: convert '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq[0]' -resize "128x128" '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq20120620-2877-1phpg3x'
|
16506
|
+
[32mCommand[0m :: file -b --mime '/var/folders/j4/5w5kx5qs2r78l195pj7dhxhh0000gn/T/jpg_test20120620-2877-1mjgnc520120620-2877-1s1eker20120620-2877-1sgjboq20120620-2877-1phpg3x20120620-2877-2vvfnb'
|
16507
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
16508
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
|
16509
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Wed, 20 Jun 2012 13:43:00 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
|
16510
|
+
[paperclip] Saving attachments.
|
16511
|
+
[1m[35m (1.8ms)[0m commit transaction
|
16512
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16513
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16514
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16515
|
+
[1m[35mSQL (3.6ms)[0m DELETE FROM "books_assets"
|
16516
|
+
[1m[36mSQL (2.2ms)[0m [1mDELETE FROM "books_assets"[0m
|
16517
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books"
|
16518
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
16519
|
+
[1m[35mSQL (99.6ms)[0m DELETE FROM "books_assets"
|
16520
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books"[0m
|
16521
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16522
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16523
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16524
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16525
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16526
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16527
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16528
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16529
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16530
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16531
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16532
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
16533
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16534
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16535
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
16536
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
16537
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16538
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books"[0m
|
16539
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "books_assets"
|
16540
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16541
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
16542
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
16543
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
16544
|
+
[1m[36mSQL (1.6ms)[0m [1mDELETE FROM "books"[0m
|
16545
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16546
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
16547
|
+
[1m[35mSQL (1.4ms)[0m DELETE FROM "books"
|
16548
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16549
|
+
[1m[35mSQL (1.9ms)[0m DELETE FROM "books_assets"
|
16550
|
+
[1m[36mSQL (1.5ms)[0m [1mDELETE FROM "books"[0m
|
16551
|
+
[1m[35mSQL (2.3ms)[0m DELETE FROM "books_assets"
|
16552
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16553
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16554
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16555
|
+
[1m[35mSQL (1.8ms)[0m DELETE FROM "books_assets"
|
16556
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "books"[0m
|
16557
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16558
|
+
[1m[36mSQL (1.9ms)[0m [1mDELETE FROM "books_assets"[0m
|
16559
|
+
[1m[35mSQL (1.5ms)[0m DELETE FROM "books"
|
16560
|
+
[1m[36mSQL (1.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
16561
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
16562
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
16563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16564
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16565
|
+
[1m[35m (1.3ms)[0m commit transaction
|
16566
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16567
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
16568
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9[0m
|
16569
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
|
16570
|
+
[paperclip] Saving attachments.
|
16571
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
16572
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16573
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
16574
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16575
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.7ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1[0m
|
16576
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 9 LIMIT 1
|
16577
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
16578
|
+
[1m[35mSQL (1.7ms)[0m DELETE FROM "books_assets"
|
16579
|
+
[1m[36mSQL (1.4ms)[0m [1mDELETE FROM "books"[0m
|
16580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16581
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
16582
|
+
[1m[35m (1.3ms)[0m commit transaction
|
16583
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16584
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
16585
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16586
|
+
[paperclip] Saving attachments.
|
16587
|
+
[1m[35m (1.6ms)[0m commit transaction
|
16588
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16589
|
+
[1m[35m (0.4ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
16590
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 10], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
|
16591
|
+
[paperclip] Saving attachments.
|
16592
|
+
[1m[35m (1.7ms)[0m commit transaction
|
16593
|
+
Connecting to database specified by database.yml
|
16594
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
16595
|
+
[1m[35m (4.2ms)[0m DROP TABLE "books"
|
16596
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) [0m
|
16597
|
+
[1m[35m (2.0ms)[0m DROP TABLE "books_assets"
|
16598
|
+
[1m[36m (5.7ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer, "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16599
|
+
[1m[35m (7.1ms)[0m DROP TABLE "chapters"
|
16600
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "chapters" ("name" varchar(255) NOT NULL) [0m
|
16601
|
+
[1m[35m (15.2ms)[0m DROP TABLE "chapters_assets"
|
16602
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "chapters_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) [0m
|
16603
|
+
[1m[35m (1.9ms)[0m DROP TABLE "rt_tipi_pannello"
|
16604
|
+
[1m[36m (5.8ms)[0m [1mCREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) [0m
|
16605
|
+
[1m[35m (2.2ms)[0m DROP TABLE "rt_tipi_pannello_assets"
|
16606
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "rt_tipi_pannello_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) [0m
|
16607
|
+
[1m[35mSQL (2.0ms)[0m DELETE FROM "books_assets"
|
16608
|
+
[1m[36mSQL (1.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
16609
|
+
[1m[35mSQL (1.6ms)[0m DELETE FROM "books"
|
16610
|
+
Connecting to database specified by database.yml
|
16611
|
+
Connecting to database specified by database.yml
|