2020-04-19 09:10:31 -07:00
|
|
|
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
|
2020-05-06 08:13:44 -07:00
|
|
|
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
|