From 2263fe000e897f0b0cf7fdedda637f0e2a6aa631 Mon Sep 17 00:00:00 2001 From: "Dominik M. Kwiatek" Date: Sun, 17 May 2020 20:32:11 +0100 Subject: [PATCH] Remove un-needed paperclip fields --- db/migrate/20200517192431_remove_paperclip_fields.rb | 10 ++++++++++ db/schema.rb | 8 +------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 db/migrate/20200517192431_remove_paperclip_fields.rb diff --git a/db/migrate/20200517192431_remove_paperclip_fields.rb b/db/migrate/20200517192431_remove_paperclip_fields.rb new file mode 100644 index 00000000..00d4181e --- /dev/null +++ b/db/migrate/20200517192431_remove_paperclip_fields.rb @@ -0,0 +1,10 @@ +class RemovePaperclipFields < ActiveRecord::Migration[5.2] + def change + remove_column :users, :profile_picture_content_type + remove_column :users, :profile_picture_file_size + remove_column :users, :profile_picture_updated_at + remove_column :users, :profile_header_content_type + remove_column :users, :profile_header_file_size + remove_column :users, :profile_header_updated_at + end +end diff --git a/db/schema.rb b/db/schema.rb index 582eea28..674dc6f5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_05_17_190138) do +ActiveRecord::Schema.define(version: 2020_05_17_192431) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -249,9 +249,6 @@ ActiveRecord::Schema.define(version: 2020_05_17_190138) do t.string "location", default: "", null: false t.text "bio", default: "", null: false t.string "profile_picture_file_name" - t.string "profile_picture_content_type" - t.integer "profile_picture_file_size" - t.datetime "profile_picture_updated_at" t.boolean "profile_picture_processing" t.integer "profile_picture_x" t.integer "profile_picture_y" @@ -266,9 +263,6 @@ ActiveRecord::Schema.define(version: 2020_05_17_190138) do t.datetime "banned_until" t.integer "comment_smiled_count", default: 0, null: false t.string "profile_header_file_name" - t.string "profile_header_content_type" - t.integer "profile_header_file_size" - t.datetime "profile_header_updated_at" t.boolean "profile_header_processing" t.integer "profile_header_x" t.integer "profile_header_y"