menu -> submenu backend

This commit is contained in:
Edin Dazdarevic
2015-03-24 06:18:27 +01:00
parent b534d15866
commit 5bc77597a4
10 changed files with 72 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class CreateMenuItems < ActiveRecord::Migration
def change
create_table :menu_items do |t|
t.string :title
t.string :url
t.integer :ordinal
end
end
end

View File

@@ -0,0 +1,10 @@
class CreateMenuSubItems < ActiveRecord::Migration
def change
create_table :menu_sub_items do |t|
t.string :title
t.string :url
t.integer :ordinal
t.integer :menu_item_id
end
end
end