Retrospring/db/migrate/20141229085904_add_attachme...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
580 B
Ruby
Raw Normal View History

2023-10-19 16:37:34 -07:00
# frozen_string_literal: true
class AddAttachmentProfilePictureToUsers < ActiveRecord::Migration[4.2]
2014-12-29 01:18:12 -08:00
def self.up
change_table :users do |t|
2020-05-01 15:43:46 -07:00
t.string :profile_picture_file_name
t.string :profile_picture_content_type
t.integer :profile_picture_file_size
2020-05-01 15:43:46 -07:00
t.datetime :profile_picture_updated_at
2014-12-29 01:18:12 -08:00
end
end
def self.down
2020-05-01 15:43:46 -07:00
remove_column :users, :profile_picture_file_name
remove_column :users, :profile_picture_content_type
remove_column :users, :profile_picture_file_size
remove_column :users, :profile_picture_updated_at
2014-12-29 01:18:12 -08:00
end
end