need to use path anyway... cannot Photo.file returns base filename - not full path so cannot do Photo.find_by_file(path)
This commit is contained in:
parent
0d117fb710
commit
c77dddf485
|
@ -1,8 +0,0 @@
|
||||||
class RemovePathFromPhotos < ActiveRecord::Migration
|
|
||||||
def self.up
|
|
||||||
remove_column :photos, :path
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.down
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# 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|
|
create_table "albums", :force => true do |t|
|
||||||
t.string "title", :null => false
|
t.string "title", :null => false
|
||||||
|
@ -73,6 +73,7 @@ ActiveRecord::Schema.define(:version => 20110411074351) do
|
||||||
t.float "longitude"
|
t.float "longitude"
|
||||||
t.float "latitude"
|
t.float "latitude"
|
||||||
t.string "file"
|
t.string "file"
|
||||||
|
t.text "path"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "photos", ["album_id"], :name => "index_photos_on_album_id"
|
add_index "photos", ["album_id"], :name => "index_photos_on_album_id"
|
||||||
|
|
Loading…
Reference in a new issue