citier4 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ class AddPriceToBooks < ActiveRecord::Migration
2
+ def change
3
+ add_column :books, :price, :integer
4
+ reversible do |dir|
5
+ dir.up { create_or_replace_citier_view(::Book) } # ::Book
6
+ end
7
+ end
8
+ end
File without changes
@@ -11,45 +11,46 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150102200786) do
14
+ ActiveRecord::Schema.define(version: 20151219171159) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
18
18
 
19
- create_table "animals", force: true do |t|
19
+ create_table "animals", force: :cascade do |t|
20
20
  t.string "name"
21
21
  t.string "race"
22
22
  t.datetime "created_at"
23
23
  t.datetime "updated_at"
24
24
  end
25
25
 
26
- create_table "bidules", force: true do |t|
26
+ create_table "bidules", force: :cascade do |t|
27
27
  t.string "name"
28
28
  t.datetime "created_at"
29
29
  t.datetime "updated_at"
30
30
  end
31
31
 
32
- create_table "books", force: true do |t|
33
- t.string "author"
34
- t.string "title"
32
+ create_table "books", force: :cascade do |t|
33
+ t.string "author"
34
+ t.string "title"
35
+ t.integer "price"
35
36
  end
36
37
 
37
- create_table "dictionaries", force: true do |t|
38
+ create_table "dictionaries", force: :cascade do |t|
38
39
  t.string "language"
39
40
  end
40
41
 
41
- create_table "fictions", force: true do |t|
42
+ create_table "fictions", force: :cascade do |t|
42
43
  t.text "story"
43
44
  end
44
45
 
45
- create_table "products", force: true do |t|
46
+ create_table "products", force: :cascade do |t|
46
47
  t.string "name"
47
48
  t.string "type"
48
49
  t.datetime "created_at"
49
50
  t.datetime "updated_at"
50
51
  end
51
52
 
52
- create_view "view_books" , " SELECT products.id,\n products.name,\n products.type,\n products.created_at,\n products.updated_at,\n books.author,\n books.title\n FROM products,\n books\n WHERE (products.id = books.id);", :force => true do |v|
53
+ create_view "view_books" , " SELECT products.id,\n products.name,\n products.type,\n products.created_at,\n products.updated_at,\n books.author,\n books.title,\n books.price\n FROM products,\n books\n WHERE (products.id = books.id);", :force => true do |v|
53
54
  v.column :id
54
55
  v.column :name
55
56
  v.column :type
@@ -57,6 +58,7 @@ ActiveRecord::Schema.define(version: 20150102200786) do
57
58
  v.column :updated_at
58
59
  v.column :author
59
60
  v.column :title
61
+ v.column :price
60
62
  end
61
63
 
62
64
  create_view "view_dictionaries" , " SELECT view_books.id,\n view_books.name,\n view_books.type,\n view_books.created_at,\n view_books.updated_at,\n view_books.author,\n view_books.title,\n dictionaries.language\n FROM view_books,\n dictionaries\n WHERE (view_books.id = dictionaries.id);", :force => true do |v|
