Fix malformed migrations

pull/273/head
Rick Carlino 2016-09-20 10:50:28 -05:00
parent d87d12e640
commit 4894d9b514
2 changed files with 1 additions and 3 deletions

View File

@ -5,7 +5,5 @@ class ConvertXYToFloatAndRemoveScheduleIdFromRegimenItem < ActiveRecord::Migrati
remove_column :plants, coord
add_column :plants, coord, :float, default: 0
end
# Remove schedule_id from regimen_item.
remove_column :plants, :schedule_id
end
end

View File

@ -1,7 +1,7 @@
class ConvertPlantedAtToDatetime < ActiveRecord::Migration
def change
# Make Plant planted_at a datetime
remove_column :plants, :planted_at, :string
remove_column :plants, :planted_at
add_column :plants, :planted_at, :datetime
end
end