photomix/db/migrate/20090528143605_add_location_to_album.rb

14 lines
336 B
Ruby
Raw Normal View History

2009-06-02 00:08:57 +02:00
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