need to use path anyway... cannot Photo.file returns base filename - not full path so cannot do Photo.find_by_file(path)

master
Espen Antonsen 2011-04-11 16:38:44 +08:00
parent 0d117fb710
commit c77dddf485
2 changed files with 2 additions and 9 deletions

View File

@ -1,8 +0,0 @@
class RemovePathFromPhotos < ActiveRecord::Migration
def self.up
remove_column :photos, :path
end
def self.down
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110411074351) do
ActiveRecord::Schema.define(:version => 20100412220801) do
create_table "albums", :force => true do |t|
t.string "title", :null => false
@ -73,6 +73,7 @@ ActiveRecord::Schema.define(:version => 20110411074351) do
t.float "longitude"
t.float "latitude"
t.string "file"
t.text "path"
end
add_index "photos", ["album_id"], :name => "index_photos_on_album_id"