1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Remove all traces of Paperclip.

This commit is contained in:
Dan Barber 2014-03-15 10:21:01 +00:00
parent 53c14641fe
commit 57d6ea48d0
2 changed files with 12 additions and 8 deletions

View File

@ -0,0 +1,8 @@
class RemovePaperclipColumnsFromPhotos < ActiveRecord::Migration
def change
remove_column :photos, :photo_file_name
remove_column :photos, :photo_content_type
remove_column :photos, :photo_file_size
remove_column :photos, :photo_updated_at
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140307120615) do ActiveRecord::Schema.define(version: 20140308082639) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -68,10 +68,6 @@ ActiveRecord::Schema.define(version: 20140307120615) do
create_table "photos", force: true do |t| create_table "photos", force: true do |t|
t.string "flickr_url" t.string "flickr_url"
t.string "photo_file_name"
t.string "photo_content_type"
t.integer "photo_file_size"
t.datetime "photo_updated_at"
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.string "title" t.string "title"