guts 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c026b5818884548c1234c11cf04ac7d0f5f4bb85
4
- data.tar.gz: a50e9ddaa12bd540394fe613592c90dd0b536b06
3
+ metadata.gz: 8858c0117f2049511fdd0f23b142998ef8ffc631
4
+ data.tar.gz: 9ef697890994882c1fb27ec5aa393b9c2fc252cb
5
5
  SHA512:
6
- metadata.gz: b9b03f20e358a6b601379fd5a918bdd7b5f0b4470771039cc920c9ebc5fed55565a91309e2e466a9996861e70c28d9115b83e2ccef353a2006f0632a5f3fbc8c
7
- data.tar.gz: 4c77b7f7bb740de421274f53b69284607a40848d38ca0a014a8f7890ffbdfa35e72e080d7476654e917b390133d941d413edcbe87831b68f465c4ce434196e6a
6
+ metadata.gz: 755a6ce2b0416801f961e39c0a606cc155bca5f8b00df7220b0cd10f002beb43c0ec8309d3f8df82ae7af9fc53b54de0a89c21068d2078f690b50ecb4b09b665
7
+ data.tar.gz: a38cf96cf6225d32515699bfc8d0875c82b20b03f78d3477f40a30b7121d644c000cb5708a7e0b0b81d37d3d8772695c109a364f112d52419b7b51f79454076b
@@ -5,10 +5,9 @@ class CreateGutsNavigationItems < ActiveRecord::Migration
5
5
  t.string :custom
6
6
  t.integer :position, default: 0, null: true
7
7
  t.references :navigatable, polymorphic: true, index: {name: "index_nav_items_on_nav_with_type_and_id"}
8
-
8
+ t.references :navigation
9
+
9
10
  t.timestamps null: false
10
11
  end
11
-
12
- add_reference :guts_navigation_items, :navigation, index: true, foreign_key: true
13
12
  end
14
13
  end
@@ -6,12 +6,12 @@ class CreateGutsContents < ActiveRecord::Migration
6
6
  t.text :tags, null: true
7
7
  t.text :content, null: true
8
8
  t.integer :visible, default: 1, limit: 1
9
+ t.references :type
10
+ t.references :user
9
11
 
10
12
  t.timestamps null: false
11
13
  end
12
14
 
13
15
  add_index :guts_contents, :slug, unique: true
14
- add_reference :guts_contents, :type, index: true, foreign_key: true
15
- add_reference :guts_contents, :user, index: true, foreign_key: true, null: true
16
16
  end
17
17
  end
@@ -1,4 +1,4 @@
1
1
  module Guts
2
2
  # Current Guts version
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.7"
4
4
  end
@@ -5,11 +5,10 @@ namespace :guts do
5
5
  desc "Create a user"
6
6
  task :create, [:name, :email, :password, :is_admin] => :environment do |t, args|
7
7
  if args.to_hash.size < 3
8
- puts "Please enter name, email, and a password"
9
- exit
8
+ raise ArgumentError, "[Guts] Please enter name, email, and a password"
10
9
  end
11
10
 
12
- group = Guts::Group.find_by(title: Guts::Configuration.admin_groups[0])
11
+ group = Guts::Group.find_by(title: Guts.configuration.admin_groups[0])
13
12
 
14
13
  user = Guts::User.new
15
14
  user.name = args[:name]
@@ -19,17 +18,18 @@ namespace :guts do
19
18
  user.groups << group if args[:is_admin] and group
20
19
  user.save!
21
20
 
22
- puts "[Guts] User #{args[:name]} created"
21
+ puts "[Guts] User created"
23
22
  end
24
23
 
25
24
  desc "Delete a user"
26
25
  task :delete, [:email] => :environment do |t, args|
27
26
  if args.to_hash.size === 0
28
- puts "Please enter an email"
29
- exit
27
+ raise ArgumentError, "[Guts] Please enter an email"
30
28
  end
31
29
 
32
- user = Guts::User.find(email: args[:email])
30
+ user = Guts::User.find_by(email: args[:email])
31
+ raise StandardError, "[Guts] User not found" unless user
32
+
33
33
  user.destroy!
34
34
 
35
35
  puts "[Guts] User destroyed"
@@ -38,11 +38,12 @@ namespace :guts do
38
38
  desc "New password for a user"
39
39
  task :new_password, [:email, :password] => :environment do |t, args|
40
40
  if args.to_hash.size < 2
41
- puts "Please enter a password and an email"
42
- exit
41
+ raise ArgumentError, "[Guts] Please enter a password and an email"
43
42
  end
