Sha256: 71bd9869db5428cf8dfb3de2906fc52736f014a4ed6c96dbf8e743d0c6b7814e

Contents?: true

Size: 435 Bytes

Versions: 8

Compression:

Stored size: 435 Bytes

Contents

class CreateMenuItems < ActiveRecord::Migration
  def self.up
    create_table(:menu_items) do |t|
      t.string :label
      t.string :url
      t.string :title
      t.integer :parent_id, :default => 0
      t.integer :position
      t.string :highlights_on
      t.integer :navigable_id
      t.string :navigable_type
      t.integer :site_id
      t.timestamps
    end
  end

  def self.down
    drop_table(:menu_items)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
navi-0.2.1 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.2.0 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.1.4 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.1.3 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.0.17 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.0.16 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.0.15 spec/dummy/db/migrate/20110607155019_create_menu_items.rb
navi-0.0.14 spec/dummy/db/migrate/20110607155019_create_menu_items.rb