menu -> submenu backend
This commit is contained in:
9
front-api/db/migrate/20150324044115_create_menu_items.rb
Normal file
9
front-api/db/migrate/20150324044115_create_menu_items.rb
Normal 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
|
||||
10
front-api/db/migrate/20150324044314_create_menu_sub_items.rb
Normal file
10
front-api/db/migrate/20150324044314_create_menu_sub_items.rb
Normal 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
|
||||
Reference in New Issue
Block a user