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 +4 -4
- data/db/migrate/10_create_guts_navigation_items.rb +2 -3
- data/db/migrate/6_create_guts_contents.rb +2 -2
- data/lib/guts/version.rb +1 -1
- data/lib/tasks/guts_users.rake +11 -10
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +3 -6
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +330 -0
- data/test/dummy/log/test.log +155198 -0
- data/test/dummy/public/system/guts/media/166/075/618/compact/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/grande/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/large/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/medium/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/small/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/supreme/spongebob.png +0 -0
- data/test/dummy/public/system/guts/media/166/075/618/thumb/spongebob.png +0 -0
- data/test/tasks/guts/users_task_test.rb +90 -0
- data/test/test_helper.rb +5 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8858c0117f2049511fdd0f23b142998ef8ffc631
|
4
|
+
data.tar.gz: 9ef697890994882c1fb27ec5aa393b9c2fc252cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/guts/version.rb
CHANGED
data/lib/tasks/guts_users.rake
CHANGED
@@ -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
|
-
|
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
|
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
|
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
|
-
|
29
|
-
exit
|
27
|
+
raise ArgumentError, "[Guts] Please enter an email"
|
30
28
|
end
|
31
29
|
|
32
|
-
user = Guts::User.
|
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
|
-
|
42
|
-
exit
|
41
|
+
raise ArgumentError, "[Guts] Please enter a password and an email"
|
43
42
|
end
|
44
43
|
|
45
|
-
user
|
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!
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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"
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,330 @@
|
|
1
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6
|
+
Migrating to CreateFriendlyIdSlugs (20160309030231)
|
7
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8
|
+
[1m[36m (0.6ms)[0m [1mCREATE 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) [0m
|
9
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")[0m
|
11
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")[0m
|
20
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
36
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")
|
37
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
45
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
61
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type")
|
62
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160309030231"]]
|
63
|
+
[1m[35m (0.9ms)[0m commit transaction
|
64
|
+
Migrating to CreateGutsTypes (20160309030232)
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_guts_types_on_slug" ON "guts_types" ("slug")[0m
|
68
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030232"]]
|
69
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
70
|
+
Migrating to CreateGutsUsers (20160309030233)
|
71
|
+
[1m[35m (0.1ms)[0m begin transaction
|
72
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
73
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030233"]]
|
74
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
75
|
+
Migrating to CreateGutsGroups (20160309030234)
|
76
|
+
[1m[35m (0.1ms)[0m begin transaction
|
77
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "guts_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "slug" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
78
|
+
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_guts_groups_on_slug" ON "guts_groups" ("slug")
|
79
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160309030234"]]
|
80
|
+
[1m[35m (0.9ms)[0m commit transaction
|
81
|
+
Migrating to CreateGutsUserGroups (20160309030235)
|
82
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160309030235"]]
|
85
|
+
[1m[35m (0.6ms)[0m commit transaction
|
86
|
+
Migrating to CreateGutsCategories (20160309030236)
|
87
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_guts_categories_on_slug" ON "guts_categories" ("slug")[0m
|
90
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030236"]]
|
91
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
92
|
+
Migrating to CreateGutsContents (20160309030237)
|
93
|
+
[1m[35m (0.1ms)[0m begin transaction
|
94
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
95
|
+
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_guts_contents_on_slug" ON "guts_contents" ("slug")
|
96
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "guts_contents" ADD "type_id" integer[0m
|
97
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_guts_contents_on_type_id" ON "guts_contents" ("type_id")[0m
|
106
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "guts_contents" ADD "user_id" integer
|
107
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
115
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_guts_contents_on_user_id" ON "guts_contents" ("user_id")[0m
|
124
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030237"]]
|
125
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
126
|
+
Migrating to CreateGutsCategorizations (20160309030238)
|
127
|
+
[1m[35m (0.3ms)[0m begin transaction
|
128
|
+
[1m[36m (0.5ms)[0m [1mCREATE 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) [0m
|
129
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030238"]]
|
130
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
131
|
+
Migrating to CreateGutsMedia (20160309030239)
|
132
|
+
[1m[35m (0.1ms)[0m begin transaction
|
133
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
134
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_guts_media_on_filable_type_and_filable_id" ON "guts_media" ("filable_type", "filable_id")
|
135
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "guts_media" ADD "file_file_name" varchar[0m
|
136
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "guts_media" ADD "file_content_type" varchar
|
137
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "guts_media" ADD "file_file_size" integer[0m
|
138
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "guts_media" ADD "file_updated_at" datetime
|
139
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160309030239"]]
|
140
|
+
[1m[35m (0.7ms)[0m commit transaction
|
141
|
+
Migrating to CreateGutsNavigations (20160309030240)
|
142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
143
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_guts_navigations_on_slug" ON "guts_navigations" ("slug")[0m
|
145
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030240"]]
|
146
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
147
|
+
Migrating to CreateGutsNavigationItems (20160309030241)
|
148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
149
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
150
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_nav_items_on_nav_with_type_and_id" ON "guts_navigation_items" ("navigatable_type", "navigatable_id")
|
151
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "guts_navigation_items" ADD "navigation_id" integer[0m
|
152
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_guts_navigation_items_on_navigation_id" ON "guts_navigation_items" ("navigation_id")[0m
|
161
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030241"]]
|
162
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
163
|
+
Migrating to CreateGutsMetafields (20160309030242)
|
164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
165
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
166
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_guts_metafields_on_fieldable_type_and_fieldable_id" ON "guts_metafields" ("fieldable_type", "fieldable_id")
|
167
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160309030242"]]
|
168
|
+
[1m[35m (0.7ms)[0m commit transaction
|
169
|
+
Migrating to CreateGutsTrackers (20160309030243)
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_guts_trackers_on_object_type_and_object_id" ON "guts_trackers" ("object_type", "object_id")[0m
|
173
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030243"]]
|
174
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
175
|
+
Migrating to CreateGutsOptions (20160309030244)
|
176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
177
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "guts_options" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
178
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160309030244"]]
|
179
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
180
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
181
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
189
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
205
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
221
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
237
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
253
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
269
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
285
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
301
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
310
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
313
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
314
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
318
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.7ms)[0m commit transaction
|
321
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
322
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m commit transaction
|
325
|
+
[1m[36mGuts::User Load (0.2ms)[0m [1mSELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1[0m [["email", "2"]]
|
326
|
+
[1m[36mGuts::User Load (0.2ms)[0m [1mSELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1[0m [["email", "timmy.kimble@gmail.com"]]
|
327
|
+
[1m[35mGuts::User Load (0.1ms)[0m SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "3"]]
|
328
|
+
[1m[36mGuts::User Load (0.1ms)[0m [1mSELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1[0m [["email", "3"]]
|
329
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|
330
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations"[0m
|