20160227230233_add_attachment_avatar_to_accounts.rb 450 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. class AddAttachmentAvatarToAccounts < ActiveRecord::Migration[4.2]
  3. def up
  4. change_table :accounts do |t|
  5. # The following corresponds to `t.attachment :avatar` in an older version of Paperclip
  6. t.string :avatar_file_name
  7. t.string :avatar_content_type
  8. t.integer :avatar_file_size
  9. t.datetime :avatar_updated_at
  10. end
  11. end
  12. def down
  13. remove_attachment :accounts, :avatar
  14. end
  15. end