aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-03-02 21:57:14 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-03-02 21:57:14 +0100
commita565503bef77c14892a131575e1927b2b98c859f (patch)
treeffcff80acc325a9cebd5b3a085a6b4d485ecaeb5 /db
parent455abf20321fbf2cd8247a95973787b1af21ccde (diff)
downloadhmnoweb-a565503bef77c14892a131575e1927b2b98c859f.tar.gz
hmnoweb-a565503bef77c14892a131575e1927b2b98c859f.tar.bz2
hmnoweb-a565503bef77c14892a131575e1927b2b98c859f.zip
Allow customization of number of sidebar items for each category.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140302204529_add_sidebar_item_count_to_blog_categories.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20140302204529_add_sidebar_item_count_to_blog_categories.rb b/db/migrate/20140302204529_add_sidebar_item_count_to_blog_categories.rb
new file mode 100644
index 0000000..7268cd6
--- /dev/null
+++ b/db/migrate/20140302204529_add_sidebar_item_count_to_blog_categories.rb
@@ -0,0 +1,5 @@
+class AddSidebarItemCountToBlogCategories < ActiveRecord::Migration
+ def change
+ add_column "refinery_blog_categories", "sidebar_items", :integer, :default => 5
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 94a7af9..dfb4893 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20140216165732) do
+ActiveRecord::Schema.define(:version => 20140302204529) do
create_table "refinery_banners", :force => true do |t|
t.string "name"
@@ -42,6 +42,7 @@ ActiveRecord::Schema.define(:version => 20140216165732) do
t.string "cached_slug"
t.string "slug"
t.integer "sidebar_position", :default => 0
+ t.integer "sidebar_items", :default => 5
end
add_index "refinery_blog_categories", ["id"], :name => "index_refinery_blog_categories_on_id"