Sha256: 62782e46f32ff4cadca49caf335ffe0a31fad1bdbfd647e390d348e1d65af949

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

Sequel.migration do
  # Updates the database with the changes specified in the block.
  up do
    rename_column(:menu_items, :order, :sort_order) 
  end
  
  # Reverts the changes made in the up() block.
  down do
    rename_column(:menu_items, :sort_order, :order)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zen-0.4.3 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.4.2 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.4.1 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.4 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.3 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.3b1 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.3b lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
zen-0.2.8 lib/zen/package/menus/migrations/1308671733_rename_order_column.rb