Retrospring/db/migrate/20141229085904_add_attachme...

18 lines
548 B
Ruby
Raw Normal View History

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.bigint :profile_picture_file_size
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