aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-12-23 20:25:47 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-12-23 20:25:47 +0100
commit595b16a783b7a99cadbf7cd61086ead32c6298a9 (patch)
treefcb063b0a4eaf8d138706c9b067d30de00b272bc /db
parent8b8e9cd1224f0f573017bc236d76c0f8ccd657ee (diff)
downloadhmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.tar.gz
hmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.tar.bz2
hmnoweb-595b16a783b7a99cadbf7cd61086ead32c6298a9.zip
Add sidebar_position field to blog categories.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131223174901_add_sidebar_position_to_refinery_blog_categories.rb5
-rw-r--r--db/schema.rb7
2 files changed, 9 insertions, 3 deletions
diff --git a/db/migrate/20131223174901_add_sidebar_position_to_refinery_blog_categories.rb b/db/migrate/20131223174901_add_sidebar_position_to_refinery_blog_categories.rb
new file mode 100644
index 0000000..dfa11fc
--- /dev/null
+++ b/db/migrate/20131223174901_add_sidebar_position_to_refinery_blog_categories.rb
@@ -0,0 +1,5 @@
+class AddSidebarPositionToRefineryBlogCategories < ActiveRecord::Migration
+ def change
+ add_column "refinery_blog_categories", "sidebar_position", :integer, :default => 0
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index b121c20..7ef62f9 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,14 +11,15 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130611193621) do
+ActiveRecord::Schema.define(:version => 20131223174901) do
create_table "refinery_blog_categories", :force => true do |t|
t.string "title"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
t.string "cached_slug"
t.string "slug"
+ t.integer "sidebar_position", :default => 0
end
add_index "refinery_blog_categories", ["id"], :name => "index_refinery_blog_categories_on_id"