summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-07 14:15:24 +0200
committerhukl <contact@smyck.org>2009-09-07 14:15:24 +0200
commit5e0488e021bee2002d70fa05b79bb85490af020b (patch)
tree2e050fe051ff674434a737daaf071d0355959496 /db
parent8f2dc36616548650000308ebc8b1f9e2947c0ef9 (diff)
enabling featured articles
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090907103525_add_type_column_to_menu_items.rb9
-rw-r--r--db/migrate/20090907111533_add_type_id_to_menu_items.rb9
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20090907103525_add_type_column_to_menu_items.rb b/db/migrate/20090907103525_add_type_column_to_menu_items.rb
new file mode 100644
index 0000000..dda0f9c
--- /dev/null
+++ b/db/migrate/20090907103525_add_type_column_to_menu_items.rb
@@ -0,0 +1,9 @@
1class AddTypeColumnToMenuItems < ActiveRecord::Migration
2 def self.up
3 add_column :menu_items, :type, :string
4 end
5
6 def self.down
7 remove_column :menu_items, :type
8 end
9end
diff --git a/db/migrate/20090907111533_add_type_id_to_menu_items.rb b/db/migrate/20090907111533_add_type_id_to_menu_items.rb
new file mode 100644
index 0000000..5000e92
--- /dev/null
+++ b/db/migrate/20090907111533_add_type_id_to_menu_items.rb
@@ -0,0 +1,9 @@
1class AddTypeIdToMenuItems < ActiveRecord::Migration
2 def self.up
3 add_column :menu_items, :type_id, :integer
4 end
5
6 def self.down
7 remove_column :menu_items, :type_id
8 end
9end