summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-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