44
43
 
45
- user = Guts::User.find(email: args[:email])
44
+ user = Guts::User.find_by(email: args[:email])
45
+ raise StandardError, "[Guts] User not found" unless user
46
+
46
47
  user.password = args[:password]
47
48
  user.password_confirmation = args[:password]
48
49
  user.save!
@@ -49,15 +49,13 @@ ActiveRecord::Schema.define(version: 13) do
49
49
  t.text "tags"
50
50
  t.text "content"
51
51
  t.integer "visible", limit: 1, default: 1
52
- t.datetime "created_at", null: false
53
- t.datetime "updated_at", null: false
54
52
  t.integer "type_id"
55
53
  t.integer "user_id"
54
+ t.datetime "created_at", null: false
55
+ t.datetime "updated_at", null: false
56
56
  end
57
57
 
58
58
  add_index "guts_contents", ["slug"], name: "index_guts_contents_on_slug", unique: true
59
- add_index "guts_contents", ["type_id"], name: "index_guts_contents_on_type_id"
60
- add_index "guts_contents", ["user_id"], name: "index_guts_contents_on_user_id"
61
59
 
62
60
  create_table "guts_groups", force: :cascade do |t|
63
61
  t.string "title"
@@ -102,13 +100,12 @@ ActiveRecord::Schema.define(version: 13) do
102
100
  t.integer "position", default: 0
103
101
  t.integer "navigatable_id"
104
102
  t.string "navigatable_type"
103
+ t.integer "navigation_id"
105
104
  t.datetime "created_at", null: false
106
105
  t.datetime "updated_at", null: false
107
- t.integer "navigation_id"
108
106
  end
109
107
 
110
108
  add_index "guts_navigation_items", ["navigatable_type", "navigatable_id"], name: "index_nav_items_on_nav_with_type_and_id"
111
- add_index "guts_navigation_items", ["navigation_id"], name: "index_guts_navigation_items_on_navigation_id"
112
109
 
113
110
  create_table "guts_navigations", force: :cascade do |t|
114
111
  t.string "title"