@@ -3758,3 +3758,880 @@ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `n
3758
3758
   (0.3ms) BEGIN
3759
3759
  SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "UnAuteur"], ["id", 3]]
3760
3760
   (6.1ms) COMMIT
3761
+  (35.5ms)  SELECT table_name, table_type
3762
+ FROM information_schema.tables
3763
+ WHERE table_schema IN ('"$user"','public')
3764
+ AND table_type IN ('BASE TABLE', 'VIEW')
3765
+ 
3766
+  (1.9ms)  SELECT table_name, table_type
3767
+ FROM information_schema.tables
3768
+ WHERE table_schema IN ('"$user"','public')
3769
+ AND table_type IN ('BASE TABLE', 'VIEW')
3770
+ 
3771
+  (2.0ms)  SELECT table_name, table_type
3772
+ FROM information_schema.tables
3773
+ WHERE table_schema IN ('"$user"','public')
3774
+ AND table_type IN ('BASE TABLE', 'VIEW')
3775
+ 
3776
+  (2.2ms)  SELECT table_name, table_type
3777
+ FROM information_schema.tables
3778
+ WHERE table_schema IN ('"$user"','public')
3779
+ AND table_type IN ('BASE TABLE', 'VIEW')
3780
+ 
3781
+  (1.8ms)  SELECT table_name, table_type
3782
+ FROM information_schema.tables
3783
+ WHERE table_schema IN ('"$user"','public')
3784
+ AND table_type IN ('BASE TABLE', 'VIEW')
3785
+ 
3786
+  (1.8ms)  SELECT table_name, table_type
3787
+ FROM information_schema.tables
3788
+ WHERE table_schema IN ('"$user"','public')
3789
+ AND table_type IN ('BASE TABLE', 'VIEW')
3790
+ 
3791
+  (3.8ms)  SELECT table_name, table_type
3792
+ FROM information_schema.tables
3793
+ WHERE table_schema IN ('"$user"','public')
3794
+ AND table_type IN ('BASE TABLE', 'VIEW')
3795
+ 
3796
+  (3.6ms)  SELECT table_name, table_type
3797
+ FROM information_schema.tables
3798
+ WHERE table_schema IN ('"$user"','public')
3799
+ AND table_type IN ('BASE TABLE', 'VIEW')
3800
+ 
3801
+  (0.3ms) BEGIN
3802
+ SQL (21.9ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "toto"], ["created_at", "2015-02-25 09:22:38.740166"], ["updated_at", "2015-02-25 09:22:38.740166"]]
3803
+  (0.7ms) COMMIT
3804
+  (3.8ms)  SELECT table_name, table_type
3805
+ FROM information_schema.tables
3806
+ WHERE table_schema IN ('"$user"','public')
3807
+ AND table_type IN ('BASE TABLE', 'VIEW')
3808
+ 
3809
+  (0.3ms) BEGIN
3810
+ SQL (0.7ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:35:48.065145"], ["updated_at", "2015-02-25 09:35:48.065145"]]
3811
+  (5.9ms) COMMIT
3812
+  (0.1ms) BEGIN
3813
+ SQL (1.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 5]]
3814
+  (0.4ms) COMMIT
3815
+  (3.7ms)  SELECT table_name, table_type
3816
+ FROM information_schema.tables
3817
+ WHERE table_schema IN ('"$user"','public')
3818
+ AND table_type IN ('BASE TABLE', 'VIEW')
3819
+ 
3820
+  (0.2ms) BEGIN
3821
+ SQL (0.6ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:37:25.001702"], ["updated_at", "2015-02-25 09:37:25.001702"]]
3822
+  (5.9ms) COMMIT
3823
+  (0.1ms) BEGIN
3824
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 6]]
3825
+  (0.5ms) COMMIT
3826
+  (3.8ms)  SELECT table_name, table_type
3827
+ FROM information_schema.tables
3828
+ WHERE table_schema IN ('"$user"','public')
3829
+ AND table_type IN ('BASE TABLE', 'VIEW')
3830
+ 
3831
+  (0.3ms) BEGIN
3832
+  (0.2ms) ROLLBACK
3833
+  (0.2ms) BEGIN
3834
+ SQL (0.7ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:42:42.216048"], ["updated_at", "2015-02-25 09:42:42.216048"]]
3835
+  (6.5ms) COMMIT
3836
+  (0.2ms) BEGIN
3837
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 7]]
3838
+  (0.3ms) COMMIT
3839
+  (0.3ms) BEGIN
3840
+ SQL (0.3ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:43:45.453901"], ["updated_at", "2015-02-25 09:43:45.453901"]]
3841
+  (6.3ms) COMMIT
3842
+  (0.3ms) BEGIN
3843
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 8]]
3844
+  (0.4ms) COMMIT
3845
+  (0.2ms) BEGIN
3846
+ SQL (0.4ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:43:54.702327"], ["updated_at", "2015-02-25 09:43:54.702327"]]
3847
+  (6.4ms) COMMIT
3848
+  (0.3ms) BEGIN
3849
+ SQL (0.2ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 9]]
3850
+  (0.4ms) COMMIT
3851
+  (0.2ms) BEGIN
3852
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:44:36.508014"], ["updated_at", "2015-02-25 09:44:36.508014"]]
3853
+  (6.2ms) COMMIT
3854
+  (0.3ms) BEGIN
3855
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 10]]
3856
+  (0.6ms) COMMIT
3857
+  (0.3ms) BEGIN
3858
+ SQL (0.3ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "toto"], ["type", "Book"], ["created_at", "2015-02-25 09:45:23.146498"], ["updated_at", "2015-02-25 09:45:23.146498"]]
3859
+  (5.0ms) COMMIT
3860
+  (0.3ms) BEGIN
3861
+ SQL (0.2ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "laurent"], ["id", 11]]
3862
+  (0.3ms) COMMIT
3863
+  (3.8ms)  SELECT table_name, table_type
3864
+ FROM information_schema.tables
3865
+ WHERE table_schema IN ('"$user"','public')
3866
+ AND table_type IN ('BASE TABLE', 'VIEW')
3867
+ 
3868
+  (0.3ms) BEGIN
3869
+ SQL (0.6ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "bidon"], ["type", "Book"], ["created_at", "2015-02-25 14:33:54.965600"], ["updated_at", "2015-02-25 14:33:54.965600"]]
3870
+  (5.9ms) COMMIT
3871
+  (0.2ms) BEGIN
3872
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "bidule"], ["id", 12]]
3873
+  (0.4ms) COMMIT
3874
+  (3.7ms)  SELECT table_name, table_type
3875
+ FROM information_schema.tables
3876
+ WHERE table_schema IN ('"$user"','public')
3877
+ AND table_type IN ('BASE TABLE', 'VIEW')
3878
+ 
3879
+  (0.2ms) BEGIN
3880
+ SQL (0.8ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "bidon2"], ["type", "Book"], ["created_at", "2015-02-25 17:36:16.276995"], ["updated_at", "2015-02-25 17:36:16.276995"]]
3881
+  (6.0ms) COMMIT
3882
+  (0.2ms) BEGIN
3883
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "bidule"], ["id", 13]]
3884
+  (0.3ms) COMMIT
3885
+  (3.6ms)  SELECT table_name, table_type
3886
+ FROM information_schema.tables
3887
+ WHERE table_schema IN ('"$user"','public')
3888
+ AND table_type IN ('BASE TABLE', 'VIEW')
3889
+ 
3890
+  (3.6ms)  SELECT table_name, table_type
3891
+ FROM information_schema.tables
3892
+ WHERE table_schema IN ('"$user"','public')
3893
+ AND table_type IN ('BASE TABLE', 'VIEW')
3894
+ 
3895
+  (3.8ms)  SELECT table_name, table_type
3896
+ FROM information_schema.tables
3897
+ WHERE table_schema IN ('"$user"','public')
3898
+ AND table_type IN ('BASE TABLE', 'VIEW')
3899
+ 
3900
+  (3.9ms)  SELECT table_name, table_type
3901
+ FROM information_schema.tables
3902
+ WHERE table_schema IN ('"$user"','public')
3903
+ AND table_type IN ('BASE TABLE', 'VIEW')
3904
+ 
3905
+  (4.0ms)  SELECT table_name, table_type
3906
+ FROM information_schema.tables
3907
+ WHERE table_schema IN ('"$user"','public')
3908
+ AND table_type IN ('BASE TABLE', 'VIEW')
3909
+ 
3910
+  (3.7ms)  SELECT table_name, table_type
3911
+ FROM information_schema.tables
3912
+ WHERE table_schema IN ('"$user"','public')
3913
+ AND table_type IN ('BASE TABLE', 'VIEW')
3914
+ 
3915
+  (1.9ms)  SELECT table_name, table_type
3916
+ FROM information_schema.tables
3917
+ WHERE table_schema IN ('"$user"','public')
3918
+ AND table_type IN ('BASE TABLE', 'VIEW')
3919
+ 
3920
+ SQL (2.3ms) DELETE FROM "products"
3921
+  (2.3ms) SELECT table_name, table_type
3922
+ FROM information_schema.tables
3923
+ WHERE table_schema IN ('"$user"','public')
3924
+ AND table_type IN ('BASE TABLE', 'VIEW')
3925
+
3926
+  (3.4ms) SELECT COUNT(*) FROM "view_books" WHERE "view_books"."type" IN ('Book')
3927
+  (0.1ms) BEGIN
3928
+ SQL (0.3ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "UnLivreAvecUnNomSuperCompliqué"], ["type", "Book"], ["created_at", "2015-02-25 22:43:36.870039"], ["updated_at", "2015-02-25 22:43:36.870039"]]
3929
+  (0.8ms) COMMIT
3930
+  (0.1ms) BEGIN
3931
+ SQL (0.8ms) INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "Inconnu"]]
3932
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
3933
+ DETAIL: Key (id)=(1) already exists.
3934
+ : INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
3935
+  (0.1ms) ROLLBACK
3936
+ Book Load (0.8ms) SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book')
3937
+ Product Load (0.5ms) SELECT "products".* FROM "products"
3938
+ Book Load (0.5ms) SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 14]]
3939
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
3940
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3941
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3942
+ Migrating to CreateProducts (20141228200436)
3943
+  (0.2ms) BEGIN
3944
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
3945
+  (16.5ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) 
3946
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
3947
+  (0.5ms) COMMIT
3948
+ Migrating to CreateBooks (20141228200756)
3949
+  (6.3ms) BEGIN
3950
+  (15.2ms) CREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) 
3951
+  (3.0ms) SELECT table_name, table_type
3952
+ FROM information_schema.tables
3953
+ WHERE table_schema IN ('"$user"','public')
3954
+ AND table_type IN ('BASE TABLE', 'VIEW')
3955
+
3956
+  (3.5ms) CREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id
3957
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
3958
+  (0.5ms) COMMIT
3959
+ Migrating to CreateDictionaries (20150101181703)
3960
+  (6.2ms) BEGIN
3961
+  (15.7ms) CREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) 
3962
+  (1.3ms) CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
3963
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181703"]]
3964
+  (0.5ms) COMMIT
3965
+ Migrating to CreateFictions (20150101181916)
3966
+  (6.3ms) BEGIN
3967
+  (16.4ms) CREATE TABLE "fictions" ("id" serial primary key, "story" text)
3968
+  (0.9ms) CREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id
3969
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
3970
+  (0.5ms) COMMIT
3971
+ Migrating to CreateBidules (20150102200342)
3972
+  (11.7ms) BEGIN
3973
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
3974
+  (13.0ms) CREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) 
3975
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
3976
+  (0.4ms) COMMIT
3977
+ Migrating to CreateAnimals (20150102200786)
3978
+  (5.9ms) BEGIN
3979
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
3980
+  (19.3ms) CREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) 
3981
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
3982
+  (0.4ms) COMMIT
3983
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3984
+  (1.6ms)  SELECT table_name, table_type
3985
+ FROM information_schema.tables
3986
+ WHERE table_schema IN ('"$user"','public')
3987
+ AND table_type = 'BASE TABLE'
3988
+ 
3989
+  (0.7ms) SELECT table_name, table_type
3990
+ FROM information_schema.tables
3991
+ WHERE table_schema IN ('"$user"','public')
3992
+ AND table_type = 'VIEW'
3993
+
3994
+  (1.6ms)  SELECT view_definition
3995
+ FROM information_schema.views
3996
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
3997
+ AND table_schema IN ('"$user"','public')
3998
+ AND table_name = 'view_books'
3999
+ 
4000
+  (0.7ms) SELECT view_definition
4001
+ FROM information_schema.views
4002
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4003
+ AND table_schema IN ('"$user"','public')
4004
+ AND table_name = 'view_dictionaries'
4005
+
4006
+  (0.7ms)  SELECT view_definition
4007
+ FROM information_schema.views
4008
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4009
+ AND table_schema IN ('"$user"','public')
4010
+ AND table_name = 'view_fictions'
4011
+ 
4012
+ SQL (0.6ms) DELETE FROM "products"
4013
+  (2.4ms) SELECT table_name, table_type
4014
+ FROM information_schema.tables
4015
+ WHERE table_schema IN ('"$user"','public')
4016
+ AND table_type IN ('BASE TABLE', 'VIEW')
4017
+
4018
+  (0.1ms) BEGIN
4019
+ SQL (0.4ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "UnLivreAvecUnNomSuperCompliqué"], ["type", "Book"], ["created_at", "2015-02-25 22:45:32.656236"], ["updated_at", "2015-02-25 22:45:32.656236"]]
4020
+  (1.1ms) COMMIT
4021
+  (0.1ms) BEGIN
4022
+ SQL (0.5ms) INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "Inconnu"]]
4023
+  (0.4ms) COMMIT
4024
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT 1 [["name", "UnLivreAvecUnNomSuperCompliqué"]]
4025
+ Book Load (0.3ms) SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
4026
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."name" = $1 LIMIT 1 [["name", "UnLivreAvecUnNomSuperCompliqué"]]
4027
+ Book Load (0.6ms) SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
4028
+  (0.2ms) BEGIN
4029
+ Book Load (0.6ms) SELECT "view_books".* FROM "view_books" WHERE "view_books"."type" IN ('Book') AND "view_books"."id" = $1 LIMIT 1 [["id", 1]]
4030
+ SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = $1 [["id", 1]]
4031
+ SQL (0.2ms) DELETE FROM "books" WHERE "books"."id" = $1 [["id", 1]]
4032
+  (3.8ms) COMMIT
4033
+ Product Load (0.4ms) SELECT "products".* FROM "products"
4034
+  (0.5ms) SELECT COUNT(*) FROM "products"
4035
+  (0.8ms) SELECT COUNT(*) FROM "view_books" WHERE "view_books"."type" IN ('Book')
4036
+ Product Load (0.7ms) SELECT "products".* FROM "products"
4037
+  (34.4ms)  SELECT table_name, table_type
4038
+ FROM information_schema.tables
4039
+ WHERE table_schema IN ('"$user"','public')
4040
+ AND table_type IN ('BASE TABLE', 'VIEW')
4041
+ 
4042
+ Product Load (13.0ms) SELECT "products".* FROM "products"
4043
+  (3.8ms) SELECT table_name, table_type
4044
+ FROM information_schema.tables
4045
+ WHERE table_schema IN ('"$user"','public')
4046
+ AND table_type IN ('BASE TABLE', 'VIEW')
4047
+
4048
+  (1.8ms)  SELECT table_name, table_type
4049
+ FROM information_schema.tables
4050
+ WHERE table_schema IN ('"$user"','public')
4051
+ AND table_type IN ('BASE TABLE', 'VIEW')
4052
+ 
4053
+  (0.3ms) BEGIN
4054
+  (0.2ms) ROLLBACK
4055
+  (0.2ms) BEGIN
4056
+  (0.2ms) ROLLBACK
4057
+  (0.2ms) BEGIN
4058
+  (0.3ms) ROLLBACK
4059
+  (0.2ms) BEGIN
4060
+  (0.2ms) ROLLBACK
4061
+  (0.2ms) BEGIN
4062
+ SQL (7.7ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "bidon"], ["type", "Book"], ["created_at", "2015-02-27 08:12:05.905249"], ["updated_at", "2015-02-27 08:12:05.905249"]]
4063
+  (5.7ms) COMMIT
4064
+  (0.3ms) BEGIN
4065
+  (0.4ms) COMMIT
4066
+  (0.3ms) BEGIN
4067
+ SQL (13.0ms) INSERT INTO "books" ("id") VALUES ($1) RETURNING "id" [["id", 2]]
4068
+  (6.3ms) COMMIT
4069
+ SQL (0.9ms) DELETE FROM "products"
4070
+  (2.0ms) SELECT table_name, table_type
4071
+ FROM information_schema.tables
4072
+ WHERE table_schema IN ('"$user"','public')
4073
+ AND table_type IN ('BASE TABLE', 'VIEW')
4074
+
4075
+ SQL (0.5ms) DELETE FROM "products"
4076
+  (2.2ms) SELECT table_name, table_type
4077
+ FROM information_schema.tables
4078
+ WHERE table_schema IN ('"$user"','public')
4079
+ AND table_type IN ('BASE TABLE', 'VIEW')
4080
+
4081
+  (3.3ms)  SELECT table_name, table_type
4082
+ FROM information_schema.tables
4083
+ WHERE table_schema IN ('"$user"','public')
4084
+ AND table_type IN ('BASE TABLE', 'VIEW')
4085
+ 
4086
+  (0.2ms) BEGIN
4087
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 08:33:28.810211"], ["updated_at", "2015-02-27 08:33:28.810211"]]
4088
+  (6.0ms) COMMIT
4089
+  (0.2ms) BEGIN
4090
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 3]]
4091
+  (6.3ms) COMMIT
4092
+  (0.3ms) BEGIN
4093
+ SQL (0.8ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 3]]
4094
+  (0.3ms) COMMIT
4095
+  (36.9ms)  SELECT table_name, table_type
4096
+ FROM information_schema.tables
4097
+ WHERE table_schema IN ('"$user"','public')
4098
+ AND table_type IN ('BASE TABLE', 'VIEW')
4099
+ 
4100
+  (0.4ms) BEGIN
4101
+ SQL (24.3ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 09:57:03.262917"], ["updated_at", "2015-02-27 09:57:03.262917"]]
4102
+  (1.7ms) COMMIT
4103
+  (0.2ms) BEGIN
4104
+ SQL (1.2ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 4]]
4105
+  (0.4ms) COMMIT
4106
+  (0.1ms) BEGIN
4107
+ SQL (1.5ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 4]]
4108
+  (0.4ms) COMMIT
4109
+  (2.3ms)  SELECT table_name, table_type
4110
+ FROM information_schema.tables
4111
+ WHERE table_schema IN ('"$user"','public')
4112
+ AND table_type IN ('BASE TABLE', 'VIEW')
4113
+ 
4114
+  (0.4ms) BEGIN
4115
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 09:57:56.259231"], ["updated_at", "2015-02-27 09:57:56.259231"]]
4116
+  (6.4ms) COMMIT
4117
+  (0.2ms) BEGIN
4118
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 5]]
4119
+  (0.4ms) COMMIT
4120
+  (0.2ms) BEGIN
4121
+ SQL (0.6ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 5]]
4122
+  (0.4ms) COMMIT
4123
+  (1.7ms)  SELECT table_name, table_type
4124
+ FROM information_schema.tables
4125
+ WHERE table_schema IN ('"$user"','public')
4126
+ AND table_type IN ('BASE TABLE', 'VIEW')
4127
+ 
4128
+  (1.8ms)  SELECT table_name, table_type
4129
+ FROM information_schema.tables
4130
+ WHERE table_schema IN ('"$user"','public')
4131
+ AND table_type IN ('BASE TABLE', 'VIEW')
4132
+ 
4133
+  (0.2ms) BEGIN
4134
+ SQL (0.4ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:13:06.841469"], ["updated_at", "2015-02-27 10:13:06.841469"]]
4135
+  (6.3ms) COMMIT
4136
+  (0.4ms) BEGIN
4137
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 6]]
4138
+  (0.4ms) COMMIT
4139
+  (0.2ms) BEGIN
4140
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 6]]
4141
+  (0.4ms) COMMIT
4142
+  (2.4ms)  SELECT table_name, table_type
4143
+ FROM information_schema.tables
4144
+ WHERE table_schema IN ('"$user"','public')
4145
+ AND table_type IN ('BASE TABLE', 'VIEW')
4146
+ 
4147
+  (0.2ms) BEGIN
4148
+ SQL (1.0ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:14:19.790348"], ["updated_at", "2015-02-27 10:14:19.790348"]]
4149
+  (5.8ms) COMMIT
4150
+  (0.2ms) BEGIN
4151
+ SQL (0.6ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 7]]
4152
+  (0.5ms) COMMIT
4153
+  (0.2ms) BEGIN
4154
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 7]]
4155
+  (0.4ms) COMMIT
4156
+  (2.0ms)  SELECT table_name, table_type
4157
+ FROM information_schema.tables
4158
+ WHERE table_schema IN ('"$user"','public')
4159
+ AND table_type IN ('BASE TABLE', 'VIEW')
4160
+ 
4161
+  (0.2ms) BEGIN
4162
+ SQL (0.4ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 10:19:44.758380"], ["updated_at", "2015-02-27 10:19:44.758380"]]
4163
+  (6.0ms) COMMIT
4164
+  (0.2ms) BEGIN
4165
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 8]]
4166
+  (0.4ms) COMMIT
4167
+  (0.2ms) BEGIN
4168
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 8]]
4169
+  (0.3ms) COMMIT
4170
+  (1.9ms)  SELECT table_name, table_type
4171
+ FROM information_schema.tables
4172
+ WHERE table_schema IN ('"$user"','public')
4173
+ AND table_type IN ('BASE TABLE', 'VIEW')
4174
+ 
4175
+  (2.6ms)  SELECT table_name, table_type
4176
+ FROM information_schema.tables
4177
+ WHERE table_schema IN ('"$user"','public')
4178
+ AND table_type IN ('BASE TABLE', 'VIEW')
4179
+ 
4180
+  (1.9ms)  SELECT table_name, table_type
4181
+ FROM information_schema.tables
4182
+ WHERE table_schema IN ('"$user"','public')
4183
+ AND table_type IN ('BASE TABLE', 'VIEW')
4184
+ 
4185
+  (0.3ms) BEGIN
4186
+ PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
4187
+ LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
4188
+ ^
4189
+ : INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
4190
+  (0.2ms) ROLLBACK
4191
+  (0.3ms) BEGIN
4192
+ PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
4193
+ LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
4194
+ ^
4195
+ : INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
4196
+  (0.3ms) ROLLBACK
4197
+  (0.3ms) BEGIN
4198
+ PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
4199
+ LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
4200
+ ^
4201
+ : INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
4202
+  (0.4ms) ROLLBACK
4203
+  (1.8ms)  SELECT table_name, table_type
4204
+ FROM information_schema.tables
4205
+ WHERE table_schema IN ('"$user"','public')
4206
+ AND table_type IN ('BASE TABLE', 'VIEW')
4207
+ 
4208
+  (1.8ms)  SELECT table_name, table_type
4209
+ FROM information_schema.tables
4210
+ WHERE table_schema IN ('"$user"','public')
4211
+ AND table_type IN ('BASE TABLE', 'VIEW')
4212
+ 
4213
+  (0.3ms) BEGIN
4214
+ PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
4215
+ LINE 1: INSERT INTO "products" ("type", "name", "author", "story", "...
4216
+ ^
4217
+ : INSERT INTO "products" ("type", "name", "author", "story", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"
4218
+  (0.3ms) ROLLBACK
4219
+  (0.2ms) BEGIN
4220
+  (0.2ms) ROLLBACK
4221
+  (0.2ms) BEGIN
4222
+ SQL (0.6ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:02:48.709252"], ["updated_at", "2015-02-27 11:02:48.709252"]]
4223
+  (1.0ms) COMMIT
4224
+  (0.2ms) BEGIN
4225
+ PG::UndefinedColumn: ERROR: column "author" of relation "products" does not exist
4226
+ LINE 1: UPDATE "products" SET "type" = $1, "name" = $2, "author" = $...
4227
+ ^
4228
+ : UPDATE "products" SET "type" = $1, "name" = $2, "author" = $3, "story" = $4, "created_at" = $5, "updated_at" = $6 WHERE "products"."id" = $7
4229
+  (0.2ms) ROLLBACK
4230
+  (2.6ms)  SELECT table_name, table_type
4231
+ FROM information_schema.tables
4232
+ WHERE table_schema IN ('"$user"','public')
4233
+ AND table_type IN ('BASE TABLE', 'VIEW')
4234
+ 
4235
+  (0.3ms) BEGIN
4236
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:07:40.048689"], ["updated_at", "2015-02-27 11:07:40.048689"]]
4237
+  (1.3ms) COMMIT
4238
+  (2.1ms)  SELECT table_name, table_type
4239
+ FROM information_schema.tables
4240
+ WHERE table_schema IN ('"$user"','public')
4241
+ AND table_type IN ('BASE TABLE', 'VIEW')
4242
+ 
4243
+  (2.0ms)  SELECT table_name, table_type
4244
+ FROM information_schema.tables
4245
+ WHERE table_schema IN ('"$user"','public')
4246
+ AND table_type IN ('BASE TABLE', 'VIEW')
4247
+ 
4248
+  (1.8ms)  SELECT table_name, table_type
4249
+ FROM information_schema.tables
4250
+ WHERE table_schema IN ('"$user"','public')
4251
+ AND table_type IN ('BASE TABLE', 'VIEW')
4252
+ 
4253
+  (0.4ms) BEGIN
4254
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Necronomicon"], ["type", "Fiction"], ["created_at", "2015-02-27 11:16:04.001692"], ["updated_at", "2015-02-27 11:16:04.001692"]]
4255
+  (1.0ms) COMMIT
4256
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
4257
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4258
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4259
+ Migrating to CreateProducts (20141228200436)
4260
+  (0.1ms) BEGIN
4261
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
4262
+  (22.3ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) 
4263
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
4264
+  (0.4ms) COMMIT
4265
+ Migrating to CreateBooks (20141228200756)
4266
+  (5.6ms) BEGIN
4267
+  (15.6ms) CREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) 
4268
+  (2.5ms) SELECT table_name, table_type
4269
+ FROM information_schema.tables
4270
+ WHERE table_schema IN ('"$user"','public')
4271
+ AND table_type IN ('BASE TABLE', 'VIEW')
4272
+
4273
+  (1.1ms) CREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id
4274
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
4275
+  (0.5ms) COMMIT
4276
+ Migrating to CreateDictionaries (20150101181703)
4277
+  (6.1ms) BEGIN
4278
+  (14.3ms) CREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) 
4279
+  (0.9ms) CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
4280
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181703"]]
4281
+  (0.4ms) COMMIT
4282
+ Migrating to CreateFictions (20150101181916)
4283
+  (6.1ms) BEGIN
4284
+  (14.2ms) CREATE TABLE "fictions" ("id" serial primary key, "story" text)
4285
+  (0.9ms) CREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id
4286
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
4287
+  (0.6ms) COMMIT
4288
+ Migrating to CreateBidules (20150102200342)
4289
+  (5.5ms) BEGIN
4290
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
4291
+  (13.9ms) CREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) 
4292
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
4293
+  (5.4ms) COMMIT
4294
+ Migrating to CreateAnimals (20150102200786)
4295
+  (6.2ms) BEGIN
4296
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
4297
+  (14.9ms) CREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) 
4298
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
4299
+  (0.5ms) COMMIT
4300
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4301
+  (1.1ms)  SELECT table_name, table_type
4302
+ FROM information_schema.tables
4303
+ WHERE table_schema IN ('"$user"','public')
4304
+ AND table_type = 'BASE TABLE'
4305
+ 
4306
+  (0.7ms) SELECT table_name, table_type
4307
+ FROM information_schema.tables
4308
+ WHERE table_schema IN ('"$user"','public')
4309
+ AND table_type = 'VIEW'
4310
+
4311
+  (1.9ms)  SELECT view_definition
4312
+ FROM information_schema.views
4313
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4314
+ AND table_schema IN ('"$user"','public')
4315
+ AND table_name = 'view_books'
4316
+ 
4317
+  (0.8ms) SELECT view_definition
4318
+ FROM information_schema.views
4319
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4320
+ AND table_schema IN ('"$user"','public')
4321
+ AND table_name = 'view_dictionaries'
4322
+
4323
+  (0.7ms)  SELECT view_definition
4324
+ FROM information_schema.views
4325
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4326
+ AND table_schema IN ('"$user"','public')
4327
+ AND table_name = 'view_fictions'
4328
+ 
4329
+  (2.6ms)  SELECT table_name, table_type
4330
+ FROM information_schema.tables
4331
+ WHERE table_schema IN ('"$user"','public')
4332
+ AND table_type IN ('BASE TABLE', 'VIEW')
4333
+ 
4334
+  (3.6ms)  SELECT table_name, table_type
4335
+ FROM information_schema.tables
4336
+ WHERE table_schema IN ('"$user"','public')
4337
+ AND table_type IN ('BASE TABLE', 'VIEW')
4338
+ 
4339
+  (2.0ms)  SELECT table_name, table_type
4340
+ FROM information_schema.tables
4341
+ WHERE table_schema IN ('"$user"','public')
4342
+ AND table_type IN ('BASE TABLE', 'VIEW')
4343
+ 
4344
+  (2.2ms)  SELECT table_name, table_type
4345
+ FROM information_schema.tables
4346
+ WHERE table_schema IN ('"$user"','public')
4347
+ AND table_type IN ('BASE TABLE', 'VIEW')
4348
+ 
4349
+  (2.8ms)  SELECT table_name, table_type
4350
+ FROM information_schema.tables
4351
+ WHERE table_schema IN ('"$user"','public')
4352
+ AND table_type IN ('BASE TABLE', 'VIEW')
4353
+ 
4354
+  (2.2ms)  SELECT table_name, table_type
4355
+ FROM information_schema.tables
4356
+ WHERE table_schema IN ('"$user"','public')
4357
+ AND table_type IN ('BASE TABLE', 'VIEW')
4358
+ 
4359
+  (0.1ms) BEGIN
4360
+ SQL (1.9ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Necronomicon"], ["created_at", "2015-02-27 16:43:05.540504"], ["updated_at", "2015-02-27 16:43:05.540504"]]
4361
+  (1.4ms) COMMIT
4362
+  (0.2ms) BEGIN
4363
+ SQL (0.5ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 1]]
4364
+  (0.3ms) COMMIT
4365
+  (0.3ms) BEGIN
4366
+  (0.4ms) COMMIT
4367
+  (0.3ms) BEGIN
4368
+  (0.3ms) COMMIT
4369
+  (0.3ms) BEGIN
4370
+ SQL (0.4ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 1]]
4371
+  (6.0ms) COMMIT
4372
+  (0.3ms) BEGIN
4373
+ SQL (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Necro"], ["created_at", "2015-02-27 16:47:58.127820"], ["updated_at", "2015-02-27 16:47:58.127820"]]
4374
+  (6.3ms) COMMIT
4375
+  (0.3ms) BEGIN
4376
+ SQL (0.6ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 2]]
4377
+  (0.4ms) COMMIT
4378
+  (0.2ms) BEGIN
4379
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 2]]
4380
+  (0.4ms) COMMIT
4381
+  (2.5ms)  SELECT table_name, table_type
4382
+ FROM information_schema.tables
4383
+ WHERE table_schema IN ('"$user"','public')
4384
+ AND table_type IN ('BASE TABLE', 'VIEW')
4385
+ 
4386
+  (0.2ms) BEGIN
4387
+ SQL (0.8ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "trou"], ["created_at", "2015-02-27 16:52:25.228259"], ["updated_at", "2015-02-27 16:52:25.228259"]]
4388
+  (5.9ms) COMMIT
4389
+  (0.2ms) BEGIN
4390
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 3]]
4391
+  (0.4ms) COMMIT
4392
+  (0.2ms) BEGIN
4393
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 3]]
4394
+  (0.3ms) COMMIT
4395
+  (4.1ms)  SELECT table_name, table_type
4396
+ FROM information_schema.tables
4397
+ WHERE table_schema IN ('"$user"','public')
4398
+ AND table_type IN ('BASE TABLE', 'VIEW')
4399
+ 
4400
+  (4.0ms)  SELECT table_name, table_type
4401
+ FROM information_schema.tables
4402
+ WHERE table_schema IN ('"$user"','public')
4403
+ AND table_type IN ('BASE TABLE', 'VIEW')
4404
+ 
4405
+  (2.6ms)  SELECT table_name, table_type
4406
+ FROM information_schema.tables
4407
+ WHERE table_schema IN ('"$user"','public')
4408
+ AND table_type IN ('BASE TABLE', 'VIEW')
4409
+ 
4410
+  (0.2ms) BEGIN
4411
+ SQL (0.5ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "zoulooupoupou"], ["created_at", "2015-02-27 17:08:03.303677"], ["updated_at", "2015-02-27 17:08:03.303677"]]
4412
+  (5.7ms) COMMIT
4413
+  (0.3ms) BEGIN
4414
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 4]]
4415
+  (0.5ms) COMMIT
4416
+  (0.2ms) BEGIN
4417
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 4]]
4418
+  (0.3ms) COMMIT
4419
+  (2.0ms)  SELECT table_name, table_type
4420
+ FROM information_schema.tables
4421
+ WHERE table_schema IN ('"$user"','public')
4422
+ AND table_type IN ('BASE TABLE', 'VIEW')
4423
+ 
4424
+  (0.3ms) BEGIN
4425
+ SQL (0.7ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "zoro"], ["type", "Fiction"], ["created_at", "2015-02-27 17:13:29.203490"], ["updated_at", "2015-02-27 17:13:29.203490"]]
4426
+  (6.4ms) COMMIT
4427
+  (0.2ms) BEGIN
4428
+ SQL (0.3ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 5]]
4429
+  (0.4ms) COMMIT
4430
+  (0.2ms) BEGIN
4431
+ SQL (0.5ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 5]]
4432
+  (0.5ms) COMMIT
4433
+  (2.8ms)  SELECT table_name, table_type
4434
+ FROM information_schema.tables
4435
+ WHERE table_schema IN ('"$user"','public')
4436
+ AND table_type IN ('BASE TABLE', 'VIEW')
4437
+ 
4438
+  (2.4ms)  SELECT table_name, table_type
4439
+ FROM information_schema.tables
4440
+ WHERE table_schema IN ('"$user"','public')
4441
+ AND table_type IN ('BASE TABLE', 'VIEW')
4442
+ 
4443
+  (2.6ms)  SELECT table_name, table_type
4444
+ FROM information_schema.tables
4445
+ WHERE table_schema IN ('"$user"','public')
4446
+ AND table_type IN ('BASE TABLE', 'VIEW')
4447
+ 
4448
+  (0.2ms) BEGIN
4449
+ SQL (0.6ms) INSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "enfin"], ["created_at", "2015-02-27 17:28:38.700674"], ["updated_at", "2015-02-27 17:28:38.700674"]]
4450
+  (6.5ms) COMMIT
4451
+  (0.2ms) BEGIN
4452
+ SQL (0.4ms) INSERT INTO "books" ("author", "id") VALUES ($1, $2) RETURNING "id" [["author", "H. P. Lovecraft "], ["id", 6]]
4453
+  (0.3ms) COMMIT
4454
+  (0.2ms) BEGIN
4455
+ SQL (0.3ms) INSERT INTO "fictions" ("story", "id") VALUES ($1, $2) RETURNING "id" [["story", "A fictional grimoire appearing in the stories by horror"], ["id", 6]]
4456
+  (0.6ms) COMMIT
4457
+  (1.8ms)  SELECT table_name, table_type
4458
+ FROM information_schema.tables
4459
+ WHERE table_schema IN ('"$user"','public')
4460
+ AND table_type IN ('BASE TABLE', 'VIEW')
4461
+ 
4462
+  (1.8ms)  SELECT table_name, table_type
4463
+ FROM information_schema.tables
4464
+ WHERE table_schema IN ('"$user"','public')
4465
+ AND table_type IN ('BASE TABLE', 'VIEW')
4466
+ 
4467
+  (1.8ms)  SELECT table_name, table_type
4468
+ FROM information_schema.tables
4469
+ WHERE table_schema IN ('"$user"','public')
4470
+ AND table_type IN ('BASE TABLE', 'VIEW')
4471
+ 
4472
+  (1.9ms)  SELECT table_name, table_type
4473
+ FROM information_schema.tables
4474
+ WHERE table_schema IN ('"$user"','public')
4475
+ AND table_type IN ('BASE TABLE', 'VIEW')
4476
+ 
4477
+  (3.1ms)  SELECT table_name, table_type
4478
+ FROM information_schema.tables
4479
+ WHERE table_schema IN ('"$user"','public')
4480
+ AND table_type IN ('BASE TABLE', 'VIEW')
4481
+ 
4482
+  (0.4ms) BEGIN
4483
+ SQL (0.6ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "allo"], ["type", "Fiction"], ["created_at", "2015-02-27 19:38:44.376389"], ["updated_at", "2015-02-27 19:38:44.376389"]]
4484
+  (7.1ms) COMMIT
4485
+  (0.2ms) BEGIN
4486
+ SQL (1.2ms) INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "H. P. Lovecraft "]]
4487
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
4488
+ DETAIL: Key (id)=(1) already exists.
4489
+ : INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
4490
+  (0.3ms) ROLLBACK
4491
+  (0.3ms) BEGIN
4492
+ SQL (0.5ms) INSERT INTO "products" ("name", "type", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "allododo"], ["type", "Fiction"], ["created_at", "2015-02-27 19:39:01.979169"], ["updated_at", "2015-02-27 19:39:01.979169"]]
4493
+  (5.3ms) COMMIT
4494
+  (0.5ms) BEGIN
4495
+ SQL (0.8ms) INSERT INTO "books" ("author") VALUES ($1) RETURNING "id" [["author", "H. P. Lovecraft "]]
4496
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "books_pkey"
4497
+ DETAIL: Key (id)=(2) already exists.
4498
+ : INSERT INTO "books" ("author") VALUES ($1) RETURNING "id"
4499
+  (0.2ms) ROLLBACK
4500
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
4501
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4502
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4503
+ Migrating to CreateProducts (20141228200436)
4504
+  (0.2ms) BEGIN
4505
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20141228200436_create_products.rb:7)
4506
+  (3.4ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "type" character varying, "created_at" timestamp, "updated_at" timestamp) 
4507
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200436"]]
4508
+  (0.5ms) COMMIT
4509
+ Migrating to CreateBooks (20141228200756)
4510
+  (0.3ms) BEGIN
4511
+  (3.1ms) CREATE TABLE "books" ("id" serial primary key, "author" character varying, "title" character varying) 
4512
+  (3.8ms) SELECT table_name, table_type
4513
+ FROM information_schema.tables
4514
+ WHERE table_schema IN ('"$user"','public')
4515
+ AND table_type IN ('BASE TABLE', 'VIEW')
4516
+
4517
+  (1.3ms) CREATE VIEW "view_books" ("id", "name", "type", "created_at", "updated_at", "author", "title") AS SELECT products.id, name,type,created_at,updated_at,author,title FROM products, books WHERE products.id = books.id
4518
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141228200756"]]
4519
+  (0.6ms) COMMIT
4520
+ Migrating to CreateDictionaries (20150101181703)
4521
+  (0.3ms) BEGIN
4522
+  (3.0ms) CREATE TABLE "dictionaries" ("id" serial primary key, "language" character varying) 
4523
+  (1.4ms) CREATE VIEW "view_dictionaries" ("id", "name", "type", "created_at", "updated_at", "author", "title", "language") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,language FROM view_books, dictionaries WHERE view_books.id = dictionaries.id
4524
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181703"]]
4525
+  (0.5ms) COMMIT
4526
+ Migrating to CreateFictions (20150101181916)
4527
+  (0.3ms) BEGIN
4528
+  (2.8ms) CREATE TABLE "fictions" ("id" serial primary key, "story" text)
4529
+  (1.5ms) CREATE VIEW "view_fictions" ("id", "name", "type", "created_at", "updated_at", "author", "title", "story") AS SELECT view_books.id, name,type,created_at,updated_at,author,title,story FROM view_books, fictions WHERE view_books.id = fictions.id
4530
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150101181916"]]
4531
+  (0.5ms) COMMIT
4532
+ Migrating to CreateBidules (20150102200342)
4533
+  (0.3ms) BEGIN
4534
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200342_create_bidules.rb:6)
4535
+  (6.8ms) CREATE TABLE "bidules" ("id" serial primary key, "name" character varying, "created_at" timestamp, "updated_at" timestamp) 
4536
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200342"]]
4537
+  (0.4ms) COMMIT
4538
+ Migrating to CreateAnimals (20150102200786)
4539
+  (0.4ms) BEGIN
4540
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/laurent/Desktop/code/citier4/test/dummy/db/migrate/20150102200786_create_animals.rb:7)
4541
+  (2.5ms) CREATE TABLE "animals" ("id" serial primary key, "name" character varying, "race" character varying, "created_at" timestamp, "updated_at" timestamp) 
4542
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150102200786"]]
4543
+  (0.5ms) COMMIT
4544
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4545
+  (1.9ms)  SELECT table_name, table_type
4546
+ FROM information_schema.tables
4547
+ WHERE table_schema IN ('"$user"','public')
4548
+ AND table_type = 'BASE TABLE'
4549
+ 
4550
+  (0.8ms) SELECT table_name, table_type
4551
+ FROM information_schema.tables
4552
+ WHERE table_schema IN ('"$user"','public')
4553
+ AND table_type = 'VIEW'
4554
+
4555
+  (1.7ms)  SELECT view_definition
4556
+ FROM information_schema.views
4557
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4558
+ AND table_schema IN ('"$user"','public')
4559
+ AND table_name = 'view_books'
4560
+ 
4561
+  (1.1ms) SELECT view_definition
4562
+ FROM information_schema.views
4563
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4564
+ AND table_schema IN ('"$user"','public')
4565
+ AND table_name = 'view_dictionaries'
4566
+
4567
+  (1.0ms)  SELECT view_definition
4568
+ FROM information_schema.views
4569
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4570
+ AND table_schema IN ('"$user"','public')
4571
+ AND table_name = 'view_fictions'
4572
+ 
4573
+  (2.6ms)  SELECT table_name, table_type
4574
+ FROM information_schema.tables
4575
+ WHERE table_schema IN ('"$user"','public')
4576
+ AND table_type IN ('BASE TABLE', 'VIEW')
4577
+ 
4578
+  (13.6ms)  SELECT table_name, table_type
4579
+ FROM information_schema.tables
4580
+ WHERE table_schema IN ('"$user"','public')
4581
+ AND table_type IN ('BASE TABLE', 'VIEW')
4582
+ 
4583
+  (4.1ms)  SELECT table_name, table_type
4584
+ FROM information_schema.tables
4585
+ WHERE table_schema IN ('"$user"','public')
4586
+ AND table_type IN ('BASE TABLE', 'VIEW')
4587
+ 
4588
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
4589
+ Migrating to AddPriceToBooks (20151219171159)
4590
+  (0.1ms) BEGIN
4591
+  (0.1ms) ROLLBACK
4592
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4593
+ Migrating to AddPriceToBooks (20151219171159)
4594
+  (0.1ms) BEGIN
4595
+  (5.6ms) ALTER TABLE "books" ADD "price" integer
4596
+  (0.2ms) ROLLBACK
4597
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
4598
+ Migrating to AddPriceToBooks (20151219171159)
4599
+  (0.1ms) BEGIN
4600
+  (0.6ms) ALTER TABLE "books" ADD "price" integer
4601
+  (7.6ms) CREATE OR REPLACE VIEW "view_books" AS SELECT products.id, name,type,created_at,updated_at,author,title,price FROM products, books WHERE products.id = books.id
4602
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151219171159"]]
4603
+  (0.7ms) COMMIT
4604
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4605
+  (8.6ms) SELECT table_name, table_type
4606
+ FROM information_schema.tables
4607
+ WHERE table_schema IN ('"$user"','public')
4608
+ AND table_type = 'BASE TABLE'
4609
+
4610
+  (0.7ms)  SELECT table_name, table_type
4611
+ FROM information_schema.tables
4612
+ WHERE table_schema IN ('"$user"','public')
4613
+ AND table_type = 'VIEW'
4614
+ 
4615
+  (4.5ms) SELECT view_definition
4616
+ FROM information_schema.views
4617
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4618
+ AND table_schema IN ('"$user"','public')
4619
+ AND table_name = 'view_books'
4620
+
4621
+  (0.9ms)  SELECT view_definition
4622
+ FROM information_schema.views
4623
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4624
+ AND table_schema IN ('"$user"','public')
4625
+ AND table_name = 'view_dictionaries'
4626
+ 
4627
+  (0.7ms) SELECT view_definition
4628
+ FROM information_schema.views
4629
+ WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name)
4630
+ AND table_schema IN ('"$user"','public')
4631
+ AND table_name = 'view_fictions'
4632
+
4633
+  (3.8ms)  SELECT table_name, table_type
4634
+ FROM information_schema.tables
4635
+ WHERE table_schema IN ('"$user"','public')
4636
+ AND table_type IN ('BASE TABLE', 'VIEW')
4637
+