shareable_models 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +661 -0
  3. data/README.md +123 -0
  4. data/Rakefile +25 -0
  5. data/app/models/share_model.rb +18 -0
  6. data/lib/shareable_models/engine.rb +13 -0
  7. data/lib/shareable_models/models/shareable.rb +149 -0
  8. data/lib/shareable_models/models/sharer.rb +232 -0
  9. data/lib/shareable_models/share.rb +50 -0
  10. data/lib/shareable_models/version.rb +7 -0
  11. data/lib/shareable_models.rb +15 -0
  12. data/spec/dummy/Rakefile +3 -0
  13. data/spec/dummy/app/models/resource.rb +8 -0
  14. data/spec/dummy/app/models/user.rb +8 -0
  15. data/spec/dummy/config/application.rb +17 -0
  16. data/spec/dummy/config/boot.rb +5 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/test.rb +42 -0
  20. data/spec/dummy/config/secrets.yml +3 -0
  21. data/spec/dummy/config.ru +4 -0
  22. data/spec/dummy/db/development.sqlite3 +0 -0
  23. data/spec/dummy/db/migrate/20150831110800_create_users.rb +8 -0
  24. data/spec/dummy/db/migrate/20150831110900_create_resources.rb +9 -0
  25. data/spec/dummy/db/schema.rb +41 -0
  26. data/spec/dummy/db/test.sqlite3 +0 -0
  27. data/spec/dummy/log/development.log +750 -0
  28. data/spec/dummy/log/test.log +3476 -0
  29. data/spec/dummy/tmp/cache/assets/CC1/7E0/sprockets%2F90700621d32c3e2ae2a4f912a72253ab +0 -0
  30. data/spec/dummy/tmp/cache/assets/CCF/6B0/sprockets%2Fa4652cd2ae14bbb5631a5a6480584905 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D1C/290/sprockets%2Fe7f8e6b08f4ae6b9d49245564016ad27 +0 -0
  32. data/spec/dummy/tmp/cache/assets/D22/3A0/sprockets%2F3810c34c6ed797768acf9533ac9f086c +0 -0
  33. data/spec/dummy/tmp/cache/assets/D40/C10/sprockets%2F13484019fee8aed93d4d7f0342c0fa66 +0 -0
  34. data/spec/dummy/tmp/cache/assets/D6C/9B0/sprockets%2F49fc1144e2a91d5a71afc8da6d16387b +0 -0
  35. data/spec/dummy/tmp/cache/assets/DFD/6A0/sprockets%2Fa3e950d0cbe582637af2dd8caec45ed6 +0 -0
  36. data/spec/dummy/tmp/cache/assets/EEE/C40/sprockets%2Fb9ca5bee4dfcaa86005ef95ffcca5edb +0 -0
  37. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-KhweS4Wy6LONwXNAAX21MuCb6S5pmcc2At-PRZTnVQ.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2E0BHjS9ga5CVF8p1i0BD342dTagEy6vpdptNnz4yi0.cache +1 -0
  39. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2SiJB6jwY0ykyL_L-2XcQS_URsqxH2jewKoEcaXdRQI.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2b4LnUroZnwjtmAZ9wAlYXERumGQqZ06CtgLLqLlFZ4.cache +3 -0
  41. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/4yzlzceZQUxV0k8KLBaMF73Bn_2-WuesKO0HeG3c7TI.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/57y6b0y31Rr9fh-AS-C-53-Pi2yM7ckkgwYIQeDIvu8.cache +3 -0
  43. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/5BpxDBRXPSEVa8E4oyZEZUcbmyodKDh45wQLjs9j7LA.cache +3 -0
  44. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/6ZWgaX4_0TmoMClNlDesNKcO2HO-goRDGx5iocHbsKo.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7F6McBtYiHW6rgiNy0YCvNTPhfMIOUrq7tsUI5xult8.cache +0 -0
  46. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7w0mCgW__e7l2wA7VXo4H1RR91pDMz1nJLnqNtCqGvo.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8h7VuyG1HXfABXa1B4--Oi7NfJQvchxYp4XzbT-8aWA.cache +0 -0
  48. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/BRS6CEJIYcJNLwfTJZCdYoBa9bJKVzo4o2X9PlbCDyw.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/CV97-tikdhGY51qhiE8LIBXJPysB-0urwrF9u7wOgQA.cache +3 -0
  50. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/E3jkQYtPcnSLkXBBARnRBrW1lTIIVrHyTHO2s689urA.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/EKftD-LyK0JTxeLPzIiA90IkUlw-Rfu8hf1K2kIqJpE.cache +2 -0
  52. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/F4fl2U72q21ysGgeNZOyLkVCfw2dvQPjoEghki_D_8A.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/F6RTFgWsLUC52NYLMkg2FeNKjgEZhSQS5NV1N3T0rGw.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/IPsZefXeGnBC1-g2_BOJHuaCBLP6E60ISZQvjOn2QGc.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/J0CARfIsAx4nD1Pk3q1NhG9xCHPOwGj9PaGu8z-ah1g.cache +3 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Jaayipvdnp-lwqhyJiWdoGDwz5czFOMZLwducjDmfHc.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/K5wHnruZLsDmlCHhkWMCagLWPKPM5bxwB2dv037yO5o.cache +1 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/KgWn-QmwEYBvpqByQM41ifUzsmOl40LnAJrCoq_oZcQ.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/LAGHT0mMgGhdBGTKU8fpHrmHSQmt5fIoHTTi4kIOUJw.cache +2 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/T3dERBPkMEnJr8fvShtPBsFScRkir0lzJZQkpvrrct0.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UTAd4qlYa57uaORsIWcp6VqcAUkRzixYzIGoEFCvCrY.cache +3 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UoWufV0QdgwAuVnwDXNWOQfgjGN6U7KnO2_2nXC5gHg.cache +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/WpToyjdG3xfOFtl4HJYTpy4_w0U40f7qQWUm7d2SDxg.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/XwozjE91sFB4cQGoJUgr2jV1ZuRlvN_HTWgpclrD59A.cache +3 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/YAzUmPkKnALIIJE_0Meb0N5qTlBvVE1ront_B8yecfo.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Yuxa44Ctnn_uPp1nr47NdNwltrmTEp0PleFL3ylXbtM.cache +4 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZEUypIim5xuBK679jyb340c39nHQ3EvcgqbmeiHlT0c.cache +2 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZQf7Hy4n2V3c-98b9kqTrZAcw3B2TDRF3IKPm9I7VjY.cache +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_SIN6dUlHiJyeUSpOPWAgfLfMrtjGlZgx8ZLEbkjLuQ.cache +1 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_TUGtF7Vi9blFNr3awt9kgCoid35NdmY8hSHmxuaWbg.cache +2 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_eb4NkdcbQR63aZySRq7Yv5_w_JReWqG2Q5mYA5u62s.cache +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/bPiSNDFYlW5YDua0D-fC4uPRV8hYABbCor092KHNzHM.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/d3_09TJ2Uoh7sdjvHWw4jPVF0bObKu065NmgG-EIWcA.cache +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/dQTSoOSXec5z_sf_i4UrehHxFRAn4HbRvfh8mUEK2ME.cache +1 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/fVIC-zRTWj6S5SLH_vJQJY-ny5le0IaRQda1YLQQr68.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/hpNHCD7sn3wufa6PLUdFP95AS8nwrAaL_b9K4X9_eCE.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/huDMU1soBHMNsbUDXnTPbLtqvAEYPe6E-tLL9phYOBY.cache +2 -0
  78. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/i43TdJOVKXtyejasCbHJP4U34FcJ5siCLFWpnPWxxU4.cache +1 -0
  79. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/i4gUJwKC59hdrcb7ZaO09fNtKexVsb67-y3MZ7twsyI.cache +2 -0
  80. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/iynGcjYbH69ZuxdS02RrsK2y33uPjFHCrYHRxxNVn_k.cache +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/jR1PEBCdtdy135gPG-zLQDg25XQDP9eDBew7pmhz34k.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/jvNKAnuW3TSUu3LxRcqdtmSHgoGiukm1onfXqD6glQA.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/kOBlorvGjGDVFhapT1HrAw48XziyeSqexuiKpVhDMac.cache +1 -0
  84. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/mS-IpVGnBSf2F0bGZ7OPpXNCcNMtHmxm7TI1hHVlvps.cache +2 -0
  85. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pKsozyUJjXN2tIwiCbkGt9AzwLwdpHCYC1Cib-9GBIo.cache +3 -0
  86. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pP2ApxUxxz-JMscfDHnlZ4Hq4DybYrG_9B4npoDMGAE.cache +2 -0
  87. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/r9dDy892QJeXi_CLvyTWZvGA9idLCbq9X0lnwxr9RZQ.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/rLeviNgrP2-MqSDlwBdtz3ciY9n32a5oY9NY3iQupsg.cache +1 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/rf04rP-66AEEH942fvU_IcXRtrpw1_xbvnaxHD2wZGA.cache +2 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/uSWRYxEuSTYl_g1MvbE90G-h747P1dyWDCSZY0z1yzA.cache +2 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/uifNaYvk6KYC76GaHQ9muL_ObOmw4C_CSl9lzOUfnDE.cache +3 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yOVPU3Y8NJQjJYfkK-l7I_DPfd3T4mIccYc6gY6ODBQ.cache +1 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yZA3xwYBnfhABCzMVYKNfJMWpJg4HEovQnr5t48Yrf0.cache +1 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/y_XqYDfeQ0fehcC3FNz-qYXXcwOxtSDfsJX1nStC1qU.cache +1 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/z_w2fR4GzVyUeMzrOEZKQSykA7SSjpdpLtlBgXEgcUA.cache +5 -0
  96. data/spec/fixtures/resources.yml +14 -0
  97. data/spec/fixtures/share_models.yml +8 -0
  98. data/spec/fixtures/users.yml +11 -0
  99. data/spec/models/share_model_spec.rb +148 -0
  100. data/spec/spec_helper.rb +20 -0
  101. metadata +303 -0
