diff options
| author | hukl <contact@smyck.org> | 2009-08-09 14:45:12 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-08-09 14:45:12 +0200 |
| commit | 97aecb984afa6a7d8d1424f544b8e32d8c87603d (patch) | |
| tree | 8939b12d327875241179c07ac975871cabdb582c /db | |
| parent | 72593784d6d580ea8cc6987a83cf7b18167aba80 (diff) | |
added sorting (via drag and drop) and deleting of menu items. Its not perfect though and needs more styling. I'm unsure about the proper route for the sort action. Will investigate.
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20090809104800_add_position_to_menu_items.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090809104800_add_position_to_menu_items.rb b/db/migrate/20090809104800_add_position_to_menu_items.rb new file mode 100644 index 0000000..97ff6f9 --- /dev/null +++ b/db/migrate/20090809104800_add_position_to_menu_items.rb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | class AddPositionToMenuItems < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :menu_items, :position, :integer | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | remove_column :menu_items, :position | ||
| 8 | end | ||
| 9 | end | ||
