class CreateMenuItems < ActiveRecord::Migration[6.0]
  def change
    create_table :menu_items do |t|
      t.string       :name
      t.string       :slug
      t.string       :permalink
      t.references   :image_file,   index: true
      t.string       :section_name
      t.integer      :section_id
      t.string       :repertoire_name
      t.integer      :repertoire_id
      t.references   :parent,   index: true
      t.integer      :position
      t.boolean      :super_admin,   :default => false
      t.boolean      :enabled,   :default => false
      t.boolean      :visible,   :default => false
      t.boolean      :deleted,   :default => false
      t.references   :menu,   index: true
      t.references   :menu_content,   index: true
      t.string       :menu_content_type
      t.integer      :archive_id
      t.boolean      :archived,   :default => false
      t.datetime     :archived_at
      t.boolean      :password,   :default => false
      t.boolean      :comment,   :default => false
      t.boolean      :sidebar,   :default => false
      t.boolean      :title_image,   :default => false
      t.string       :title_image_style
      t.boolean      :title_cached,   :default => false
      t.references   :icon_image_file,   index: true
      t.references   :icon_b_image_file,   index: true
      t.text         :primary_description
      t.references   :icon_v_image_file,   index: true

      t.timestamps
    end
  end
end