Binary file
@@ -0,0 +1,330 @@
1
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+ Migrating to CreateFriendlyIdSlugs (20160309030231)
7
+  (0.1ms) begin transaction
8
+  (0.6ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime) 
9
+  (0.1ms) select sqlite_version(*)
10
+  (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")
11
+  (0.1ms) SELECT sql
12
+ FROM sqlite_master
13
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
14
+ UNION ALL
15
+ SELECT sql
16
+ FROM sqlite_temp_master
17
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
18
+
19
+  (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")
20
+  (0.1ms) SELECT sql
21
+ FROM sqlite_master
22
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
23
+ UNION ALL
24
+ SELECT sql
25
+ FROM sqlite_temp_master
26
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
27
+
28
+  (0.1ms)  SELECT sql
29
+ FROM sqlite_master
30
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
31
+ UNION ALL
32
+ SELECT sql
33
+ FROM sqlite_temp_master
34
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
35
+ 
36
+  (1.0ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
37
+  (0.1ms)  SELECT sql
38
+ FROM sqlite_master
39
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
40
+ UNION ALL
41
+ SELECT sql
42
+ FROM sqlite_temp_master
43
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
44
+ 
45
+  (0.1ms) SELECT sql
46
+ FROM sqlite_master
47
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
48
+ UNION ALL
49
+ SELECT sql
50
+ FROM sqlite_temp_master
51
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
52
+
53
+  (0.1ms)  SELECT sql
54
+ FROM sqlite_master
55
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
56
+ UNION ALL
57
+ SELECT sql
58
+ FROM sqlite_temp_master
59
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
60
+ 
61
+  (0.1ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type")
62
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030231"]]
63
+  (0.9ms) commit transaction
64
+ Migrating to CreateGutsTypes (20160309030232)
65
+  (0.1ms) begin transaction
66
+  (0.4ms) CREATE TABLE "guts_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
67
+  (0.4ms) CREATE UNIQUE INDEX "index_guts_types_on_slug" ON "guts_types" ("slug")
68
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030232"]]
69
+  (0.9ms) commit transaction
70
+ Migrating to CreateGutsUsers (20160309030233)
71
+  (0.1ms) begin transaction
72
+  (0.4ms) CREATE TABLE "guts_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "password_token" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
73
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030233"]]
74
+  (0.7ms) commit transaction
75
+ Migrating to CreateGutsGroups (20160309030234)
76
+  (0.1ms) begin transaction
77
+  (0.3ms) CREATE TABLE "guts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
78
+  (0.5ms) CREATE UNIQUE INDEX "index_guts_groups_on_slug" ON "guts_groups" ("slug")
79
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030234"]]
80
+  (0.9ms) commit transaction
81
+ Migrating to CreateGutsUserGroups (20160309030235)
82
+  (0.1ms) begin transaction
83
+  (0.3ms) CREATE TABLE "guts_user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "group_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
84
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030235"]]
85
+  (0.6ms) commit transaction
86
+ Migrating to CreateGutsCategories (20160309030236)
87
+  (0.1ms) begin transaction
88
+  (0.5ms) CREATE TABLE "guts_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "metafields" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
89
+  (0.4ms) CREATE UNIQUE INDEX "index_guts_categories_on_slug" ON "guts_categories" ("slug")
90
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030236"]]
91
+  (2.3ms) commit transaction
92
+ Migrating to CreateGutsContents (20160309030237)
93
+  (0.1ms) begin transaction
94
+  (0.4ms) CREATE TABLE "guts_contents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "tags" text, "content" text, "visible" integer(1) DEFAULT 1, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
95
+  (0.5ms) CREATE UNIQUE INDEX "index_guts_contents_on_slug" ON "guts_contents" ("slug")
96
+  (0.5ms) ALTER TABLE "guts_contents" ADD "type_id" integer
97
+  (0.1ms) SELECT sql
98
+ FROM sqlite_master
99
+ WHERE name='index_guts_contents_on_slug' AND type='index'
100
+ UNION ALL
101
+ SELECT sql
102
+ FROM sqlite_temp_master
103
+ WHERE name='index_guts_contents_on_slug' AND type='index'
104
+
105
+  (0.1ms) CREATE INDEX "index_guts_contents_on_type_id" ON "guts_contents" ("type_id")
106
+  (0.3ms) ALTER TABLE "guts_contents" ADD "user_id" integer
107
+  (0.1ms)  SELECT sql
108
+ FROM sqlite_master
109
+ WHERE name='index_guts_contents_on_type_id' AND type='index'
110
+ UNION ALL
111
+ SELECT sql
112
+ FROM sqlite_temp_master
113
+ WHERE name='index_guts_contents_on_type_id' AND type='index'
114
+ 
115
+  (0.1ms) SELECT sql
116
+ FROM sqlite_master
117
+ WHERE name='index_guts_contents_on_slug' AND type='index'
118
+ UNION ALL
119
+ SELECT sql
120
+ FROM sqlite_temp_master
121
+ WHERE name='index_guts_contents_on_slug' AND type='index'
122
+
123
+  (0.1ms) CREATE INDEX "index_guts_contents_on_user_id" ON "guts_contents" ("user_id")
124
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030237"]]
125
+  (0.9ms) commit transaction
126
+ Migrating to CreateGutsCategorizations (20160309030238)
127
+  (0.3ms) begin transaction
128
+  (0.5ms) CREATE TABLE "guts_categorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "content_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
129
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030238"]]
130
+  (0.7ms) commit transaction
131
+ Migrating to CreateGutsMedia (20160309030239)
132
+  (0.1ms) begin transaction
133
+  (0.4ms) CREATE TABLE "guts_media" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "tags" text, "position" integer DEFAULT 0, "filable_id" integer, "filable_type" varchar, "caption" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
134
+  (0.2ms) CREATE INDEX "index_guts_media_on_filable_type_and_filable_id" ON "guts_media" ("filable_type", "filable_id")
135
+  (0.2ms) ALTER TABLE "guts_media" ADD "file_file_name" varchar
136
+  (0.2ms) ALTER TABLE "guts_media" ADD "file_content_type" varchar
137
+  (0.2ms) ALTER TABLE "guts_media" ADD "file_file_size" integer
138
+  (0.1ms) ALTER TABLE "guts_media" ADD "file_updated_at" datetime
139
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030239"]]
140
+  (0.7ms) commit transaction
141
+ Migrating to CreateGutsNavigations (20160309030240)
142
+  (0.1ms) begin transaction
143
+  (0.3ms) CREATE TABLE "guts_navigations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
144
+  (0.4ms) CREATE UNIQUE INDEX "index_guts_navigations_on_slug" ON "guts_navigations" ("slug")
145
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030240"]]
146
+  (0.9ms) commit transaction
147
+ Migrating to CreateGutsNavigationItems (20160309030241)
148
+  (0.1ms) begin transaction
149
+  (0.4ms) CREATE TABLE "guts_navigation_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "custom" varchar, "position" integer DEFAULT 0, "navigatable_id" integer, "navigatable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
150
+  (0.1ms) CREATE INDEX "index_nav_items_on_nav_with_type_and_id" ON "guts_navigation_items" ("navigatable_type", "navigatable_id")
151
+  (0.3ms) ALTER TABLE "guts_navigation_items" ADD "navigation_id" integer
152
+  (0.1ms) SELECT sql
153
+ FROM sqlite_master
154
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
155
+ UNION ALL
156
+ SELECT sql
157
+ FROM sqlite_temp_master
158
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
159
+
160
+  (0.1ms) CREATE INDEX "index_guts_navigation_items_on_navigation_id" ON "guts_navigation_items" ("navigation_id")
161
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030241"]]
162
+  (0.7ms) commit transaction
163
+ Migrating to CreateGutsMetafields (20160309030242)
164
+  (0.1ms) begin transaction
165
+  (0.4ms) CREATE TABLE "guts_metafields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "fieldable_id" integer, "fieldable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
166
+  (0.1ms) CREATE INDEX "index_guts_metafields_on_fieldable_type_and_fieldable_id" ON "guts_metafields" ("fieldable_type", "fieldable_id")
167
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030242"]]
168
+  (0.7ms) commit transaction
169
+ Migrating to CreateGutsTrackers (20160309030243)
170
+  (0.1ms) begin transaction
171
+  (0.5ms) CREATE TABLE "guts_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "object_id" integer, "object_type" varchar, "params" text, "action" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
172
+  (0.2ms) CREATE INDEX "index_guts_trackers_on_object_type_and_object_id" ON "guts_trackers" ("object_type", "object_id")
173
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030243"]]
174
+  (1.3ms) commit transaction
175
+ Migrating to CreateGutsOptions (20160309030244)
176
+  (0.1ms) begin transaction
177
+  (0.4ms) CREATE TABLE "guts_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
178
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030244"]]
179
+  (0.7ms) commit transaction
180
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
181
+  (0.1ms)  SELECT sql
182
+ FROM sqlite_master
183
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
184
+ UNION ALL
185
+ SELECT sql
186
+ FROM sqlite_temp_master
187
+ WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'
188
+ 
189
+  (0.1ms) SELECT sql
190
+ FROM sqlite_master
191
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
192
+ UNION ALL
193
+ SELECT sql
194
+ FROM sqlite_temp_master
195
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'
196
+
197
+  (0.1ms)  SELECT sql
198
+ FROM sqlite_master
199
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
200
+ UNION ALL
201
+ SELECT sql
202
+ FROM sqlite_temp_master
203
+ WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'
204
+ 
205
+  (0.1ms) SELECT sql
206
+ FROM sqlite_master
207
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
208
+ UNION ALL
209
+ SELECT sql
210
+ FROM sqlite_temp_master
211
+ WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'
212
+
213
+  (0.1ms)  SELECT sql
214
+ FROM sqlite_master
215
+ WHERE name='index_guts_categories_on_slug' AND type='index'
216
+ UNION ALL
217
+ SELECT sql
218
+ FROM sqlite_temp_master
219
+ WHERE name='index_guts_categories_on_slug' AND type='index'
220
+ 
221
+  (0.1ms) SELECT sql
222
+ FROM sqlite_master
223
+ WHERE name='index_guts_contents_on_user_id' AND type='index'
224
+ UNION ALL
225
+ SELECT sql
226
+ FROM sqlite_temp_master
227
+ WHERE name='index_guts_contents_on_user_id' AND type='index'
228
+
229
+  (0.1ms)  SELECT sql
230
+ FROM sqlite_master
231
+ WHERE name='index_guts_contents_on_type_id' AND type='index'
232
+ UNION ALL
233
+ SELECT sql
234
+ FROM sqlite_temp_master
235
+ WHERE name='index_guts_contents_on_type_id' AND type='index'
236
+ 
237
+  (0.1ms) SELECT sql
238
+ FROM sqlite_master
239
+ WHERE name='index_guts_contents_on_slug' AND type='index'
240
+ UNION ALL
241
+ SELECT sql
242
+ FROM sqlite_temp_master
243
+ WHERE name='index_guts_contents_on_slug' AND type='index'
244
+
245
+  (0.1ms)  SELECT sql
246
+ FROM sqlite_master
247
+ WHERE name='index_guts_groups_on_slug' AND type='index'
248
+ UNION ALL
249
+ SELECT sql
250
+ FROM sqlite_temp_master
251
+ WHERE name='index_guts_groups_on_slug' AND type='index'
252
+ 
253
+  (0.1ms) SELECT sql
254
+ FROM sqlite_master
255
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
256
+ UNION ALL
257
+ SELECT sql
258
+ FROM sqlite_temp_master
259
+ WHERE name='index_guts_media_on_filable_type_and_filable_id' AND type='index'
260
+
261
+  (0.1ms)  SELECT sql
262
+ FROM sqlite_master
263
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
264
+ UNION ALL
265
+ SELECT sql
266
+ FROM sqlite_temp_master
267
+ WHERE name='index_guts_metafields_on_fieldable_type_and_fieldable_id' AND type='index'
268
+ 
269
+  (0.1ms) SELECT sql
270
+ FROM sqlite_master
271
+ WHERE name='index_guts_navigation_items_on_navigation_id' AND type='index'
272
+ UNION ALL
273
+ SELECT sql
274
+ FROM sqlite_temp_master
275
+ WHERE name='index_guts_navigation_items_on_navigation_id' AND type='index'
276
+
277
+  (0.1ms)  SELECT sql
278
+ FROM sqlite_master
279
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
280
+ UNION ALL
281
+ SELECT sql
282
+ FROM sqlite_temp_master
283
+ WHERE name='index_nav_items_on_nav_with_type_and_id' AND type='index'
284
+ 
285
+  (0.1ms) SELECT sql
286
+ FROM sqlite_master
287
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
288
+ UNION ALL
289
+ SELECT sql
290
+ FROM sqlite_temp_master
291
+ WHERE name='index_guts_navigations_on_slug' AND type='index'
292
+
293
+  (0.1ms)  SELECT sql
294
+ FROM sqlite_master
295
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
296
+ UNION ALL
297
+ SELECT sql
298
+ FROM sqlite_temp_master
299
+ WHERE name='index_guts_trackers_on_object_type_and_object_id' AND type='index'
300
+ 
301
+  (0.1ms) SELECT sql
302
+ FROM sqlite_master
303
+ WHERE name='index_guts_types_on_slug' AND type='index'
304
+ UNION ALL
305
+ SELECT sql
306
+ FROM sqlite_temp_master
307
+ WHERE name='index_guts_types_on_slug' AND type='index'
308
+
309
+  (0.1ms) begin transaction
310
+ SQL (0.4ms) INSERT INTO "guts_types" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Page"], ["slug", "page"], ["created_at", "2016-03-09 03:02:56.019917"], ["updated_at", "2016-03-09 03:02:56.019917"]]
311
+ SQL (0.2ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 1], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-03-09 03:02:56.040217"], ["updated_at", "2016-03-09 03:02:56.040217"]]
312
+  (0.7ms) commit transaction
313
+  (0.0ms) begin transaction
314
+ SQL (0.3ms) INSERT INTO "guts_types" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Post"], ["slug", "post"], ["created_at", "2016-03-09 03:02:56.043114"], ["updated_at", "2016-03-09 03:02:56.043114"]]
315
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 2], ["object_type", "Guts::Type"], ["params", "{}"], ["created_at", "2016-03-09 03:02:56.044884"], ["updated_at", "2016-03-09 03:02:56.044884"]]
316
+  (0.8ms) commit transaction
317
+  (0.1ms) begin transaction
318
+ SQL (0.3ms) INSERT INTO "guts_categories" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Uncategorized"], ["slug", "uncategorized"], ["created_at", "2016-03-09 03:02:56.057678"], ["updated_at", "2016-03-09 03:02:56.057678"]]
319
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 1], ["object_type", "Guts::Category"], ["params", "{}"], ["created_at", "2016-03-09 03:02:56.059491"], ["updated_at", "2016-03-09 03:02:56.059491"]]
320
+  (0.7ms) commit transaction
321
+  (0.1ms) begin transaction
322
+ SQL (0.3ms) INSERT INTO "guts_groups" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Admins"], ["slug", "admins"], ["created_at", "2016-03-09 03:02:56.072748"], ["updated_at", "2016-03-09 03:02:56.072748"]]
323
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 1], ["object_type", "Guts::Group"], ["params", "{}"], ["created_at", "2016-03-09 03:02:56.074584"], ["updated_at", "2016-03-09 03:02:56.074584"]]
324
+  (0.8ms) commit transaction
325
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "2"]]
326
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "timmy.kimble@gmail.com"]]
327
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "3"]]
328
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "3"]]
329
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
330
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"