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
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150322044941) do
|
||||
ActiveRecord::Schema.define(version: 20150324044314) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -150,6 +150,19 @@ ActiveRecord::Schema.define(version: 20150322044941) do
|
||||
t.string "name"
|
||||
end
|
||||
|
||||
create_table "menu_items", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.string "url"
|
||||
t.integer "ordinal"
|
||||
end
|
||||
|
||||
create_table "menu_sub_items", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.string "url"
|
||||
t.integer "ordinal"
|
||||
t.integer "menu_item_id"
|
||||
end
|
||||
|
||||
create_table "multi_media_descriptions", force: :cascade do |t|
|
||||
t.string "url"
|
||||
t.integer "item_id"
|
||||
|
||||
Reference in New Issue
Block a user