20160312193225_add_attachment_header_to_accounts.rb 450 B

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