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:
parent
53c14641fe
commit
57d6ea48d0
@ -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
|
||||||
12
db/schema.rb
12
db/schema.rb
@ -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,19 +68,15 @@ 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"
|
||||||
t.text "description"
|
t.text "description"
|
||||||
t.integer "sort"
|
t.integer "sort"
|
||||||
t.boolean "featured", default: false
|
t.boolean "featured", default: false
|
||||||
t.boolean "enabled", default: true
|
t.boolean "enabled", default: true
|
||||||
t.datetime "taken_at"
|
t.datetime "taken_at"
|
||||||
t.integer "views", default: 0
|
t.integer "views", default: 0
|
||||||
t.string "image_uid"
|
t.string "image_uid"
|
||||||
t.string "image_name"
|
t.string "image_name"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user