%= table_name.camelize %> < ActiveRecord::Migration # Adds Resort fields, next_id and first, and indexes to a given model def self.up add_column :<%= table_name %>, :next_id, :integer
Migration to add the necessary fields to a resorted model