Created
November 24, 2011 05:23
-
-
Save DylanLacey/1390690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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