Skip to content

Instantly share code, notes, and snippets.

@DylanLacey
Created November 24, 2011 05:23
Show Gist options
  • Save DylanLacey/1390690 to your computer and use it in GitHub Desktop.
Save DylanLacey/1390690 to your computer and use it in GitHub Desktop.
class ChangeTypeOfWaypointKeys < ActiveRecord::Migration
def up
#the damn migration wasn't running, so am dropping altogether
change_table :waypoints do |t|
t.remove :street_key, :suburb_key, :designation_key
t.string :street_key, :suburb_ley, :designation_key
end
end
def down
change_table :waypoints do |t|
t.remove :street_key, :suburb_key, :designation_key
t.integer :street_key, :suburb_ley, :designation_key
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment