Remove un-needed paperclip fields

This commit is contained in:
Dominik M. Kwiatek 2020-05-17 20:32:11 +01:00
parent d4f8e03d28
commit 2263fe000e
2 changed files with 11 additions and 7 deletions

View File

@ -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

View File

@ -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"