@@ -0,0 +1,750 @@
1
+  (9.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
4
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
5
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
6
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.1ms) SELECT version FROM "schema_migrations"
8
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
9
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
10
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
11
+  (1.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
12
+  (0.1ms) select sqlite_version(*)
13
+  (1.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
14
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
15
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
16
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
+  (0.1ms) SELECT version FROM "schema_migrations"
18
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
19
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
20
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
21
+  (8.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
22
+  (0.1ms) select sqlite_version(*)
23
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
24
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
25
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
26
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
27
+  (0.1ms) SELECT version FROM "schema_migrations"
28
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
29
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
30
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
31
+  (8.5ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
32
+  (0.1ms) select sqlite_version(*)
33
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
34
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
35
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
36
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
37
+  (0.1ms) SELECT version FROM "schema_migrations"
38
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
39
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
40
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
41
+  (1.0ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
42
+  (0.1ms) select sqlite_version(*)
43
+  (1.2ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
44
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
45
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
46
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
49
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
50
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
51
+  (8.3ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
52
+  (0.1ms) select sqlite_version(*)
53
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
54
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
55
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
56
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
57
+  (0.2ms) SELECT version FROM "schema_migrations"
58
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
59
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
60
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
61
+  (8.5ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
62
+  (0.1ms) select sqlite_version(*)
63
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
64
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
65
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
66
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
67
+  (0.1ms) SELECT version FROM "schema_migrations"
68
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
69
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
70
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
71
+  (8.3ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
72
+  (0.1ms) select sqlite_version(*)
73
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
74
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
75
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
76
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
77
+  (0.1ms) SELECT version FROM "schema_migrations"
78
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
79
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
80
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
81
+  (8.7ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
82
+  (0.1ms) select sqlite_version(*)
83
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
84
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
85
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
86
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
87
+  (0.1ms) SELECT version FROM "schema_migrations"
88
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
89
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
90
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
91
+  (9.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
92
+  (0.1ms) select sqlite_version(*)
93
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
94
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
95
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
96
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
97
+  (0.1ms) SELECT version FROM "schema_migrations"
98
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
99
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
100
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
101
+  (1.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
102
+  (0.1ms) select sqlite_version(*)
103
+  (1.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
104
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
105
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
106
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
107
+  (0.1ms) SELECT version FROM "schema_migrations"
108
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
109
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
110
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
111
+  (8.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
112
+  (0.1ms) select sqlite_version(*)
113
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
114
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
115
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
116
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
117
+  (0.1ms) SELECT version FROM "schema_migrations"
118
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
119
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
120
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
121
+  (9.0ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
122
+  (0.1ms) select sqlite_version(*)
123
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
124
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
125
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
126
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
127
+  (0.1ms) SELECT version FROM "schema_migrations"
128
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
129
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
130
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
131
+  (8.7ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
132
+  (0.1ms) select sqlite_version(*)
133
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
134
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
135
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
136
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
137
+  (0.1ms) SELECT version FROM "schema_migrations"
138
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
139
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
140
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
141
+  (9.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
142
+  (0.1ms) select sqlite_version(*)
143
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
144
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
145
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
146
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
147
+  (0.1ms) SELECT version FROM "schema_migrations"
148
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
149
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
150
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
151
+  (9.8ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
152
+  (0.1ms) select sqlite_version(*)
153
+  (8.4ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
154
+  (1.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
155
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
156
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
157
+  (0.1ms) SELECT version FROM "schema_migrations"
158
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
159
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
160
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
161
+  (8.5ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
162
+  (0.1ms) select sqlite_version(*)
163
+  (1.2ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
164
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
165
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
166
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
167
+  (0.1ms) SELECT version FROM "schema_migrations"
168
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
169
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
170
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
171
+  (8.5ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
172
+  (0.1ms) select sqlite_version(*)
173
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
174
+  (1.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
175
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
176
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
177
+  (0.1ms) SELECT version FROM "schema_migrations"
178
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
179
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
180
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
181
+  (9.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
182
+  (0.1ms) select sqlite_version(*)
183
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
184
+  (1.0ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
185
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
186
+  (0.1ms) SELECT sql
187
+ FROM sqlite_master
188
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
189
+ UNION ALL
190
+ SELECT sql
191
+ FROM sqlite_temp_master
192
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
193
+
194
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
195
+  (0.1ms) SELECT sql
196
+ FROM sqlite_master
197
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
198
+ UNION ALL
199
+ SELECT sql
200
+ FROM sqlite_temp_master
201
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
202
+
203
+  (0.1ms)  SELECT sql
204
+ FROM sqlite_master
205
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
206
+ UNION ALL
207
+ SELECT sql
208
+ FROM sqlite_temp_master
209
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
210
+ 
211
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
212
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
213
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
214
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
215
+  (0.1ms) SELECT version FROM "schema_migrations"
216
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
217
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
218
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
219
+  (8.3ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
220
+  (0.1ms) select sqlite_version(*)
221
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
222
+  (0.9ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
223
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
224
+  (0.1ms) SELECT sql
225
+ FROM sqlite_master
226
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
227
+ UNION ALL
228
+ SELECT sql
229
+ FROM sqlite_temp_master
230
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
231
+
232
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
233
+  (0.1ms) SELECT sql
234
+ FROM sqlite_master
235
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
236
+ UNION ALL
237
+ SELECT sql
238
+ FROM sqlite_temp_master
239
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
240
+
241
+  (0.1ms)  SELECT sql
242
+ FROM sqlite_master
243
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
244
+ UNION ALL
245
+ SELECT sql
246
+ FROM sqlite_temp_master
247
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
248
+ 
249
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
250
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
251
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
252
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
253
+  (0.1ms) SELECT version FROM "schema_migrations"
254
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
255
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
256
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
257
+  (9.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
258
+  (0.1ms) select sqlite_version(*)
259
+  (0.8ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
260
+  (0.8ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
261
+  (0.7ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
262
+  (0.1ms) SELECT sql
263
+ FROM sqlite_master
264
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
265
+ UNION ALL
266
+ SELECT sql
267
+ FROM sqlite_temp_master
268
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
269
+
270
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
271
+  (0.1ms) SELECT sql
272
+ FROM sqlite_master
273
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
274
+ UNION ALL
275
+ SELECT sql
276
+ FROM sqlite_temp_master
277
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
278
+
279
+  (0.1ms)  SELECT sql
280
+ FROM sqlite_master
281
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
282
+ UNION ALL
283
+ SELECT sql
284
+ FROM sqlite_temp_master
285
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
286
+ 
287
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
288
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
289
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
290
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
291
+  (0.1ms) SELECT version FROM "schema_migrations"
292
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
293
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
294
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
295
+  (1.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
296
+  (0.1ms) select sqlite_version(*)
297
+  (0.8ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
298
+  (0.8ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
299
+  (0.8ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
300
+  (0.1ms) SELECT sql
301
+ FROM sqlite_master
302
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
303
+ UNION ALL
304
+ SELECT sql
305
+ FROM sqlite_temp_master
306
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
307
+
308
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
309
+  (0.1ms) SELECT sql
310
+ FROM sqlite_master
311
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
312
+ UNION ALL
313
+ SELECT sql
314
+ FROM sqlite_temp_master
315
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
316
+
317
+  (0.1ms)  SELECT sql
318
+ FROM sqlite_master
319
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
320
+ UNION ALL
321
+ SELECT sql
322
+ FROM sqlite_temp_master
323
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
324
+ 
325
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
326
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
327
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
328
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
329
+  (0.1ms) SELECT version FROM "schema_migrations"
330
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
331
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
332
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
333
+  (9.1ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
334
+  (0.1ms) select sqlite_version(*)
335
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
336
+  (0.8ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
337
+  (0.8ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
338
+  (0.1ms) SELECT sql
339
+ FROM sqlite_master
340
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
341
+ UNION ALL
342
+ SELECT sql
343
+ FROM sqlite_temp_master
344
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
345
+
346
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
347
+  (0.1ms) SELECT sql
348
+ FROM sqlite_master
349
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
350
+ UNION ALL
351
+ SELECT sql
352
+ FROM sqlite_temp_master
353
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
354
+
355
+  (0.1ms)  SELECT sql
356
+ FROM sqlite_master
357
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
358
+ UNION ALL
359
+ SELECT sql
360
+ FROM sqlite_temp_master
361
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
362
+ 
363
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
364
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
365
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
366
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
367
+  (0.2ms) SELECT version FROM "schema_migrations"
368
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
369
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
370
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
371
+  (9.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
372
+  (0.2ms) select sqlite_version(*)
373
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
374
+  (1.0ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
375
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
376
+  (0.2ms) SELECT sql
377
+ FROM sqlite_master
378
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
379
+ UNION ALL
380
+ SELECT sql
381
+ FROM sqlite_temp_master
382
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
383
+
384
+  (1.0ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
385
+  (0.1ms) SELECT sql
386
+ FROM sqlite_master
387
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
388
+ UNION ALL
389
+ SELECT sql
390
+ FROM sqlite_temp_master
391
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
392
+
393
+  (0.1ms)  SELECT sql
394
+ FROM sqlite_master
395
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
396
+ UNION ALL
397
+ SELECT sql
398
+ FROM sqlite_temp_master
399
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
400
+ 
401
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
402
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
403
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
404
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
405
+  (0.1ms) SELECT version FROM "schema_migrations"
406
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
407
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
408
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
409
+  (8.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
410
+  (0.1ms) select sqlite_version(*)
411
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
412
+  (0.8ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
413
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
414
+  (0.1ms) SELECT sql
415
+ FROM sqlite_master
416
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
417
+ UNION ALL
418
+ SELECT sql
419
+ FROM sqlite_temp_master
420
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
421
+
422
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
423
+  (0.1ms) SELECT sql
424
+ FROM sqlite_master
425
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
426
+ UNION ALL
427
+ SELECT sql
428
+ FROM sqlite_temp_master
429
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
430
+
431
+  (0.1ms)  SELECT sql
432
+ FROM sqlite_master
433
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
434
+ UNION ALL
435
+ SELECT sql
436
+ FROM sqlite_temp_master
437
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
438
+ 
439
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
440
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
441
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
442
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
443
+  (0.1ms) SELECT version FROM "schema_migrations"
444
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
445
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
446
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
447
+  (9.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
448
+  (0.1ms) select sqlite_version(*)
449
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
450
+  (0.9ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
451
+  (1.0ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
452
+  (0.1ms) SELECT sql
453
+ FROM sqlite_master
454
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
455
+ UNION ALL
456
+ SELECT sql
457
+ FROM sqlite_temp_master
458
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
459
+
460
+  (1.0ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
461
+  (0.1ms) SELECT sql
462
+ FROM sqlite_master
463
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
464
+ UNION ALL
465
+ SELECT sql
466
+ FROM sqlite_temp_master
467
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
468
+
469
+  (0.1ms)  SELECT sql
470
+ FROM sqlite_master
471
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
472
+ UNION ALL
473
+ SELECT sql
474
+ FROM sqlite_temp_master
475
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
476
+ 
477
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
478
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
479
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
480
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
481
+  (0.1ms) SELECT version FROM "schema_migrations"
482
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
483
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
484
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
485
+  (9.0ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
486
+  (0.1ms) select sqlite_version(*)
487
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
488
+  (0.9ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
489
+  (0.8ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
490
+  (0.1ms) SELECT sql
491
+ FROM sqlite_master
492
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
493
+ UNION ALL
494
+ SELECT sql
495
+ FROM sqlite_temp_master
496
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
497
+
498
+  (1.0ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
499
+  (0.1ms) SELECT sql
500
+ FROM sqlite_master
501
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
502
+ UNION ALL
503
+ SELECT sql
504
+ FROM sqlite_temp_master
505
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
506
+
507
+  (0.1ms)  SELECT sql
508
+ FROM sqlite_master
509
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
510
+ UNION ALL
511
+ SELECT sql
512
+ FROM sqlite_temp_master
513
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
514
+ 
515
+  (1.0ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
516
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
517
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
518
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
519
+  (0.1ms) SELECT version FROM "schema_migrations"
520
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
521
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
522
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
523
+  (9.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
524
+  (0.1ms) select sqlite_version(*)
525
+  (1.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
526
+  (1.1ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
527
+  (1.1ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
528
+  (0.2ms) SELECT sql
529
+ FROM sqlite_master
530
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
531
+ UNION ALL
532
+ SELECT sql
533
+ FROM sqlite_temp_master
534
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
535
+
536
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
537
+  (0.1ms) SELECT sql
538
+ FROM sqlite_master
539
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
540
+ UNION ALL
541
+ SELECT sql
542
+ FROM sqlite_temp_master
543
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
544
+
545
+  (0.1ms)  SELECT sql
546
+ FROM sqlite_master
547
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
548
+ UNION ALL
549
+ SELECT sql
550
+ FROM sqlite_temp_master
551
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
552
+ 
553
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
554
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
555
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
556
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
557
+  (0.1ms) SELECT version FROM "schema_migrations"
558
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
559
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
560
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
561
+  (8.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
562
+  (0.1ms) select sqlite_version(*)
563
+  (1.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
564
+  (1.0ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
565
+  (0.8ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
566
+  (0.1ms) SELECT sql
567
+ FROM sqlite_master
568
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
569
+ UNION ALL
570
+ SELECT sql
571
+ FROM sqlite_temp_master
572
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
573
+
574
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
575
+  (0.1ms) SELECT sql
576
+ FROM sqlite_master
577
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
578
+ UNION ALL
579
+ SELECT sql
580
+ FROM sqlite_temp_master
581
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
582
+
583
+  (0.1ms)  SELECT sql
584
+ FROM sqlite_master
585
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
586
+ UNION ALL
587
+ SELECT sql
588
+ FROM sqlite_temp_master
589
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
590
+ 
591
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
592
+  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
593
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
594
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
595
+  (0.1ms) SELECT version FROM "schema_migrations"
596
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
597
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
598
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
599
+  (9.2ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
600
+  (0.1ms) select sqlite_version(*)
601
+  (0.9ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
602
+  (0.8ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
603
+  (0.8ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
604
+  (0.1ms) SELECT sql
605
+ FROM sqlite_master
606
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
607
+ UNION ALL
608
+ SELECT sql
609
+ FROM sqlite_temp_master
610
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
611
+
612
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
613
+  (0.1ms) SELECT sql
614
+ FROM sqlite_master
615
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
616
+ UNION ALL
617
+ SELECT sql
618
+ FROM sqlite_temp_master
619
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
620
+
621
+  (0.1ms)  SELECT sql
622
+ FROM sqlite_master
623
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
624
+ UNION ALL
625
+ SELECT sql
626
+ FROM sqlite_temp_master
627
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
628
+ 
629
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
630
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
631
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
632
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
633
+  (0.1ms) SELECT version FROM "schema_migrations"
634
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
635
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
636
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
637
+  (9.0ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
638
+  (0.1ms) select sqlite_version(*)
639
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
640
+  (0.9ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
641
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
642
+  (0.1ms) SELECT sql
643
+ FROM sqlite_master
644
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
645
+ UNION ALL
646
+ SELECT sql
647
+ FROM sqlite_temp_master
648
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
649
+
650
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
651
+  (0.1ms) SELECT sql
652
+ FROM sqlite_master
653
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
654
+ UNION ALL
655
+ SELECT sql
656
+ FROM sqlite_temp_master
657
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
658
+
659
+  (0.1ms)  SELECT sql
660
+ FROM sqlite_master
661
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
662
+ UNION ALL
663
+ SELECT sql
664
+ FROM sqlite_temp_master
665
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
666
+ 
667
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
668
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
669
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
670
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
671
+  (0.1ms) SELECT version FROM "schema_migrations"
672
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
673
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
674
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
675
+  (1.0ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
676
+  (0.2ms) select sqlite_version(*)
677
+  (1.4ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
678
+  (2.4ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
679
+  (0.9ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
680
+  (0.2ms) SELECT sql
681
+ FROM sqlite_master
682
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
683
+ UNION ALL
684
+ SELECT sql
685
+ FROM sqlite_temp_master
686
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
687
+
688
+  (1.0ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
689
+  (0.2ms) SELECT sql
690
+ FROM sqlite_master
691
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
692
+ UNION ALL
693
+ SELECT sql
694
+ FROM sqlite_temp_master
695
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
696
+
697
+  (0.2ms)  SELECT sql
698
+ FROM sqlite_master
699
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
700
+ UNION ALL
701
+ SELECT sql
702
+ FROM sqlite_temp_master
703
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
704
+ 
705
+  (1.2ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
706
+  (1.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
707
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
708
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
709
+  (0.1ms) SELECT version FROM "schema_migrations"
710
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
711
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
712
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')
713
+  (9.3ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer) 
714
+  (0.1ms) select sqlite_version(*)
715
+  (1.0ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
716
+  (1.0ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
717
+  (1.0ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
718
+  (0.1ms) SELECT sql
719
+ FROM sqlite_master
720
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
721
+ UNION ALL
722
+ SELECT sql
723
+ FROM sqlite_temp_master
724
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
725
+
726
+  (0.9ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
727
+  (0.1ms) SELECT sql
728
+ FROM sqlite_master
729
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
730
+ UNION ALL
731
+ SELECT sql
732
+ FROM sqlite_temp_master
733
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
734
+
735
+  (0.1ms)  SELECT sql
736
+ FROM sqlite_master
737
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
738
+ UNION ALL
739
+ SELECT sql
740
+ FROM sqlite_temp_master
741
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
742
+ 
743
+  (0.8ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
744
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
745
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
746
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
747
+  (0.1ms) SELECT version FROM "schema_migrations"
748
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110900')
749
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831110800')
750
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831102200')