photomix/db/migrate/20090528143605_add_location_to_album.rb
2009-06-02 00:08:57 +02:00

13 lines
336 B
Ruby

class AddLocationToAlbum < ActiveRecord::Migration
def self.up
add_column :albums, :address, :string
add_column :albums, :longitude, :float
add_column :albums, :latitude, :float
end
def self.down
remove_column :albums, :latitude
remove_column :albums, :longitude
remove_column :albums, :address
end
end