tb_blog 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/Readme.markdown +3 -2
- data/app/assets/javascripts/admin/blog/application.js +1 -0
- data/app/assets/javascripts/{spud/admin → admin/blog}/post_categories.js +0 -3
- data/app/assets/javascripts/{spud/admin → admin/blog}/posts.js +0 -6
- data/app/controllers/{spud/admin → admin}/news_posts_controller.rb +13 -11
- data/app/controllers/{spud/admin → admin}/post_categories_controller.rb +9 -7
- data/app/controllers/{spud/admin → admin}/post_comments_controller.rb +6 -7
- data/app/controllers/{spud/admin → admin}/posts_controller.rb +14 -11
- data/app/controllers/blog/sitemaps_controller.rb +10 -0
- data/app/controllers/blog_controller.rb +25 -34
- data/app/controllers/news_controller.rb +5 -21
- data/app/helpers/admin/news_posts_helper.rb +2 -0
- data/app/helpers/admin/post_categories_helper.rb +2 -0
- data/app/helpers/admin/post_comments_helper.rb +3 -0
- data/app/helpers/{spud/admin → admin}/posts_helper.rb +1 -1
- data/app/helpers/blog/sitemaps_helper.rb +2 -0
- data/app/helpers/blog_helper.rb +0 -1
- data/app/models/spud_post.rb +30 -21
- data/app/models/spud_post_categories_post.rb +2 -3
- data/app/models/spud_post_category.rb +9 -2
- data/app/models/spud_post_comment.rb +1 -3
- data/app/models/spud_post_site.rb +0 -1
- data/app/views/admin/news_posts/edit.html.erb +3 -0
- data/app/views/admin/news_posts/index.html.erb +42 -0
- data/app/views/admin/news_posts/new.html.erb +3 -0
- data/app/views/{spud/admin → admin}/post_categories/_category.html.erb +2 -2
- data/app/views/{spud/admin → admin}/post_categories/_form.html.erb +1 -1
- data/app/views/{spud/admin → admin}/post_categories/index.html.erb +1 -1
- data/app/views/admin/post_categories/new.html.erb +1 -0
- data/app/views/{spud/admin → admin}/post_comments/index.html.erb +3 -3
- data/app/views/{spud/admin → admin}/posts/_category.html.erb +1 -1
- data/app/views/{spud/admin → admin}/posts/_form.html.erb +3 -3
- data/app/views/admin/posts/edit.html.erb +3 -0
- data/app/views/admin/posts/index.html.erb +48 -0
- data/app/views/admin/posts/new.html.erb +3 -0
- data/app/views/blog/_comment.html.erb +6 -4
- data/app/views/blog/_comment_form.html.erb +0 -2
- data/app/views/blog/index.html.erb +30 -28
- data/app/views/blog/show.html.erb +35 -31
- data/app/views/news/index.html.erb +26 -24
- data/app/views/news/show.html.erb +25 -21
- data/config/routes.rb +14 -15
- data/lib/spud_blog/configuration.rb +1 -2
- data/lib/spud_blog/engine.rb +13 -10
- data/lib/spud_blog/version.rb +1 -1
- data/lib/tb_blog.rb +1 -1
- data/spec/controllers/admin/posts_controller_spec.rb +5 -0
- data/spec/dummy/config/application.rb +5 -2
- data/spec/dummy/config/environments/production.rb +1 -1
- data/spec/dummy/config/environments/test.rb +5 -6
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/db/migrate/20140110180411_create_spud_roles.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140110180412_create_spud_permissions.tb_core.rb +11 -0
- data/spec/dummy/db/migrate/20140110180413_create_spud_role_permissions.tb_core.rb +12 -0
- data/spec/dummy/db/migrate/20140110180414_drop_spud_admin_permissions.tb_core.rb +16 -0
- data/spec/dummy/db/migrate/20140110180415_create_spud_permalinks.tb_permalinks.rb +12 -0
- data/spec/dummy/db/migrate/20140110180416_add_site_id_to_spud_permalinks.tb_permalinks.rb +7 -0
- data/spec/dummy/db/migrate/20140110180417_modify_site_id_for_spud_permalinks.tb_permalinks.rb +12 -0
- data/spec/dummy/db/migrate/20140110180418_create_spud_posts.tb_blog.rb +16 -0
- data/spec/dummy/db/migrate/20140110180419_create_spud_post_categories.tb_blog.rb +14 -0
- data/spec/dummy/db/migrate/20140110180420_create_spud_post_comments.tb_blog.rb +14 -0
- data/spec/dummy/db/migrate/20140110180421_add_url_to_spud_posts.tb_blog.rb +7 -0
- data/spec/dummy/db/migrate/20140110180422_add_url_to_spud_post_categories.tb_blog.rb +9 -0
- data/spec/dummy/db/migrate/20140110180423_add_is_news_to_spud_posts.tb_blog.rb +7 -0
- data/spec/dummy/db/migrate/20140110180424_add_meta_to_posts.tb_blog.rb +7 -0
- data/spec/dummy/db/migrate/20140110180425_add_comments_counter_to_spud_posts.tb_blog.rb +13 -0
- data/spec/dummy/db/migrate/20140110180426_create_spud_post_sites.tb_blog.rb +12 -0
- data/spec/dummy/db/migrate/20140110180427_add_spam_fields_to_spud_post_comments.tb_blog.rb +9 -0
- data/spec/dummy/db/migrate/20140110180428_add_permalink_to_spud_post_comments.tb_blog.rb +6 -0
- data/spec/dummy/db/migrate/20140110180429_add_nested_set_to_post_categories.tb_blog.rb +22 -0
- data/spec/dummy/db/migrate/20140110180430_add_content_format_to_spud_posts.tb_blog.rb +6 -0
- data/spec/dummy/db/migrate/20140110180431_add_content_processed_to_spud_post.tb_blog.rb +6 -0
- data/spec/dummy/db/migrate/20140113162805_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +13 -0
- data/spec/dummy/db/schema.rb +100 -59
- metadata +123 -104
- data/app/assets/javascripts/spud/blog/sitemaps.js +0 -2
- data/app/assets/javascripts/spud/blog.js +0 -41
- data/app/assets/stylesheets/news.css +0 -4
- data/app/assets/stylesheets/spud/blog/sitemaps.css +0 -4
- data/app/assets/stylesheets/spud/blog/validity.css +0 -3
- data/app/controllers/spud/blog/sitemaps_controller.rb +0 -9
- data/app/helpers/spud/admin/news_posts_helper.rb +0 -2
- data/app/helpers/spud/admin/post_categories_helper.rb +0 -2
- data/app/helpers/spud/admin/post_comments_helper.rb +0 -3
- data/app/helpers/spud/blog/sitemaps_helper.rb +0 -2
- data/app/models/spud_post_category_sweeper.rb +0 -41
- data/app/models/spud_post_comment_sweeper.rb +0 -33
- data/app/models/spud_post_sweeper.rb +0 -47
- data/app/views/spud/admin/news_posts/edit.html.erb +0 -3
- data/app/views/spud/admin/news_posts/index.html.erb +0 -44
- data/app/views/spud/admin/news_posts/new.html.erb +0 -3
- data/app/views/spud/admin/post_categories/new.html.erb +0 -1
- data/app/views/spud/admin/posts/edit.html.erb +0 -3
- data/app/views/spud/admin/posts/index.html.erb +0 -49
- data/app/views/spud/admin/posts/new.html.erb +0 -3
- data/spec/controllers/spud/admin/posts_controller_spec.rb +0 -5
- data/spec/dummy/log/development.log +0 -263
- data/spec/dummy/log/test.log +0 -3339
- /data/app/assets/javascripts/{spud/admin → admin/blog}/post_comments.js +0 -0
- /data/app/assets/stylesheets/{spud/admin/posts.css.scss → admin/blog/application.css.scss} +0 -0
- /data/app/views/{spud/admin → admin}/post_categories/edit.html.erb +0 -0
- /data/app/views/{spud/blog → blog}/sitemaps/show.xml.builder +0 -0
@@ -1,44 +0,0 @@
|
|
1
|
-
<%= content_for :data_controls do %>
|
2
|
-
<%= link_to "Manage Categories", spud_admin_post_categories_path, :class => 'btn spud_blog_manage_categories', :title => 'Manage Categories' %>
|
3
|
-
<%= link_to "New Post", new_spud_admin_news_post_path, :class => "btn btn-primary", :title => "New Post" %>
|
4
|
-
<% end %>
|
5
|
-
|
6
|
-
<%=content_for :detail do %>
|
7
|
-
<table class="admin-table">
|
8
|
-
<thead>
|
9
|
-
<tr>
|
10
|
-
<th>Title</th>
|
11
|
-
<th>Author</th>
|
12
|
-
<th>Published At</th>
|
13
|
-
<th> </th>
|
14
|
-
</tr>
|
15
|
-
</thead>
|
16
|
-
<tbody>
|
17
|
-
<% @posts.each do |post| %>
|
18
|
-
<tr>
|
19
|
-
|
20
|
-
<td>
|
21
|
-
<%= link_to edit_spud_admin_news_post_path(post) do %>
|
22
|
-
<%=post.title%>
|
23
|
-
<%if !post.visible%>
|
24
|
-
<span class="badge">Draft</span>
|
25
|
-
<%end%>
|
26
|
-
<%end%>
|
27
|
-
</td>
|
28
|
-
<td><%= post.author.full_name %></td>
|
29
|
-
<td><%= link_to(post.published_at.strftime('%m/%d/%Y'), news_post_path(post.url_name)) %></td>
|
30
|
-
<td align="right">
|
31
|
-
<%= link_to 'Delete', spud_admin_news_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-small btn-danger' %>
|
32
|
-
</td>
|
33
|
-
</tr>
|
34
|
-
<%end%>
|
35
|
-
</tbody>
|
36
|
-
</table>
|
37
|
-
<div class="spud_admin_pagination">
|
38
|
-
<%= will_paginate @posts %>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<script>
|
42
|
-
$(document).ready(spud.admin.post_categories.index);
|
43
|
-
</script>
|
44
|
-
<%end%>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => 'form', :locals => {:path => spud_admin_post_categories_path} %>
|
@@ -1,49 +0,0 @@
|
|
1
|
-
<%= content_for :data_controls do %>
|
2
|
-
<%= link_to "Manage Categories", spud_admin_post_categories_path, :class => 'btn spud_blog_manage_categories', :title => 'Manage Categories' %>
|
3
|
-
<%= link_to "Manage Comments", spud_admin_post_comments_path, :class => 'btn', :title => 'Manage Comments' %>
|
4
|
-
<%= link_to "New Post", new_spud_admin_post_path, :class => "btn btn-primary", :title => "New Post" %>
|
5
|
-
<% end %>
|
6
|
-
|
7
|
-
<%=content_for :detail do %>
|
8
|
-
<table class="admin-table">
|
9
|
-
<thead>
|
10
|
-
<tr>
|
11
|
-
<th>Title</th>
|
12
|
-
<th>Author</th>
|
13
|
-
<th>Published At</th>
|
14
|
-
<th>Comments Pending</th>
|
15
|
-
<th> </th>
|
16
|
-
</tr>
|
17
|
-
</thead>
|
18
|
-
<tbody>
|
19
|
-
<% @posts.each do |post| %>
|
20
|
-
<tr>
|
21
|
-
<td>
|
22
|
-
<%= link_to edit_spud_admin_post_path(post) do %>
|
23
|
-
<%=post.title%>
|
24
|
-
<%if !post.visible%>
|
25
|
-
<span class="badge">Draft</span>
|
26
|
-
<%end%>
|
27
|
-
<%end%>
|
28
|
-
</td>
|
29
|
-
<td><%= post.author.full_name %></td>
|
30
|
-
<td><%= link_to(post.published_at.strftime('%m/%d/%Y'), blog_post_path(post.url_name)) %></td>
|
31
|
-
<td>
|
32
|
-
<%= post.pending_comments.length %>
|
33
|
-
<%= link_to "Manage", spud_admin_post_post_comments_path(:post_id => post.id), :class => 'spud-post-comments-manage' %>
|
34
|
-
</td>
|
35
|
-
<td align="right">
|
36
|
-
<%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-danger' %>
|
37
|
-
</td>
|
38
|
-
</tr>
|
39
|
-
<%end%>
|
40
|
-
</tbody>
|
41
|
-
</table>
|
42
|
-
<div class="spud_admin_pagination">
|
43
|
-
<%= will_paginate @posts %>
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<script>
|
47
|
-
$(document).ready(spud.admin.post_categories.index);
|
48
|
-
</script>
|
49
|
-
<%end%>
|
@@ -1,263 +0,0 @@
|
|
1
|
-
Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
|
2
|
-
[1m[36m (483.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3
|
-
[1m[35m (140.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
4
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
5
|
-
Migrating to CreateSpudPosts (20120125180945)
|
6
|
-
[1m[35m (435.2ms)[0m CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
7
|
-
[1m[36m (205.1ms)[0m [1mCREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)[0m
|
8
|
-
[1m[35m (200.2ms)[0m CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
|
9
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120125180945')[0m
|
10
|
-
Migrating to CreateSpudPostCategories (20120125181022)
|
11
|
-
[1m[35m (190.2ms)[0m CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
12
|
-
[1m[36m (232.2ms)[0m [1mCREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB[0m
|
13
|
-
[1m[35m (203.9ms)[0m CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
|
14
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120125181022')[0m
|
15
|
-
Migrating to CreateSpudPostComments (20120125181359)
|
16
|
-
[1m[35m (193.3ms)[0m CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
17
|
-
[1m[36m (236.3ms)[0m [1mCREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)[0m
|
18
|
-
[1m[35m (200.4ms)[0m CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
|
19
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120125181359')[0m
|
20
|
-
Migrating to AddUrlToSpudPosts (20120127143054)
|
21
|
-
[1m[35m (206.9ms)[0m ALTER TABLE `spud_posts` ADD `url_name` varchar(255)
|
22
|
-
[1m[36m (223.3ms)[0m [1mCREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)[0m
|
23
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120127143054')
|
24
|
-
Migrating to AddUrlToSpudPostCategories (20120127144942)
|
25
|
-
[1m[36m (186.2ms)[0m [1mALTER TABLE `spud_post_categories` ADD `parent_id` int(11) DEFAULT 0[0m
|
26
|
-
[1m[35m (220.5ms)[0m ALTER TABLE `spud_post_categories` ADD `url_name` varchar(255)
|
27
|
-
[1m[36m (201.2ms)[0m [1mCREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)[0m
|
28
|
-
[1m[35m (189.9ms)[0m CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
|
29
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120127144942')[0m
|
30
|
-
Migrating to AddIsNewsToSpudPosts (20120210165540)
|
31
|
-
[1m[35m (217.3ms)[0m ALTER TABLE `spud_posts` ADD `is_news` tinyint(1) DEFAULT 0
|
32
|
-
[1m[36m (235.8ms)[0m [1mCREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)[0m
|
33
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120210165540')
|
34
|
-
Migrating to AddMetaToPosts (20120309181917)
|
35
|
-
[1m[36m (196.1ms)[0m [1mALTER TABLE `spud_posts` ADD `meta_keywords` varchar(255)[0m
|
36
|
-
[1m[35m (232.6ms)[0m ALTER TABLE `spud_posts` ADD `meta_description` text
|
37
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120309181917')[0m
|
38
|
-
Migrating to AddCommentsCounterToSpudPosts (20120413020437)
|
39
|
-
[1m[35m (156.0ms)[0m ALTER TABLE `spud_posts` ADD `comments_count` int(11) DEFAULT 0
|
40
|
-
[1m[36mSpudPost Load (0.3ms)[0m [1mSELECT `spud_posts`.* FROM `spud_posts` WHERE (`spud_posts`.`id` >= 0) ORDER BY `spud_posts`.`id` ASC LIMIT 1000[0m
|
41
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120413020437')
|
42
|
-
Migrating to CreateSpudAdminPermissions (20120610130206)
|
43
|
-
[1m[36m (195.8ms)[0m [1mCREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
44
|
-
[1m[35m (0.6ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130206')
|
45
|
-
Migrating to CreateSpudUsers (20120610130207)
|
46
|
-
[1m[36m (208.0ms)[0m [1mCREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
47
|
-
[1m[35m (203.6ms)[0m CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
|
48
|
-
[1m[36m (200.0ms)[0m [1mCREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)[0m
|
49
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130207')
|
50
|
-
Migrating to AddTimeZoneToSpudUser (20120610130208)
|
51
|
-
[1m[36m (206.7ms)[0m [1mALTER TABLE `spud_users` ADD `time_zone` varchar(255)[0m
|
52
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130208')
|
53
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610130209)
|
54
|
-
[1m[36m (209.6ms)[0m [1mALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)[0m
|
55
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130209')
|
56
|
-
Migrating to CreateSpudUserSettings (20120610130210)
|
57
|
-
[1m[36m (194.2ms)[0m [1mCREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
58
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610130210')
|
59
|
-
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
60
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
61
|
-
[1m[35m (0.3ms)[0m DROP DATABASE IF EXISTS `spud_blog_test`
|
62
|
-
[1m[36m (0.2ms)[0m [1mCREATE DATABASE `spud_blog_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
63
|
-
[1m[35m (116.6ms)[0m CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
|
64
|
-
[1m[36m (273.0ms)[0m [1mCREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB[0m
|
65
|
-
[1m[35m (215.1ms)[0m CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
|
66
|
-
[1m[36m (266.9ms)[0m [1mCREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)[0m
|
67
|
-
[1m[35m (174.8ms)[0m CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
|
68
|
-
[1m[36m (225.7ms)[0m [1mCREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)[0m
|
69
|
-
[1m[35m (194.8ms)[0m CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
70
|
-
[1m[36m (226.1ms)[0m [1mCREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)[0m
|
71
|
-
[1m[35m (210.8ms)[0m CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
|
72
|
-
[1m[36m (216.0ms)[0m [1mCREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB[0m
|
73
|
-
[1m[35m (225.3ms)[0m CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
|
74
|
-
[1m[36m (200.1ms)[0m [1mCREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)[0m
|
75
|
-
[1m[35m (220.8ms)[0m CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
|
76
|
-
[1m[36m (235.0ms)[0m [1mCREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)[0m
|
77
|
-
[1m[35m (227.6ms)[0m CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
78
|
-
[1m[36m (231.2ms)[0m [1mCREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB[0m
|
79
|
-
[1m[35m (214.3ms)[0m CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
|
80
|
-
[1m[36m (211.8ms)[0m [1mCREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)[0m
|
81
|
-
[1m[35m (222.4ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
82
|
-
[1m[36m (237.1ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
83
|
-
[1m[35m (0.1ms)[0m SELECT version FROM `schema_migrations`
|
84
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120610130210')[0m
|
85
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120125180945')
|
86
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120125181022')[0m
|
87
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120125181359')
|
88
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120127143054')[0m
|
89
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120127144942')
|
90
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120210165540')[0m
|
91
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120309181917')
|
92
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120413020437')[0m
|
93
|
-
Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
|
94
|
-
[1m[36m (53.6ms)[0m [1mCREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB[0m
|
95
|
-
[1m[35m (289.4ms)[0m CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB
|
96
|
-
[1m[36m (103.1ms)[0m [1mCREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)[0m
|
97
|
-
[1m[35m (90.9ms)[0m CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
|
98
|
-
[1m[36m (115.0ms)[0m [1mCREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB[0m
|
99
|
-
[1m[35m (125.1ms)[0m CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
|
100
|
-
[1m[36m (84.5ms)[0m [1mCREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
101
|
-
[1m[35m (126.7ms)[0m CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
|
102
|
-
[1m[36m (86.5ms)[0m [1mCREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)[0m
|
103
|
-
[1m[35m (106.3ms)[0m CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB
|
104
|
-
[1m[36m (83.8ms)[0m [1mCREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)[0m
|
105
|
-
[1m[35m (87.3ms)[0m CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
|
106
|
-
[1m[36m (113.3ms)[0m [1mCREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)[0m
|
107
|
-
[1m[35m (110.6ms)[0m CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
|
108
|
-
[1m[36m (114.7ms)[0m [1mCREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
109
|
-
[1m[35m (119.4ms)[0m CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
|
110
|
-
[1m[36m (93.1ms)[0m [1mCREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)[0m
|
111
|
-
[1m[35m (89.3ms)[0m CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
|
112
|
-
[1m[36m (105.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
113
|
-
[1m[35m (126.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
114
|
-
[1m[36m (0.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
115
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120610130210')
|
116
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120610130206')[0m
|
117
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120610130207')
|
118
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120610130208')[0m
|
119
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120610130209')
|
120
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120125180945')[0m
|
121
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120125181022')
|
122
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120125181359')[0m
|
123
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120127143054')
|
124
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120127144942')[0m
|
125
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120210165540')
|
126
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120309181917')[0m
|
127
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120413020437')
|
128
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
129
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
130
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
131
|
-
Migrating to CreateSpudPosts (20120125180945)
|
132
|
-
Migrating to CreateSpudPostCategories (20120125181022)
|
133
|
-
Migrating to CreateSpudPostComments (20120125181359)
|
134
|
-
Migrating to AddUrlToSpudPosts (20120127143054)
|
135
|
-
Migrating to AddUrlToSpudPostCategories (20120127144942)
|
136
|
-
Migrating to AddIsNewsToSpudPosts (20120210165540)
|
137
|
-
Migrating to AddMetaToPosts (20120309181917)
|
138
|
-
Migrating to AddCommentsCounterToSpudPosts (20120413020437)
|
139
|
-
Migrating to CreateSpudAdminPermissions (20120610130206)
|
140
|
-
Migrating to CreateSpudUsers (20120610130207)
|
141
|
-
Migrating to AddTimeZoneToSpudUser (20120610130208)
|
142
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610130209)
|
143
|
-
Migrating to CreateSpudUserSettings (20120610130210)
|
144
|
-
Migrating to CreateSpudPostSites (20120713150446)
|
145
|
-
[1m[35m (35.7ms)[0m CREATE TABLE `spud_post_sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11) NOT NULL, `spud_site_id` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
146
|
-
[1m[36m (147.9ms)[0m [1mCREATE INDEX `index_spud_post_sites_on_spud_post_id` ON `spud_post_sites` (`spud_post_id`)[0m
|
147
|
-
[1m[35m (89.9ms)[0m CREATE INDEX `index_spud_post_sites_on_spud_site_id` ON `spud_post_sites` (`spud_site_id`)
|
148
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120713150446')[0m
|
149
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
150
|
-
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
151
|
-
[1m[35m (0.5ms)[0m DROP DATABASE IF EXISTS `spud_blog_test`
|
152
|
-
[1m[36m (0.3ms)[0m [1mCREATE DATABASE `spud_blog_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
153
|
-
[1m[35m (45.6ms)[0m CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
|
154
|
-
[1m[36m (152.3ms)[0m [1mCREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `parent_id` int(11) DEFAULT 0, `url_name` varchar(255)) ENGINE=InnoDB[0m
|
155
|
-
[1m[35m (93.0ms)[0m CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
|
156
|
-
[1m[36m (90.4ms)[0m [1mCREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)[0m
|
157
|
-
[1m[35m (115.5ms)[0m CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
|
158
|
-
[1m[36m (114.0ms)[0m [1mCREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)[0m
|
159
|
-
[1m[35m (84.0ms)[0m CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
160
|
-
[1m[36m (115.8ms)[0m [1mCREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)[0m
|
161
|
-
[1m[35m (87.1ms)[0m CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
|
162
|
-
[1m[36m (105.9ms)[0m [1mCREATE TABLE `spud_post_sites` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11) NOT NULL, `spud_site_id` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
163
|
-
[1m[35m (116.3ms)[0m CREATE INDEX `index_spud_post_sites_on_spud_post_id` ON `spud_post_sites` (`spud_post_id`)
|
164
|
-
[1m[36m (100.5ms)[0m [1mCREATE INDEX `index_spud_post_sites_on_spud_site_id` ON `spud_post_sites` (`spud_site_id`)[0m
|
165
|
-
[1m[35m (115.7ms)[0m CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `url_name` varchar(255), `is_news` tinyint(1) DEFAULT 0, `meta_keywords` varchar(255), `meta_description` text, `comments_count` int(11) DEFAULT 0) ENGINE=InnoDB
|
166
|
-
[1m[36m (138.4ms)[0m [1mCREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)[0m
|
167
|
-
[1m[35m (110.5ms)[0m CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
|
168
|
-
[1m[36m (144.8ms)[0m [1mCREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)[0m
|
169
|
-
[1m[35m (133.6ms)[0m CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
|
170
|
-
[1m[36m (125.7ms)[0m [1mCREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
171
|
-
[1m[35m (131.0ms)[0m CREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB
|
172
|
-
[1m[36m (105.7ms)[0m [1mCREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)[0m
|
173
|
-
[1m[35m (149.5ms)[0m CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
|
174
|
-
[1m[36m (211.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
175
|
-
[1m[35m (147.6ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
176
|
-
[1m[36m (0.4ms)[0m [1mSELECT version FROM `schema_migrations`[0m
|
177
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120713150446')
|
178
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120125180945')[0m
|
179
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120125181022')
|
180
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120125181359')[0m
|
181
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120127143054')
|
182
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120127144942')[0m
|
183
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120210165540')
|
184
|
-
[1m[36m (1.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120309181917')[0m
|
185
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120413020437')
|
186
|
-
Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
|
187
|
-
Connecting to database specified by database.yml
|
188
|
-
Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
|
189
|
-
Connecting to database specified by database.yml
|
190
|
-
Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
|
191
|
-
Connecting to database specified by database.yml
|
192
|
-
[1m[36m (2.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
193
|
-
Migrating to CreateSpudPosts (20120125180945)
|
194
|
-
Migrating to CreateSpudPostCategories (20120125181022)
|
195
|
-
Migrating to CreateSpudPostComments (20120125181359)
|
196
|
-
Migrating to AddUrlToSpudPosts (20120127143054)
|
197
|
-
Migrating to AddUrlToSpudPostCategories (20120127144942)
|
198
|
-
Migrating to AddIsNewsToSpudPosts (20120210165540)
|
199
|
-
Migrating to AddMetaToPosts (20120309181917)
|
200
|
-
Migrating to AddCommentsCounterToSpudPosts (20120413020437)
|
201
|
-
Migrating to CreateSpudAdminPermissions (20120610130206)
|
202
|
-
Migrating to CreateSpudUsers (20120610130207)
|
203
|
-
Migrating to AddTimeZoneToSpudUser (20120610130208)
|
204
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610130209)
|
205
|
-
Migrating to CreateSpudUserSettings (20120610130210)
|
206
|
-
Migrating to CreateSpudPostSites (20120713150446)
|
207
|
-
Migrating to AddSpamFieldsToSpudPostComments (20120825142547)
|
208
|
-
Migrating to AddPermalinkToSpudPostComments (20120825144506)
|
209
|
-
Migrating to AddNestedSetToPostCategories (20121113135812)
|
210
|
-
Migrating to AddContentFormatToSpudPosts (20130120151857)
|
211
|
-
[1m[35m (56.0ms)[0m ALTER TABLE `spud_posts` ADD `content_format` varchar(255) DEFAULT 'HTML'
|
212
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130120151857')[0m
|
213
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
214
|
-
Connecting to database specified by database.yml
|
215
|
-
[1m[36m (1.9ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
216
|
-
Migrating to CreateSpudAdminPermissions (20120610130206)
|
217
|
-
Migrating to CreateSpudUsers (20120610130207)
|
218
|
-
Migrating to AddTimeZoneToSpudUser (20120610130208)
|
219
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610130209)
|
220
|
-
Migrating to CreateSpudUserSettings (20120610130210)
|
221
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
222
|
-
Connecting to database specified by database.yml
|
223
|
-
[1m[36m (2.5ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
224
|
-
Migrating to CreateSpudPosts (20120125180945)
|
225
|
-
Migrating to CreateSpudPostCategories (20120125181022)
|
226
|
-
Migrating to CreateSpudPostComments (20120125181359)
|
227
|
-
Migrating to AddUrlToSpudPosts (20120127143054)
|
228
|
-
Migrating to AddUrlToSpudPostCategories (20120127144942)
|
229
|
-
Migrating to AddIsNewsToSpudPosts (20120210165540)
|
230
|
-
Migrating to AddMetaToPosts (20120309181917)
|
231
|
-
Migrating to AddCommentsCounterToSpudPosts (20120413020437)
|
232
|
-
Migrating to CreateSpudAdminPermissions (20120610130206)
|
233
|
-
Migrating to CreateSpudUsers (20120610130207)
|
234
|
-
Migrating to AddTimeZoneToSpudUser (20120610130208)
|
235
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610130209)
|
236
|
-
Migrating to CreateSpudUserSettings (20120610130210)
|
237
|
-
Migrating to CreateSpudPostSites (20120713150446)
|
238
|
-
Migrating to AddSpamFieldsToSpudPostComments (20120825142547)
|
239
|
-
[1m[35m (23.0ms)[0m ALTER TABLE `spud_post_comments` ADD `spam` tinyint(1)
|
240
|
-
[1m[36m (24.0ms)[0m [1mALTER TABLE `spud_post_comments` ADD `user_ip` varchar(255)[0m
|
241
|
-
[1m[35m (16.1ms)[0m ALTER TABLE `spud_post_comments` ADD `user_agent` varchar(255)
|
242
|
-
[1m[36m (19.0ms)[0m [1mALTER TABLE `spud_post_comments` ADD `referrer` varchar(255)[0m
|
243
|
-
[1m[35m (1.2ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120825142547')
|
244
|
-
Migrating to AddPermalinkToSpudPostComments (20120825144506)
|
245
|
-
[1m[36m (18.3ms)[0m [1mALTER TABLE `spud_post_comments` ADD `permalink` varchar(255)[0m
|
246
|
-
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120825144506')
|
247
|
-
Migrating to AddNestedSetToPostCategories (20121113135812)
|
248
|
-
[1m[36m (16.6ms)[0m [1mALTER TABLE `spud_post_categories` ADD `lft` int(11)[0m
|
249
|
-
[1m[35m (16.8ms)[0m ALTER TABLE `spud_post_categories` ADD `rgt` int(11)
|
250
|
-
[1m[36m (23.1ms)[0m [1mALTER TABLE `spud_post_categories` ADD `depth` int(11)[0m
|
251
|
-
[1m[35mSQL (0.8ms)[0m UPDATE `spud_post_categories` SET `parent_id` = NULL WHERE `spud_post_categories`.`parent_id` = 0
|
252
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `spud_post_categories` LEFT OUTER JOIN `spud_post_categories` AS parent ON `spud_post_categories`.`parent_id` = parent.id WHERE (`spud_post_categories`.`lft` IS NULL OR `spud_post_categories`.`rgt` IS NULL OR `spud_post_categories`.`lft` >= `spud_post_categories`.`rgt` OR (`spud_post_categories`.`parent_id` IS NOT NULL AND (`spud_post_categories`.`lft` <= parent.`lft` OR `spud_post_categories`.`rgt` >= parent.`rgt`)))[0m
|
253
|
-
[1m[35mSpudPostCategory Load (0.9ms)[0m SELECT `spud_post_categories`.`lft`, COUNT(`spud_post_categories`.`lft`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`lft` HAVING COUNT(`spud_post_categories`.`lft`) > 1 LIMIT 1
|
254
|
-
[1m[36mSpudPostCategory Load (0.2ms)[0m [1mSELECT `spud_post_categories`.`rgt`, COUNT(`spud_post_categories`.`rgt`) FROM `spud_post_categories` GROUP BY `spud_post_categories`.`rgt` HAVING COUNT(`spud_post_categories`.`rgt`) > 1 LIMIT 1[0m
|
255
|
-
[1m[35mSpudPostCategory Load (0.2ms)[0m SELECT `spud_post_categories`.* FROM `spud_post_categories` WHERE `spud_post_categories`.`parent_id` IS NULL ORDER BY `spud_post_categories`.`lft`
|
256
|
-
[1m[36m (1.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20121113135812')[0m
|
257
|
-
Migrating to AddContentFormatToSpudPosts (20130120151857)
|
258
|
-
[1m[35m (29.4ms)[0m ALTER TABLE `spud_posts` ADD `content_format` varchar(255) DEFAULT 'HTML'
|
259
|
-
[1m[36m (1.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130120151857')[0m
|
260
|
-
Migrating to AddContentProcessedToSpudPost (20130121130612)
|
261
|
-
[1m[35m (25.2ms)[0m ALTER TABLE `spud_posts` ADD `content_processed` text
|
262
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130121130612')[0m
|
263
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|